Name: dhvirtualenv-docker-trusty
Owner: Sauce Labs
Description: dockerfile for building an image that can use dh-virtualenv to create debian packages
Created: 2017-06-07 00:45:46.0
Updated: 2017-12-04 03:00:12.0
Pushed: 2017-12-04 20:59:14.0
Homepage: null
Size: 4
Language: Shell
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
dh-virtualenv is used to generate debian package containing python virtualenv (and not just one python package).
Build docker container using Dockerfile
clone git@github.com:saucelabs/dhvirtualenv-docker-trusty.git
hvirtualenv-docker-trusty
ild image using this repo Dockerfile
er build -t dhvirtualenv .
e dhvirtualenv image to build debian package
e assumption is that your repo contains `debian` directory
path/to/your/repo/containing/python/code/to/build/repo_name
nt_dir=$(cd .. && pwd)
t LOCAL_USER to make sure that generated deb package is owned by the current user
rt SRC_DIR=$(cd .. && pwd) && docker run -it -e LOCAL_USER_ID=`id -u $USER` -e LOCAL_USER_NAME=$USER -v $SRC_DIR:$SRC_DIR dhvirtualenv "cd $SRC_DIR/repo_name; dpkg-buildpackage -us -uc"