mirror of https://github.com/docker/compose.git
Run pyinstaller build as normal user
... and test build on CI so we don't break it again! Fixes #503 Signed-off-by: Ben Firshman <ben@firshman.co.uk>
This commit is contained in:
parent
6797a322b5
commit
b4fbab4b56
|
@ -1,5 +1,6 @@
|
||||||
FROM debian:wheezy
|
FROM debian:wheezy
|
||||||
RUN apt-get update -qq && apt-get install -qy python python-pip python-dev git && apt-get clean
|
RUN apt-get update -qq && apt-get install -qy python python-pip python-dev git && apt-get clean
|
||||||
|
RUN useradd -d /home/user -m -s /bin/bash user
|
||||||
WORKDIR /code/
|
WORKDIR /code/
|
||||||
|
|
||||||
ADD requirements.txt /code/
|
ADD requirements.txt /code/
|
||||||
|
@ -10,3 +11,5 @@ RUN pip install -r requirements-dev.txt
|
||||||
|
|
||||||
ADD . /code/
|
ADD . /code/
|
||||||
RUN python setup.py install
|
RUN python setup.py install
|
||||||
|
|
||||||
|
RUN chown -R user /code/
|
||||||
|
|
|
@ -3,5 +3,5 @@ set -ex
|
||||||
mkdir -p `pwd`/dist
|
mkdir -p `pwd`/dist
|
||||||
chmod 777 `pwd`/dist
|
chmod 777 `pwd`/dist
|
||||||
docker build -t fig .
|
docker build -t fig .
|
||||||
docker run -v `pwd`/dist:/code/dist fig pyinstaller -F bin/fig
|
docker run -u user -v `pwd`/dist:/code/dist fig pyinstaller -F bin/fig
|
||||||
docker run -v `pwd`/dist:/code/dist fig dist/fig --version
|
docker run -u user -v `pwd`/dist:/code/dist fig dist/fig --version
|
||||||
|
|
|
@ -7,3 +7,6 @@ build:
|
||||||
- script:
|
- script:
|
||||||
name: run tests
|
name: run tests
|
||||||
code: script/test
|
code: script/test
|
||||||
|
- script:
|
||||||
|
name: build binary
|
||||||
|
code: script/build-linux
|
||||||
|
|
Loading…
Reference in New Issue