Skip to content

Commit 7834242

Browse files
authored
Merge pull request #18 from isuruf/other_arch
x86_64 and ppc64le
2 parents d1c3d06 + d94fe39 commit 7834242

File tree

10 files changed

+21
-30
lines changed

10 files changed

+21
-30
lines changed

.travis.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,20 @@ matrix:
55
- os: linux
66
env:
77
- ARCH=aarch64
8+
- DOCKER_ARCH=arm64v8
89
- DOCKERIMAGE=condaforge/linux-anvil-aarch64
9-
- QEMU_BINARY=qemu-aarch64-static
10+
11+
- os: linux
12+
env:
13+
- ARCH=x86_64
14+
- DOCKER_ARCH=amd64
15+
- DOCKERIMAGE=condaforge/linux-anvil-comp7
16+
17+
- os: linux
18+
env:
19+
- ARCH=ppc64le
20+
- DOCKER_ARCH=ppc64le
21+
- DOCKERIMAGE=condaforge/linux-anvil-ppc64le
1022

1123
script:
1224
- bash build_miniforge.sh

Miniforge3/construct.yaml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
11
name: Miniforge3
2-
version: 4.8.2-0
2+
version: 4.8.2-1
33

44
channels:
55
- https://conda.anaconda.org/conda-forge
6-
# This will continue to be a dependency until the compilers are
7-
# moved to conda-forge.
8-
- https://conda.anaconda.org/c4aarch64 [linux-aarch64]
96

107
write_condarc: True
118
license_file: ../LICENSE

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ Installers are built and uploaded via Travis but if you want to construct your o
4747
# Configuration
4848
export ARCH=aarch64
4949
export DOCKERIMAGE=condaforge/linux-anvil-aarch64
50-
export QEMU_BINARY=qemu-aarch64-static
5150

5251
bash build_miniforge.sh
5352
```

build_miniforge.sh

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ set -e
44

55
# Check parameters
66
ARCH=${ARCH:-aarch64}
7+
DOCKER_ARCH=${DOCKER_ARCH:arm64v8}
78
DOCKERIMAGE=${DOCKERIMAGE:-condaforge/linux-anvil-aarch64}
8-
QEMU_BINARY=${QEMU_BINARY:-qemu-aarch64-static}
99

1010
echo "============= Create build directory ============="
1111
mkdir -p build/
@@ -21,15 +21,9 @@ echo "============= Download QEMU static binaries ============="
2121
bash scripts/get_qemu.sh
2222

2323
echo "============= Test the installer ============="
24-
for DOCKERFILE_PATH in $(find test_images/ -name "*.$ARCH")
24+
for TEST_IMAGE_NAME in "ubuntu:19.10" "ubuntu:16.04" "ubuntu:18.04" "centos:7" "debian:buster"
2525
do
26-
TEST_IMAGE_SUFFIX=$(echo $DOCKERFILE_PATH | cut -d'.' -f2-)
27-
TEST_IMAGE_NAME="miniforge_test_image.$TEST_IMAGE_SUFFIX"
28-
29-
echo "============= Building $TEST_IMAGE_NAME ============="
30-
docker build -t $TEST_IMAGE_NAME -f $DOCKERFILE_PATH .
31-
3226
echo "============= Test installer on $TEST_IMAGE_NAME ============="
33-
docker run --rm -ti -v $(pwd):/construct $TEST_IMAGE_NAME /construct/scripts/test.sh
27+
docker run --rm -ti -v $(pwd):/construct -v $(pwd)/build/qemu/qemu-${ARCH}-static:/usr/bin/qemu-${ARCH}-static ${DOCKER_ARCH}/$TEST_IMAGE_NAME /construct/scripts/test.sh
3428
done
3529

scripts/get_qemu.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,24 @@ QEMU_DIR="./build/qemu/"
77
qemu_ppc64le_sha256=d018b96e20f7aefbc50e6ba93b6cabfd53490cdf1c88b02e7d66716fa09a7a17
88
qemu_aarch64_sha256=a64b39b8ce16e2285cb130bcba7143e6ad2fe19935401f01c38325febe64104b
99
qemu_arm_sha256=f4184c927f78d23d199056c5b0b6d75855e298410571d65582face3159117901
10+
qemu_x86_64_sha256=b9e444bf656c13a6db502f09e3135ef0c6045a117d5413662ba233d8b80f8fbd
1011

1112
mkdir -p $QEMU_DIR/
1213
cd $QEMU_DIR/
1314

1415
wget https://github.com/multiarch/qemu-user-static/releases/download/${QEMU_STATIC_VERSION}/qemu-ppc64le-static
1516
wget https://github.com/multiarch/qemu-user-static/releases/download/${QEMU_STATIC_VERSION}/qemu-aarch64-static
1617
wget https://github.com/multiarch/qemu-user-static/releases/download/${QEMU_STATIC_VERSION}/qemu-arm-static
18+
wget https://github.com/multiarch/qemu-user-static/releases/download/${QEMU_STATIC_VERSION}/qemu-x86_64-static
1719

1820
sha256sum qemu-ppc64le-static | grep -F "${qemu_ppc64le_sha256}"
1921
sha256sum qemu-aarch64-static | grep -F "${qemu_aarch64_sha256}"
2022
sha256sum qemu-arm-static | grep -F "${qemu_aarch64_sha256}"
23+
sha256sum qemu-x86_64-static | grep -F "${qemu_x86_64_sha256}"
2124

2225
chmod +x qemu-ppc64le-static
2326
chmod +x qemu-aarch64-static
2427
chmod +x qemu-arm-static
28+
chmod +x qemu-x86_64-static
2529

2630
cd $CURRENT_DIR

test_images/Docker.centos7.aarch64

Lines changed: 0 additions & 3 deletions
This file was deleted.

test_images/Docker.debian_buster.aarch64

Lines changed: 0 additions & 3 deletions
This file was deleted.

test_images/Docker.ubuntu1604.aarch64

Lines changed: 0 additions & 3 deletions
This file was deleted.

test_images/Docker.ubuntu1804.aarch64

Lines changed: 0 additions & 3 deletions
This file was deleted.

test_images/Docker.ubuntu1910.aarch64

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)