File tree Expand file tree Collapse file tree 4 files changed +11
-4
lines changed Expand file tree Collapse file tree 4 files changed +11
-4
lines changed Original file line number Diff line number Diff line change 1
1
FROM docker.io/library/node:20.10.0-bookworm@sha256:8d0f16fe841577f9317ab49011c6d819e1fa81f8d4af7ece7ae0ac815e07ac84
2
2
3
+ ARG REPO=https://github.com/nuclear-unicorn/kittensgame.git
3
4
ARG BRANCH=master
4
5
5
6
EXPOSE 8080
6
7
EXPOSE 8086
7
8
8
- RUN git clone --branch $BRANCH --single-branch https://github.com/nuclear-unicorn/kittensgame.git \
9
+ RUN git clone --branch " $BRANCH" --single-branch "$REPO" \
9
10
&& cd kittensgame \
11
+ && git pull \
10
12
&& yarn add -D watch-http-server \
11
13
&& yarn install
12
14
Original file line number Diff line number Diff line change @@ -11,11 +11,13 @@ cd "$(dirname "$0")"
11
11
12
12
main () {
13
13
BRANCH=${1:- master}
14
+ REPO=${2:- https:// github.com/ nuclear-unicorn/ kittensgame.git}
14
15
15
- echo " Building development container on $BRANCH branch..."
16
+ echo " Building development container on $BRANCH branch of $REPO ..."
16
17
cd ..
17
18
podman build \
18
19
--build-arg BRANCH=" $BRANCH " \
20
+ --build-arg REPO=" $REPO " \
19
21
--tag kittensgame .
20
22
echo " Done."
21
23
}
Original file line number Diff line number Diff line change @@ -11,11 +11,13 @@ cd "$(dirname "$0")"
11
11
12
12
main () {
13
13
BRANCH=${1:- master}
14
+ REPO=${2:- https:// github.com/ nuclear-unicorn/ kittensgame.git}
14
15
15
- echo " Re-Building development container on $BRANCH branch..."
16
+ echo " Re-Building development container on $BRANCH branch of $REPO ..."
16
17
cd ..
17
18
podman build \
18
19
--build-arg BRANCH=" $BRANCH " \
20
+ --build-arg REPO=" $REPO " \
19
21
--no-cache \
20
22
--tag kittensgame .
21
23
echo " Done."
Original file line number Diff line number Diff line change @@ -12,9 +12,10 @@ cd "$(dirname "$0")"
12
12
main () {
13
13
BASEDIR=$( pwd)
14
14
BRANCH=${1:- master}
15
+ REPO=${2:- https:// github.com/ nuclear-unicorn/ kittensgame.git}
15
16
16
17
yarn kitten-scientists:build
17
- yarn devcontainer:build " $BRANCH "
18
+ yarn devcontainer:build " $BRANCH " " $REPO "
18
19
19
20
echo " Removing previous container..."
20
21
podman stop kittensgame > /dev/null || true
You can’t perform that action at this time.
0 commit comments