mirror of
https://github.com/docker/compose.git
synced 2025-07-20 20:24:30 +02:00
Split requirements-build.txt from requirements-dev.txt to support a leaner tox.ini
Signed-off-by: Daniel Nephin <dnephin@gmail.com>
This commit is contained in:
parent
8479108ee8
commit
6ac617bae1
@ -91,7 +91,7 @@ RUN pip install -r requirements-dev.txt
|
|||||||
RUN pip install tox==2.1.1
|
RUN pip install tox==2.1.1
|
||||||
|
|
||||||
ADD . /code/
|
ADD . /code/
|
||||||
RUN python setup.py install
|
RUN pip install --no-deps -e /code
|
||||||
|
|
||||||
RUN chown -R user /code/
|
RUN chown -R user /code/
|
||||||
|
|
||||||
|
1
requirements-build.txt
Normal file
1
requirements-build.txt
Normal file
@ -0,0 +1 @@
|
|||||||
|
git+https://github.com/pyinstaller/pyinstaller.git@12e40471c77f588ea5be352f7219c873ddaae056#egg=pyinstaller
|
@ -1,6 +1,5 @@
|
|||||||
coverage==3.7.1
|
coverage==3.7.1
|
||||||
flake8==2.3.0
|
flake8==2.3.0
|
||||||
git+https://github.com/pyinstaller/pyinstaller.git@12e40471c77f588ea5be352f7219c873ddaae056#egg=pyinstaller
|
|
||||||
mock >= 1.0.1
|
mock >= 1.0.1
|
||||||
nose==1.3.4
|
nose==1.3.4
|
||||||
pep8==1.6.1
|
pep8==1.6.1
|
||||||
|
@ -6,7 +6,6 @@ TAG="docker-compose"
|
|||||||
docker build -t "$TAG" .
|
docker build -t "$TAG" .
|
||||||
docker run \
|
docker run \
|
||||||
--rm \
|
--rm \
|
||||||
--user=user \
|
|
||||||
--volume="$(pwd):/code" \
|
--volume="$(pwd):/code" \
|
||||||
--entrypoint="script/build-linux-inner" \
|
--entrypoint="script/build-linux-inner" \
|
||||||
"$TAG"
|
"$TAG"
|
||||||
|
@ -2,9 +2,12 @@
|
|||||||
|
|
||||||
set -ex
|
set -ex
|
||||||
|
|
||||||
|
TARGET=dist/docker-compose-Linux-x86_64
|
||||||
|
|
||||||
mkdir -p `pwd`/dist
|
mkdir -p `pwd`/dist
|
||||||
chmod 777 `pwd`/dist
|
chmod 777 `pwd`/dist
|
||||||
|
|
||||||
pyinstaller -F bin/docker-compose
|
pip install -r requirements-build.txt
|
||||||
mv dist/docker-compose dist/docker-compose-Linux-x86_64
|
su -c "pyinstaller -F bin/docker-compose" user
|
||||||
dist/docker-compose-Linux-x86_64 version
|
mv dist/docker-compose $TARGET
|
||||||
|
$TARGET version
|
||||||
|
@ -6,7 +6,7 @@ PATH="/usr/local/bin:$PATH"
|
|||||||
rm -rf venv
|
rm -rf venv
|
||||||
virtualenv -p /usr/local/bin/python venv
|
virtualenv -p /usr/local/bin/python venv
|
||||||
venv/bin/pip install -r requirements.txt
|
venv/bin/pip install -r requirements.txt
|
||||||
venv/bin/pip install -r requirements-dev.txt
|
venv/bin/pip install -r requirements-build.txt
|
||||||
venv/bin/pip install .
|
venv/bin/pip install .
|
||||||
venv/bin/pyinstaller -F bin/docker-compose
|
venv/bin/pyinstaller -F bin/docker-compose
|
||||||
mv dist/docker-compose dist/docker-compose-Darwin-x86_64
|
mv dist/docker-compose dist/docker-compose-Darwin-x86_64
|
||||||
|
Loading…
x
Reference in New Issue
Block a user