Skip to content

Commit fa71318

Browse files
committed
Merge pull request docker-library#28 from ceroic/wheezy-official
Wheezy variants for official repo
2 parents 07ff912 + 7716978 commit fa71318

File tree

4 files changed

+103
-1
lines changed

4 files changed

+103
-1
lines changed

2.7/wheezy/Dockerfile

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
FROM buildpack-deps:wheezy
2+
3+
# remove several traces of debian python
4+
RUN apt-get purge -y python.*
5+
6+
# http://bugs.python.org/issue19846
7+
# > At the moment, setting "LANG=C" on a Linux system *fundamentally breaks Python 3*, and that's not OK.
8+
ENV LANG C.UTF-8
9+
10+
ENV PYTHON_VERSION 2.7.8
11+
12+
RUN set -x \
13+
&& mkdir -p /usr/src/python \
14+
&& curl -SL "https://www.python.org/ftp/python/$PYTHON_VERSION/Python-$PYTHON_VERSION.tar.xz" \
15+
| tar -xJC /usr/src/python --strip-components=1 \
16+
&& cd /usr/src/python \
17+
&& ./configure --enable-shared \
18+
&& make -j$(nproc) \
19+
&& make install \
20+
&& ldconfig \
21+
&& curl -SL 'https://bootstrap.pypa.io/get-pip.py' | python2 \
22+
&& find /usr/local \
23+
\( -type d -a -name test -o -name tests \) \
24+
-o \( -type f -a -name '*.pyc' -o -name '*.pyo' \) \
25+
-exec rm -rf '{}' + \
26+
&& rm -rf /usr/src/python
27+
28+
# install "virtualenv", since the vast majority of users of this image will want it
29+
RUN pip install virtualenv
30+
31+
CMD ["python2"]

3.3/wheezy/Dockerfile

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
FROM buildpack-deps:wheezy
2+
3+
# remove several traces of debian python
4+
RUN apt-get purge -y python.*
5+
6+
# http://bugs.python.org/issue19846
7+
# > At the moment, setting "LANG=C" on a Linux system *fundamentally breaks Python 3*, and that's not OK.
8+
ENV LANG C.UTF-8
9+
10+
ENV PYTHON_VERSION 3.3.6
11+
12+
RUN set -x \
13+
&& mkdir -p /usr/src/python \
14+
&& curl -SL "https://www.python.org/ftp/python/$PYTHON_VERSION/Python-$PYTHON_VERSION.tar.xz" \
15+
| tar -xJC /usr/src/python --strip-components=1 \
16+
&& cd /usr/src/python \
17+
&& ./configure --enable-shared \
18+
&& make -j$(nproc) \
19+
&& make install \
20+
&& ldconfig \
21+
&& curl -SL 'https://bootstrap.pypa.io/get-pip.py' | python3 \
22+
&& find /usr/local \
23+
\( -type d -a -name test -o -name tests \) \
24+
-o \( -type f -a -name '*.pyc' -o -name '*.pyo' \) \
25+
-exec rm -rf '{}' + \
26+
&& rm -rf /usr/src/python
27+
28+
# make some useful symlinks that are expected to exist
29+
RUN cd /usr/local/bin \
30+
&& ln -s idle3 idle \
31+
&& ln -s pydoc3 pydoc \
32+
&& ln -s python3 python \
33+
&& ln -s python-config3 python-config
34+
35+
CMD ["python3"]

3.4/wheezy/Dockerfile

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
FROM buildpack-deps:wheezy
2+
3+
# remove several traces of debian python
4+
RUN apt-get purge -y python.*
5+
6+
# http://bugs.python.org/issue19846
7+
# > At the moment, setting "LANG=C" on a Linux system *fundamentally breaks Python 3*, and that's not OK.
8+
ENV LANG C.UTF-8
9+
10+
ENV PYTHON_VERSION 3.4.2
11+
12+
RUN set -x \
13+
&& mkdir -p /usr/src/python \
14+
&& curl -SL "https://www.python.org/ftp/python/$PYTHON_VERSION/Python-$PYTHON_VERSION.tar.xz" \
15+
| tar -xJC /usr/src/python --strip-components=1 \
16+
&& cd /usr/src/python \
17+
&& ./configure --enable-shared \
18+
&& make -j$(nproc) \
19+
&& make install \
20+
&& ldconfig \
21+
&& find /usr/local \
22+
\( -type d -a -name test -o -name tests \) \
23+
-o \( -type f -a -name '*.pyc' -o -name '*.pyo' \) \
24+
-exec rm -rf '{}' + \
25+
&& rm -rf /usr/src/python
26+
27+
# make some useful symlinks that are expected to exist
28+
RUN cd /usr/local/bin \
29+
&& ln -s easy_install-3.4 easy_install \
30+
&& ln -s idle3 idle \
31+
&& ln -s pip3 pip \
32+
&& ln -s pydoc3 pydoc \
33+
&& ln -s python3 python \
34+
&& ln -s python-config3 python-config
35+
36+
CMD ["python3"]

generate-stackbrew-library.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ for version in "${versions[@]}"; do
2525
echo "$va: ${url}@${commit} $version"
2626
done
2727

28-
for variant in onbuild slim; do
28+
for variant in onbuild slim wheezy; do
2929
commit="$(git log -1 --format='format:%H' -- "$version/$variant")"
3030
echo
3131
for va in "${versionAliases[@]}"; do

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy