Skip to content
This repository has been archived by the owner on Jul 13, 2023. It is now read-only.

Commit

Permalink
fix: fix dockerfile for automated builds
Browse files Browse the repository at this point in the history
Dockerfile and Makefile were both broken. This fixes the Dockerfile
and uses the latest PyPy 5.0 for building the container.

Closes #414
  • Loading branch information
bbangert committed Mar 18, 2016
1 parent cdc8b33 commit 2795138
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 12 deletions.
1 change: 1 addition & 0 deletions .dockerignore
Expand Up @@ -17,6 +17,7 @@ html_coverage
site-packages/*
lib-python/*
bin/*
ddb
include/*
lib_pypy/*
pypy
Expand Down
14 changes: 6 additions & 8 deletions Dockerfile
Expand Up @@ -3,26 +3,24 @@
# VERSION 0.1

# Extend base debian
FROM stackbrew/debian:wheezy
FROM stackbrew/debian:sid

MAINTAINER Ben Bangert <bbangert@mozilla.com>

# It's nice to have some newer packages
RUN echo "deb http://ftp.debian.org/debian sid main" >> /etc/apt/sources.list

RUN mkdir -p /home/autopush
ADD . /home/autopush/

WORKDIR /home/autopush

RUN \
apt-get update; \
apt-get install -y -qq make curl wget bzip2 libexpat1-dev gcc libssl-dev libffi-dev; \
apt-get install -y -qq make curl wget bzip2 libexpat1-dev gcc git-core libssl1.0.0 libssl-dev libffi-dev; \
make clean; \
tar xjvf pypy-2.5.1-linux64.tar.bz2; \
mv pypy-2.5.1-linux64 pypy; \
wget https://bitbucket.org/pypy/pypy/downloads/pypy-5.0.0-linux64.tar.bz2; \
tar xjvf pypy-5.0.0-linux64.tar.bz2; \
mv pypy-5.0.0-linux64 pypy; \
make; \
apt-get remove -y -qq make curl wget bzip2 libexpat1-dev gcc libssl-dev libffi-dev; \
apt-get remove -y -qq make curl wget bzip2 libexpat1-dev gcc git-core libssl1.0.0 libssl-dev libffi-dev; \
apt-get install -y -qq libexpat1 libssl1.0.0 libffi6; \
apt-get autoremove -y -qq; \
apt-get clean -y
Expand Down
4 changes: 2 additions & 2 deletions Makefile
@@ -1,8 +1,8 @@
SHELL := /bin/sh
APPNAME = autopush
DEPS =
HERE = $(shell pwd)
PTYPE=python
HERE = $(shell pwd)/pypy
PTYPE=pypy
BIN = $(HERE)/bin
VIRTUALENV = virtualenv
TESTS = $(APPNAME)/tests
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Expand Up @@ -10,7 +10,7 @@ autobahn[twisted]==0.13.0
boto==2.38.0
cffi==1.1.2
characteristic==14.3.0
cryptography==0.9.1
cryptography==1.2.3
cyclone==1.1
datadog==0.5.0
decorator==4.0.0
Expand Down
2 changes: 1 addition & 1 deletion test-requirements.txt
Expand Up @@ -16,7 +16,7 @@ autobahn[twisted]==0.13.0
boto==2.38.0
#cffi==1.1.2
characteristic==14.3.0
cryptography==0.9.1
cryptography==1.2.3
cyclone==1.1
datadog==0.5.0
decorator==4.0.0
Expand Down

0 comments on commit 2795138

Please sign in to comment.