diff options
-rw-r--r-- | Makefile | 5 | ||||
-rw-r--r-- | pkg/docker_build_apt | 3 |
2 files changed, 6 insertions, 2 deletions
@@ -94,6 +94,7 @@ bundler_image: cd pkg/docker_bundleapt && make bundler bundle_in_docker: + # this runs bundles inside a virtualenv. it is kind of slow because it compiles all python extensions in dependencies each time. rm -rf $(DIST_VERSION) bitmaskbuild cat pkg/docker_build | docker run -i -v ~/leap/bitmask-dev:/dist -w /dist -u `id -u` -e REPO="$(REPO)" -e BRANCH="$(BRANCH)" local_bundler bash mkdir -p dist/ @@ -103,7 +104,9 @@ bundle_in_docker: bundle_in_docker_apt: # needs a docker container called 'bitmask-bundler-apt', created with 'make bundler_image' rm -rf $(DIST_VERSION) bitmaskbuild - cat pkg/docker_build_apt | docker run -i -v /srv/bitmask-builds:/dist -w /dist -u `id -u` -e REPO="$(REPO)" -e BRANCH="$(BRANCH)" bitmask-bundler-apt bash + # XXX why was it needed to specify -u `id -u` again? if it's something with gilab CI we might need + # to chown it first. + cat pkg/docker_build_apt | docker run -i -v /srv/bitmask-builds:/dist -w /dist -e REPO="$(REPO)" -e BRANCH="$(BRANCH)" bitmask-bundler-apt bash upload: python setup.py sdist bdist_wheel --universal upload --sign -i kali@leap.se -r pypi diff --git a/pkg/docker_build_apt b/pkg/docker_build_apt index 6b319c56..605bc1be 100644 --- a/pkg/docker_build_apt +++ b/pkg/docker_build_apt @@ -11,6 +11,7 @@ echo "[+] CLONING REPO from $REPO [$BRANCH]" git clone $REPO bitmaskbuild cd bitmaskbuild git checkout $BRANCH +git fetch --tags mkdir -p dist/ -VIRTUAL_ENV=/usr/local make bundle +VIRTUAL_ENV=/usr/local make bundle_linux cp -r dist/* /dist |