Trim the dockerfile and re-use the virtualenv we already have.
Signed-off-by: Daniel Nephin <dnephin@docker.com>
This commit is contained in:
parent
9978c3ea52
commit
8b29a50b52
3 changed files with 17 additions and 21 deletions
|
|
@ -4,8 +4,4 @@ set -ex
|
|||
|
||||
TAG="docker-compose"
|
||||
docker build -t "$TAG" .
|
||||
docker run \
|
||||
--rm \
|
||||
--volume="$(pwd):/code" \
|
||||
--entrypoint="script/build-linux-inner" \
|
||||
"$TAG"
|
||||
docker run --rm --entrypoint="script/build-linux-inner" "$TAG"
|
||||
|
|
|
|||
|
|
@ -3,11 +3,12 @@
|
|||
set -ex
|
||||
|
||||
TARGET=dist/docker-compose-Linux-x86_64
|
||||
VENV=/code/.tox/py27
|
||||
|
||||
mkdir -p `pwd`/dist
|
||||
chmod 777 `pwd`/dist
|
||||
|
||||
pip install -r requirements-build.txt
|
||||
su -c "pyinstaller docker-compose.spec" user
|
||||
$VENV/bin/pip install -r requirements-build.txt
|
||||
su -c "$VENV/bin/pyinstaller docker-compose.spec" user
|
||||
mv dist/docker-compose $TARGET
|
||||
$TARGET version
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue