diff options
author | Maxim Biro <nurupo.contributions@gmail.com> | 2018-09-26 18:59:13 -0400 |
---|---|---|
committer | Maxim Biro <nurupo.contributions@gmail.com> | 2018-10-17 14:45:36 -0400 |
commit | 9b98ac1342c93babaad5968c339652ec711fbf77 (patch) | |
tree | 0db4f28881d60a7cf7c7c584db1c19e64251634d | |
parent | f45bf686ae4acb846f0739fea5515044d1debd06 (diff) |
tox-bootstrapd's Dockerfile shouldn't use master branch
-rwxr-xr-x | .travis/tox-bootstrapd-docker | 5 | ||||
-rw-r--r-- | other/bootstrap_daemon/docker/Dockerfile | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/.travis/tox-bootstrapd-docker b/.travis/tox-bootstrapd-docker index 9e476b5f..7c12a9d0 100755 --- a/.travis/tox-bootstrapd-docker +++ b/.travis/tox-bootstrapd-docker | |||
@@ -1,5 +1,7 @@ | |||
1 | #!/bin/sh | 1 | #!/bin/sh |
2 | 2 | ||
3 | set -exu | ||
4 | |||
3 | # Copy source code to other/bootstrap_daemon/docker/c-toxcore | 5 | # Copy source code to other/bootstrap_daemon/docker/c-toxcore |
4 | OLD_PWD=$PWD | 6 | OLD_PWD=$PWD |
5 | cd /tmp | 7 | cd /tmp |
@@ -13,7 +15,8 @@ cd other/bootstrap_daemon | |||
13 | 15 | ||
14 | # Make Docker container use our current source code instead of master branch | 16 | # Make Docker container use our current source code instead of master branch |
15 | sed -i "s|WORKDIR /tmp/tox|WORKDIR /tmp/tox\nADD /c-toxcore ./c-toxcore/|g" docker/Dockerfile | 17 | sed -i "s|WORKDIR /tmp/tox|WORKDIR /tmp/tox\nADD /c-toxcore ./c-toxcore/|g" docker/Dockerfile |
16 | sed -i '/git clone/d' docker/Dockerfile | 18 | sed -i 's|git clone|echo \\\#git clone|g' docker/Dockerfile |
19 | sed -i 's|git checkout|echo \\\#git checkout|g' docker/Dockerfile | ||
17 | 20 | ||
18 | cat docker/Dockerfile | 21 | cat docker/Dockerfile |
19 | 22 | ||
diff --git a/other/bootstrap_daemon/docker/Dockerfile b/other/bootstrap_daemon/docker/Dockerfile index 373f61c6..06bf66eb 100644 --- a/other/bootstrap_daemon/docker/Dockerfile +++ b/other/bootstrap_daemon/docker/Dockerfile | |||
@@ -21,6 +21,8 @@ RUN export BUILD_PACKAGES="\ | |||
21 | # install toxcore and daemon | 21 | # install toxcore and daemon |
22 | git clone https://github.com/TokTok/c-toxcore && \ | 22 | git clone https://github.com/TokTok/c-toxcore && \ |
23 | cd c-toxcore && \ | 23 | cd c-toxcore && \ |
24 | # checkout latest release version | ||
25 | git checkout $(git tag --list | grep -P '^v(\d+).(\d+).(\d+)$' | sed "s/v/v /g" | sed "s/\./ /g" | sort -snk4,4 | sort -snk3,3 | sort -snk2,2 | tail -n 1 | sed 's/v /v/g' | sed 's/ /\./g') && \ | ||
24 | ./autogen.sh && \ | 26 | ./autogen.sh && \ |
25 | ./configure --enable-daemon && \ | 27 | ./configure --enable-daemon && \ |
26 | make -j`nproc` && \ | 28 | make -j`nproc` && \ |