summaryrefslogtreecommitdiff
path: root/pkg/docker_build_riseupvpn
diff options
context:
space:
mode:
authorKali Kaneko <kali@leap.se>2018-02-14 01:51:41 +0100
committerKali Kaneko <kali@leap.se>2018-02-15 16:36:53 +0100
commit48957fb436cf7238a494b9861ed5433169538d86 (patch)
tree9a87e8e8c38be60c27daff57e97f7b8104156fa3 /pkg/docker_build_riseupvpn
parent6138fb6ef700e68b16d57313d3cb85c3326c3c7d (diff)
[pkg] add dockefile for riseupvpn
Diffstat (limited to 'pkg/docker_build_riseupvpn')
-rw-r--r--pkg/docker_build_riseupvpn30
1 files changed, 30 insertions, 0 deletions
diff --git a/pkg/docker_build_riseupvpn b/pkg/docker_build_riseupvpn
new file mode 100644
index 00000000..4cffcb49
--- /dev/null
+++ b/pkg/docker_build_riseupvpn
@@ -0,0 +1,30 @@
+# This script gets executed inside the docker-bundler-apt image.
+# (no virtualenv, so all the dependencies must be already installed in the image).
+
+: ${REPO:="https://github.com/leapcode/bitmask-dev"}
+: ${BRANCH:="master"}
+
+# build bitmask-systray
+
+export GOPATH=/srv/go
+go get 0xacab.org/leap/bitmask-systray
+cd /src/leap && git clone https://0xacab.org/leap/bitmask-systray
+cd bitmask-systray && go build .
+
+
+cd /src/leap/bitmask-dev
+RELEASE=bitmask-`cat pkg/next-version`
+cd $HOME
+echo "[+] CLONING REPO from $REPO [$BRANCH]"
+git clone $REPO bitmaskbuild
+cd bitmaskbuild
+git checkout $BRANCH
+git fetch --tags
+mkdir -p dist/
+
+# nuke mail
+rm -rf src/leap/bitmask/mail
+cp /src/leap/bitmask-systray/bitmask-systray dist/${RELEASE}/lib/
+VIRTUAL_ENV=/usr/local make bundle_linux
+cp -r dist/* /dist
+