Skip to content

Commit 6a3c690

Browse files
committed
Update livenessProbe path
1 parent 1ca7331 commit 6a3c690

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

images/osmcha-web/Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ ARG GITSHA=3cd987bd2ed02bbb60b121ecad0bb556a115aca1
1010
RUN git clone https://github.com/osmus/osmcha-frontend.git /app
1111
RUN git checkout $GITSHA
1212
RUN yarn install
13-
COPY start.sh .
14-
CMD [ "/app/start.sh" ]
13+
RUN yarn build:prod
14+
# COPY start.sh .
15+
# CMD [ "/app/start.sh" ]
1516

1617

images/osmcha-web/start.sh

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,4 @@
22
set -x
33
export BUILD_ENV=prod
44
export REACT_APP_PRODUCTION_API_URL=/api/v1
5-
sed -i "s|https://osmcha.org|$OSMCHA_URL|g" package.json
6-
yarn build:${BUILD_ENV}
7-
find /app/build -type f -exec sed -i "s/www.openstreetmap.org/$OSMCHA_API_URL/g" {} +
8-
cp -r /app/build/* /assets/
5+
yarn build

osm-seed/templates/osmcha-app/deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ spec:
7171
- containerPort: 5000
7272
livenessProbe:
7373
httpGet:
74-
path: /
74+
path: /api/v1/health
7575
port: 5000
7676
initialDelaySeconds: 60
7777
timeoutSeconds: 30

0 commit comments

Comments
 (0)