Skip to content

Commit

Permalink
Merge pull request #1213 from visualize-admin/chore/add-env-vars-dock…
Browse files Browse the repository at this point in the history
…er-2

build: Add missing NEXTAUTH_URL env variable
  • Loading branch information
bprusinowski authored Oct 12, 2023
2 parents e8dc137 + 371b69b commit 09dc5e0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,16 @@ WORKDIR /usr/src/app
# --build-arg KEYCLOAK_ID=<keycloak client id> \
# --build-arg KEYCLOAK_SECRET=<keycloak secret> \
# --build-arg KEYCLOAK_ISSUER=<keycloak issuer> \
# --build-arg NEXTAUTH_SECRET=<nextauth secret>
# --build-arg NEXTAUTH_SECRET=<nextauth secret> \
# --build-arg NEXTAUTH_URL=<nextauth url>
ARG COMMIT
ARG VECTOR_TILE_URL
ARG MAPTILER_STYLE_KEY
ARG KEYCLOAK_ID
ARG KEYCLOAK_SECRET
ARG KEYCLOAK_ISSUER
ARG NEXTAUTH_SECRET
ARG NEXTAUTH_URL

# Build app
COPY package.json yarn.lock ./
Expand Down
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -220,5 +220,3 @@ To configure Keycloak:
- NEXTAUTH_SECRET: Any string, can be "secret" locally
[keycloak-admin]: http://localhost:8080/admin/master/console/#/
Remember to add NEXTAUTH_SECRET variable to your .env file!
1 change: 1 addition & 0 deletions scripts/docker-build-push.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ docker build \
--build-arg KEYCLOAK_SECRET=$KEYCLOAK_SECRET \
--build-arg KEYCLOAK_ISSUER=$KEYCLOAK_ISSUER \
--build-arg NEXTAUTH_SECRET=$NEXTAUTH_SECRET \
--build-arg NEXTAUTH_URL=$NEXTAUTH_URL \
$(echo $DOCKER_IMAGE_TAGS | tr ' ' '\n' | xargs -n 1 -I {} echo "-t {}" ) .

# Push all the tags
Expand Down

1 comment on commit 09dc5e0

@vercel
Copy link

@vercel vercel bot commented on 09dc5e0 Oct 12, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

visualization-tool – ./

visualization-tool-ixt1.vercel.app
visualization-tool-git-main-ixt1.vercel.app
visualization-tool-alpha.vercel.app

Please sign in to comment.