Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a30ed30

Browse files
committed
Add Python 3.3
1 parent 310c3ca commit a30ed30

File tree

7 files changed

+41
-3
lines changed

7 files changed

+41
-3
lines changed
File renamed without changes.
File renamed without changes.

3.3/Dockerfile

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
FROM buildpack-deps
2+
3+
RUN apt-get update && apt-get install -y curl procps
4+
5+
# remove several traces of debian python
6+
RUN apt-get purge -y python python-minimal python2.7-minimal
7+
8+
RUN mkdir /usr/src/python
9+
WORKDIR /usr/src/python
10+
11+
ENV PYTHON_VERSION 3.3.5
12+
13+
RUN curl -SL "https://www.python.org/ftp/python/$PYTHON_VERSION/Python-$PYTHON_VERSION.tar.xz" \
14+
| tar -xJ --strip-components=1
15+
RUN ./configure \
16+
&& make -j$(nproc) \
17+
&& make install \
18+
&& make clean
19+
20+
# make some useful symlinks that are expected to exist
21+
RUN cd /usr/local/bin \
22+
&& ln -s easy_install-3.4 easy_install \
23+
&& ln -s idle3 idle \
24+
&& ln -s pip3 pip \
25+
&& ln -s pydoc3 pydoc \
26+
&& ln -s python3 python \
27+
&& ln -s python-config3 python-config
28+
29+
CMD ["python3"]

3.3/onbuild/Dockerfile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
FROM python:3.3.5
2+
3+
RUN mkdir -p /usr/src/app
4+
WORKDIR /usr/src/app
5+
6+
ONBUILD COPY requirements.txt /usr/src/app/
7+
ONBUILD RUN pip install -r requirements.txt
8+
9+
ONBUILD COPY . /usr/src/app
File renamed without changes.
File renamed without changes.

generate-stackbrew-library.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ set -e
33

44
declare -A aliases
55
aliases=(
6-
[3]='latest'
6+
[3.4]='3 latest'
7+
[2.7]='2'
78
)
89

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

2323
echo
2424
for va in "${versionAliases[@]}"; do

0 commit comments

Comments
 (0)