Skip to content

Commit 4df88cc

Browse files
committed
Merge branch 'master' of github.com:caprover/caprover
2 parents 5b5b9d2 + 7078fd6 commit 4df88cc

File tree

4 files changed

+25
-28
lines changed

4 files changed

+25
-28
lines changed

.vscode/settings.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,8 @@
1313
},
1414
"typescript.referencesCodeLens.enabled": true,
1515
"editor.defaultFormatter": "esbenp.prettier-vscode",
16-
"cSpell.words": ["csrf", "definitelytyped", "dockerode", "promisified"]
16+
"cSpell.words": ["csrf", "definitelytyped", "dockerode", "promisified"],
17+
"[shellscript]": {
18+
"editor.defaultFormatter": "foxundermoon.shell-format"
19+
}
1720
}

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
- Improved: Added support for overwriting app defaults NGINX config [PR-1377](https://github.com/caprover/caprover/pull/1377)
99
- Improved: Added support for app tags for grouping [PR-118](https://github.com/caprover/caprover-frontend/pull/118)
1010
- Improved: Added support for overriding mesh network settings and using an existing Docker Swarm [56e739c](https://github.com/caprover/caprover/commit/56e739c0f57ce873bf8d032de838c415548041b7)
11+
- Improved: Added support for domain aliases (redirecting to spacific domains) [PR-1744](https://github.com/caprover/caprover/pull/1744)
1112
- Fixed: Allowing dots to be present in repo names [PR-1553](https://github.com/caprover/caprover/pull/1553)
1213

1314

dev-scripts/build_and_push_edge.sh

Lines changed: 20 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
set -e
55

66
# Print all commands
7-
set -x
7+
set -x
88

99
pwd
1010

@@ -16,28 +16,37 @@ else
1616
echo "Running on CI"
1717
fi
1818

19-
2019
CAPROVER_VERSION=0.0.1
2120
IMAGE_NAME=caprover/caprover-edge
2221

2322
if [ ! -f ./package-lock.json ]; then
2423
echo "package-lock.json not found!"
25-
exit 1;
24+
exit 1
2625
fi
2726

28-
2927
# BRANCH=$(git rev-parse --abbrev-ref HEAD)
3028
# On Github the line above does not work, instead:
3129
BRANCH=${GITHUB_REF##*/}
3230
echo "on branch $BRANCH"
3331
if [[ "$BRANCH" != "master" ]]; then
34-
echo 'Not on master branch! Aborting script!';
35-
exit 1;
32+
echo 'Not on master branch! Aborting script!'
33+
exit 1
3634
fi
3735

38-
39-
40-
36+
## Building frontend app
37+
ORIG_DIR=$(pwd)
38+
FRONTEND_DIR=/home/runner/app-frontend
39+
curl -Iv https://registry.yarnpkg.com/
40+
mkdir -p $FRONTEND_DIR && cd $FRONTEND_DIR
41+
git clone https://github.com/githubsaturn/caprover-frontend.git
42+
cd caprover-frontend
43+
git log --max-count=1
44+
yarn install --no-cache --frozen-lockfile --network-timeout 600000
45+
echo "Installation finished"
46+
yarn run build
47+
echo "Building finished"
48+
cd $ORIG_DIR
49+
mv $FRONTEND_DIR/caprover-frontend/build ./dist-frontend
4150

4251
docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
4352
export DOCKER_CLI_EXPERIMENTAL=enabled
@@ -46,8 +55,8 @@ docker buildx create --name mybuilder
4655
docker buildx use mybuilder
4756

4857
# docker buildx build --platform linux/arm -t $IMAGE_NAME:$CAPROVER_VERSION -t $IMAGE_NAME:latest -f dockerfile-captain.edge --push .
49-
docker buildx build --platform linux/amd64,linux/arm64,linux/arm -t $IMAGE_NAME:$CAPROVER_VERSION -t $IMAGE_NAME:latest -f dockerfile-captain.edge --push .
58+
docker buildx build --platform linux/amd64,linux/arm64,linux/arm -t $IMAGE_NAME:$CAPROVER_VERSION -t $IMAGE_NAME:latest -f dockerfile-captain.edge --push .
5059

5160
# docker build -t $IMAGE_NAME:$CAPROVER_VERSION -t $IMAGE_NAME:latest -f dockerfile-captain.edge .
5261
# docker push $IMAGE_NAME:latest
53-
# docker push $IMAGE_NAME:$CAPROVER_VERSION
62+
# docker push $IMAGE_NAME:$CAPROVER_VERSION

dockerfile-captain.edge

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -15,25 +15,9 @@ RUN npm ci && \
1515
mv ./edge-override.json ./config-override.json
1616

1717

18-
# Build frontend code.
19-
2018
# This quick hack invalidates the cache.
2119
ADD https://www.google.com /time.now
2220

23-
24-
# armV7 fails: https://github.com/yarnpkg/yarn/issues/5259 https://github.com/nodejs/docker-node/issues/1335
25-
# RUN curl -Iv https://registry.yarnpkg.com/@ant-design/icons-svg/-/icons-svg-4.1.0.tgz && \
26-
RUN curl -Iv https://registry.yarnpkg.com/ && \
27-
mkdir -p /usr/src/app-frontend && cd /usr/src/app-frontend && \
28-
git clone https://github.com/githubsaturn/caprover-frontend.git && \
29-
cd caprover-frontend && \
30-
git log --max-count=1 && \
31-
yarn install --no-cache --frozen-lockfile --network-timeout 600000 && echo "Installation finished" && \
32-
yarn run build && echo "Building finished" && \
33-
mv ./build ../../app/dist-frontend && \
34-
cd / && \
35-
rm -rf /usr/src/app-frontend
36-
3721
ENV NODE_ENV production
3822
ENV PORT 3000
3923
EXPOSE 3000

0 commit comments

Comments
 (0)