Skip to content

Commit

Permalink
build: add defaults for ODK_CENTRAL_TAG to prevent dockerfile lint wa…
Browse files Browse the repository at this point in the history
…rnings
  • Loading branch information
spwoodcock committed Jan 6, 2025
1 parent 39ca8df commit 9307d63
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions odkcentral/api/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@
# NOTE this dockerfile simply extends the official image
# to init an admin user at startup

ARG ODK_CENTRAL_TAG
ARG ODK_CENTRAL_TAG=v2024.2.1


FROM ghcr.io/getodk/central-service:${ODK_CENTRAL_TAG}
FROM ghcr.io/getodk/central-service:$ODK_CENTRAL_TAG
COPY init-user-and-start.sh /
RUN chmod +x /init-user-and-start.sh
ENTRYPOINT ["/init-user-and-start.sh"]
Expand Down
6 changes: 3 additions & 3 deletions odkcentral/ui/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@
# An image to copy the built ODK Central dist into an rclone
# container for copying to nginx at runtime

ARG ODK_CENTRAL_TAG
FROM ghcr.io/getodk/central-nginx:${ODK_CENTRAL_TAG} as frontend
ARG ODK_CENTRAL_TAG=v2024.2.1
FROM ghcr.io/getodk/central-nginx:$ODK_CENTRAL_TAG AS frontend


FROM docker.io/rclone/rclone:1 as prod
FROM docker.io/rclone/rclone:1 AS prod
ARG ODK_CENTRAL_TAG
# Disable OIDC when we generate client config json below
ENV OIDC_ENABLED="false"
Expand Down

0 comments on commit 9307d63

Please sign in to comment.