This program is used to add the required .jar
files to a CARDS Docker
image so that it can be self-contained and thus not require
connectivity to remote Maven repositories during startup. This program
should only copy the .jar
files that are necessary for running CARDS
and not building CARDS thus producing a smaller-sized Docker image
that is less likely to generate false positives during security scans.
docker build -t cards/sling-feature-downloader .
- In your local CARDS repository build a CARDS Docker image.
mvn clean install -Pdocker
- In this directory, run
run.sh
as follows.
./run.sh /path/to/cards/local/repository cards.input.docker.image cards.output.docker.image
For example,
./run.sh ~/Documents/cards cards/cards:latest ghcr.io/data-team-uhn/cards:latest