Skip to content
This repository was archived by the owner on Mar 15, 2022. It is now read-only.

Commit 6308462

Browse files
committed
initial commit: build a new docker image which installs pypy on top of manylinux2010
1 parent 3dc8681 commit 6308462

File tree

5 files changed

+52
-0
lines changed

5 files changed

+52
-0
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# prefetched sources
2+
docker/sources
3+
14
# Byte-compiled / optimized / DLL files
25
__pycache__/
36
*.py[cod]

build.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/bin/bash
2+
3+
# Stop at any error, show all commands
4+
set -ex
5+
6+
TAG=manylinux2010-pypy_x86_64
7+
docker/build_scripts_pypy/prefetch_pypy.sh
8+
docker build --rm -t $TAG:${TRAVIS_COMMIT:-x} -t $TAG:latest -f docker/Dockerfile-x86_64 docker/

docker/Dockerfile-x86_64

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
FROM quay.io/pypa/manylinux2010_x86_64
2+
LABEL maintainer="Antonio Cuni"
3+
4+
COPY sources /
5+
COPY build_scripts /build_scripts
6+
COPY build_scripts_pypy /build_scripts_pypy
7+
RUN bash build_scripts_pypy/install_pypy.sh && rm -rf build_scripts*
8+
9+
CMD ["/bin/bash"]
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#!/bin/bash
2+
3+
set -ex
4+
5+
function install_one_pypy {
6+
local tarball=$1
7+
8+
mkdir -p /opt/pypy
9+
cd /opt/pypy
10+
tar xf $tarball
11+
}
12+
13+
for PYPY in /pypy*.tar.bz2
14+
do
15+
install_one_pypy "$PYPY"
16+
done
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#!/bin/bash
2+
3+
set -ex
4+
5+
SOURCES=docker/sources
6+
URL=https://bitbucket.org/squeaky/portable-pypy/downloads
7+
8+
MY_DIR=$(dirname "${BASH_SOURCE[0]}")
9+
. $MY_DIR/../build_scripts/build_utils.sh
10+
11+
[ -d "$SOURCES" ] || mkdir "$SOURCES"
12+
cd "$SOURCES"
13+
14+
# pypy 7.1.1
15+
fetch_source pypy-7.1.1-linux_x86_64-portable.tar.bz2 "$URL"
16+
fetch_source pypy3.6-7.1.1-beta-linux_x86_64-portable.tar.bz2 "$URL"

0 commit comments

Comments
 (0)