Skip to content

Commit 43eb4a6

Browse files
authored
[PHEE-551] Get Operations-web up and running (#70)
* add args in docker build command * image update
1 parent fa03ed4 commit 43eb4a6

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

.circleci/config.yml

+14-2
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,13 @@ jobs:
2929
fi
3030
3131
# Build and tag the Docker image
32-
docker build -t "openmf/ph-ee-operations-web:$IMAGE_TAG" .
32+
docker build \
33+
--build-arg BUILDER_IMAGE=node:20-alpine \
34+
--build-arg NGINX_IMAGE=nginx:1.19.3 \
35+
--build-arg NPM_REGISTRY_URL=https://registry.npmjs.org/ \
36+
--build-arg PUPPETEER_DOWNLOAD_HOST_ARG=https://storage.googleapis.com \
37+
--build-arg PUPPETEER_CHROMIUM_REVISION_ARG=1011831 \
38+
-t "openmf/ph-ee-operations-web:$IMAGE_TAG" .
3339
3440
# Push the Docker image to Docker Hub
3541
docker login -u "$DOCKERHUB_USERNAME" -p "$DOCKERHUB_PASSWORD"
@@ -53,7 +59,13 @@ jobs:
5359
- run:
5460
name: Build Docker image
5561
command: |
56-
docker build -t openmf/ph-ee-operations-web:latest .
62+
docker build \
63+
--build-arg BUILDER_IMAGE=node:20-alpine \
64+
--build-arg NGINX_IMAGE=nginx:1.19.3 \
65+
--build-arg NPM_REGISTRY_URL=https://registry.npmjs.org/ \
66+
--build-arg PUPPETEER_DOWNLOAD_HOST_ARG=https://storage.googleapis.com \
67+
--build-arg PUPPETEER_CHROMIUM_REVISION_ARG=1011831 \
68+
-t "openmf/ph-ee-operations-web:latest" .
5769
if [ "$CIRCLE_BRANCH" != "master" ]; then
5870
PR_NUMBER=$(basename $CIRCLE_PULL_REQUEST)
5971
PR_TITLE=$(curl -sSL "https://api.github.com/repos/openmf/$CIRCLE_PR_REPONAME/pulls/$PR_NUMBER" | jq -r '.title')

0 commit comments

Comments
 (0)