Skip to content

Commit 4b5cdfa

Browse files
committed
Update deploy scripts and frontend Docker config
1 parent a3124cc commit 4b5cdfa

4 files changed

Lines changed: 7 additions & 5 deletions

File tree

‎deploy.sh‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ frontend=${frontend:-false}
4242
frontendRelease=${frontendRelease:-LATEST}
4343

4444
# The Git location for the frontend
45-
frontendGit=${frontendGit:-"git:maproulette/maproulette3"}
45+
frontendGit=${frontendGit:-"git:maproulette/maproulette4"}
4646

4747
# Whether to deploy the API
4848
api=${api:-false}

‎frontend/Dockerfile‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@ ARG NODE_TAG=22-bullseye
22
ARG NGINX_TAG=1.25-alpine
33
FROM docker.io/library/node:${NODE_TAG} as builder
44

5-
ARG GIT="maproulette/maproulette3"
5+
ARG GIT="maproulette/maproulette4"
66
ARG CACHEBUST=2
77
ARG VERSION="LATEST"
8+
ARG GITHUB_TOKEN=""
89

910
RUN \
1011
apt-get update && \
@@ -20,9 +21,9 @@ RUN \
2021
echo "${CACHEBUST}" && \
2122
echo "${VERSION}" && \
2223
if [ "${VERSION}" = "LATEST" ]; then \
23-
git clone --depth 1 https://github.com/${GIT}.git /maproulette-frontend ; \
24+
git clone --depth 1 https://${GITHUB_TOKEN}@github.com/${GIT}.git /maproulette-frontend ; \
2425
else \
25-
git clone --depth 1 --branch ${VERSION} https://github.com/${GIT}.git /maproulette-frontend ; \
26+
git clone --depth 1 --branch ${VERSION} https://${GITHUB_TOKEN}@github.com/${GIT}.git /maproulette-frontend ; \
2627
fi
2728
WORKDIR /maproulette-frontend
2829

‎frontend/docker.sh‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ fi
3535
echo "Building container image for MapRoulette frontend Version: $IMAGE_TAG, Repo: ${git[1]}"
3636
docker build \
3737
--pull \
38+
--no-cache \
3839
-t maproulette/maproulette-frontend:"${IMAGE_TAG}" \
3940
--build-arg VERSION="${VERSION}" \
4041
--build-arg GIT="${git[1]}" \

‎frontend/nginx-config‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
upstream api {
2-
server maproulette-api:9000;
2+
server 127.0.0.1:9000;
33
}
44
server {
55
listen 3000 default_server;

0 commit comments

Comments
 (0)