Skip to content

Commit

Permalink
Update livenessProbe path
Browse files Browse the repository at this point in the history
  • Loading branch information
Rub21 committed Jan 29, 2025
1 parent 1ca7331 commit 6a3c690
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
5 changes: 3 additions & 2 deletions images/osmcha-web/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ ARG GITSHA=3cd987bd2ed02bbb60b121ecad0bb556a115aca1
RUN git clone https://github.com/osmus/osmcha-frontend.git /app
RUN git checkout $GITSHA
RUN yarn install
COPY start.sh .
CMD [ "/app/start.sh" ]
RUN yarn build:prod
# COPY start.sh .
# CMD [ "/app/start.sh" ]


5 changes: 1 addition & 4 deletions images/osmcha-web/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,4 @@
set -x
export BUILD_ENV=prod
export REACT_APP_PRODUCTION_API_URL=/api/v1
sed -i "s|https://osmcha.org|$OSMCHA_URL|g" package.json
yarn build:${BUILD_ENV}
find /app/build -type f -exec sed -i "s/www.openstreetmap.org/$OSMCHA_API_URL/g" {} +
cp -r /app/build/* /assets/
yarn build
2 changes: 1 addition & 1 deletion osm-seed/templates/osmcha-app/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ spec:
- containerPort: 5000
livenessProbe:
httpGet:
path: /
path: /api/v1/health
port: 5000
initialDelaySeconds: 60
timeoutSeconds: 30
Expand Down

0 comments on commit 6a3c690

Please # to comment.