mirror of https://github.com/docker/docs.git
Merge pull request #505 from bfirsh/use-debian-wheezy-base-image
Compile against older version of GLIBC
This commit is contained in:
commit
cabe47a379
|
@ -1,6 +1,6 @@
|
||||||
FROM ubuntu:14.04
|
FROM debian:wheezy
|
||||||
RUN apt-get update -qq && apt-get install -qy python python-pip python-dev git
|
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/
|
||||||
|
@ -11,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