saucelabs/dhvirtualenv-docker-trusty

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

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Docker container containing ubuntu 14.04 with dh-virtualenv installed

dh-virtualenv is used to generate debian package containing python virtualenv (and not just one python package).

Usage

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"

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.