Repo for building daily releases of the HAPI FHIR CLI if a new version is available.
docker run ghcr.io/trifork/hapi-fhir-cli:latest
FROM ghcr.io/trifork/hapi-fhir-cli:latest AS Final
ENV DATABASE_DRIVER=POSTGRES_9_4
ENV JDBC_DIALECT=jdbc:postgresql
ENV DB_PORT=5432
ENV DB_USER=""
ENV DB_PASSWORD=""
ENV DB_DATABASE=""
ENV DB_URL=""
ENV EXTRA_ARGS="--dry-run"
ENTRYPOINT ["sh", "-c", "./hapi-fhir-cli migrate-database -d ${DATABASE_DRIVER} -u ${JDBC_DIALECT}://${DB_URL}:${DB_PORT}/${DB_DATABASE} -n ${DB_USER} -p ${DB_PASSWORD} ${EXTRA_ARGS}"]
This repository only builds the newest version per default, but if you are missing and older version, either create an issue here, or push to your own container registry.
Login to Docker using docker login
for your container registry of choice.
For GitHub, get a Personal Access Token with both the scopes write:packages
abd read:packages
, and login in your terminal.
Then build a local image, test it, and push it to the repository.
docker build . --build-arg hapi_fhir_version="7.4.5" -t hapi-fhir-cli:7.4.5 # Local image
docker build . --build-arg hapi_fhir_version="7.4.5" -t ghcr.io/trifork/hapi-fhir-cli:7.4.5 # Tag for GitHub, when pushing for this repository's Container Registry
#docker push <tag>
docker push ghcr.io/trifork/hapi-fhir-cli:7.4.5