Skip to content

Commit cabe47a

Browse files
committed
Merge pull request #505 from bfirsh/use-debian-wheezy-base-image
Compile against older version of GLIBC
2 parents e04c5cb + b4fbab4 commit cabe47a

3 files changed

Lines changed: 10 additions & 5 deletions

File tree

Dockerfile

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
FROM ubuntu:14.04
2-
RUN apt-get update -qq && apt-get install -qy python python-pip python-dev git
3-
1+
FROM debian:wheezy
2+
RUN apt-get update -qq && apt-get install -qy python python-pip python-dev git && apt-get clean
3+
RUN useradd -d /home/user -m -s /bin/bash user
44
WORKDIR /code/
55

66
ADD requirements.txt /code/
@@ -11,3 +11,5 @@ RUN pip install -r requirements-dev.txt
1111

1212
ADD . /code/
1313
RUN python setup.py install
14+
15+
RUN chown -R user /code/

script/build-linux

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ set -ex
33
mkdir -p `pwd`/dist
44
chmod 777 `pwd`/dist
55
docker build -t fig .
6-
docker run -v `pwd`/dist:/code/dist fig pyinstaller -F bin/fig
7-
docker run -v `pwd`/dist:/code/dist fig dist/fig --version
6+
docker run -u user -v `pwd`/dist:/code/dist fig pyinstaller -F bin/fig
7+
docker run -u user -v `pwd`/dist:/code/dist fig dist/fig --version

wercker.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,6 @@ build:
77
- script:
88
name: run tests
99
code: script/test
10+
- script:
11+
name: build binary
12+
code: script/build-linux

0 commit comments

Comments
 (0)