Skip to content

Add Python 3.3 #11

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 17, 2014
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
File renamed without changes.
File renamed without changes.
29 changes: 29 additions & 0 deletions 3.3/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
FROM buildpack-deps

RUN apt-get update && apt-get install -y curl procps

# remove several traces of debian python
RUN apt-get purge -y python python-minimal python2.7-minimal

RUN mkdir /usr/src/python
WORKDIR /usr/src/python

ENV PYTHON_VERSION 3.3.5

RUN curl -SL "https://www.python.org/ftp/python/$PYTHON_VERSION/Python-$PYTHON_VERSION.tar.xz" \
| tar -xJ --strip-components=1
RUN ./configure \
&& make -j$(nproc) \
&& make install \
&& make clean

# make some useful symlinks that are expected to exist
RUN cd /usr/local/bin \
&& ln -s easy_install-3.4 easy_install \
&& ln -s idle3 idle \
&& ln -s pip3 pip \
&& ln -s pydoc3 pydoc \
&& ln -s python3 python \
&& ln -s python-config3 python-config

CMD ["python3"]
9 changes: 9 additions & 0 deletions 3.3/onbuild/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
FROM python:3.3.5

RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app

ONBUILD COPY requirements.txt /usr/src/app/
ONBUILD RUN pip install -r requirements.txt

ONBUILD COPY . /usr/src/app
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions generate-stackbrew-library.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ set -e

declare -A aliases
aliases=(
[3]='latest'
[3.4]='3 latest'
[2.7]='2'
)

cd "$(dirname "$(readlink -f "$BASH_SOURCE")")"
Expand All @@ -17,8 +18,7 @@ echo '# maintainer: InfoSiftr <github@infosiftr.com> (@infosiftr)'
for version in "${versions[@]}"; do
commit="$(git log -1 --format='format:%H' "$version")"
fullVersion="$(grep -m1 'ENV PYTHON_VERSION ' "$version/Dockerfile" | cut -d' ' -f3)"
majorVersion="$(echo "$fullVersion" | cut -d. -f1-2)"
versionAliases=( $fullVersion $majorVersion $version ${aliases[$version]} )
versionAliases=( $fullVersion $version ${aliases[$version]} )

echo
for va in "${versionAliases[@]}"; do
Expand Down