Skip to content

Commit 91e12f3

Browse files
committed
another attempt at fixing qemu
1 parent ec11ad4 commit 91e12f3

File tree

7 files changed

+17
-10
lines changed

7 files changed

+17
-10
lines changed

.github/workflows/build_ci_multi.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
uses: actions/checkout@v3
3434
- run: |
3535
sudo apt-get update
36-
sudo apt-get -y install buildah less git make podman qemu clamav clamav-freshclam
36+
sudo apt-get -y install buildah less git make podman qemu qemu-user-static clamav clamav-freshclam
3737
name: 'install dev deps'
3838
- run: buildah unshare make branch_or_ref=master release_tag=master multibuild
3939
name: 'build multi image'

.github/workflows/build_latest_release_multi.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
docker login -u ${{secrets.QUAY_USER}} -p ${{secrets.QUAY_TOKEN}} quay.io
4141
- run: |
4242
sudo apt-get update
43-
sudo apt-get -y install buildah less git make podman qemu clamav clamav-freshclam
43+
sudo apt-get -y install buildah less git make podman qemu qemu-user-static clamav clamav-freshclam
4444
name: 'install dev deps'
4545
- name: Sets env vars
4646
run: |

.github/workflows/build_master_multi.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343
docker login -u ${{secrets.QUAY_USER}} -p ${{secrets.QUAY_TOKEN}} quay.io
4444
- run: |
4545
sudo apt-get update
46-
sudo apt-get -y install buildah less git make podman qemu clamav clamav-freshclam
46+
sudo apt-get -y install buildah less git make podman qemu qemu-user-static clamav clamav-freshclam
4747
name: 'install dev deps'
4848
- run: buildah unshare make branch_or_ref=master release_tag=master multibuild
4949
name: 'build multi image'

Containerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
from quay.io/buildah/stable:latest
1313

14-
RUN dnf --nodocs --setopt install_weak_deps=false -y install less git make podman qemu-user-static buildah clamav clamav-freshclam
14+
RUN dnf --nodocs --setopt install_weak_deps=false -y install less git make podman qemu qemu-user-static buildah clamav clamav-freshclam
1515

1616
COPY requirements.txt requirements.txt
1717
RUN python3 -m ensurepip

Makefile

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,17 @@ build_debian:
3030
build_fedora:
3131
./create_dev_image.sh ${arch} ${fedora_base} ${compiler} "gcc cargo zsh git openssl-devel python3 python3-devel python3-pip libtool curl stunnel perl nghttp2 brotli" " --enable-ipv6 --enable-unix-sockets -with-ssl --with-libssh2 --with-nghttp2=/usr" ${branch_or_ref} curl-dev-fedora:${release_tag}
3232

33+
##############################################
34+
# build_alpine dev, base and appliance image
35+
##############################################
36+
#
37+
# > make branch_or_ref=master release_tag=master run_tests=1 build_arm64
38+
#
39+
build_arm64:
40+
./create_dev_image.sh "linux/arm" ${base} ${compiler} ${dev_deps} ${build_opts} ${branch_or_ref} curl-dev-linux-arm64:${release_tag} ${run_tests}
41+
# ./create_base_image.sh "linux/arm64" ${base} localhost/curl-dev-linux-arm64:${release_tag} ${base_deps} curl-base-linux-arm64:${release_tag} ${release_tag}
42+
# ./create_appliance_image.sh "linux/arm64" localhost/curl-base-linux-arm64:${release_tag} curl-linux-arm64:${release_tag} ${release_tag}
43+
3344
##############################################
3445
# build_alpine dev, base and appliance image
3546
##############################################

create_dev_image.sh

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ buildah config --label name="${image_name}" $bdr
3939

4040
# determine dist package manager
4141
if [[ "$dist" =~ .*"alpine".* ]]; then
42-
package_manage_update="apk update upgrade"
42+
package_manage_update="apk upgrade"
4343
package_manage_add="apk add "
4444
fi
4545
if [[ "$dist" =~ .*"fedora".* ]]; then
@@ -51,13 +51,10 @@ if [[ "$dist" =~ .*"debian".* ]]; then
5151
package_manage_add="apt-get -y install "
5252
fi
5353

54-
echo ${package_manage_update}
5554

5655
# install deps using specific dist package manager
57-
echo $install_deps
5856
buildah run $bdr ${package_manage_update}
5957
buildah run $bdr ${package_manage_add} ${deps}
60-
echo "her."
6158

6259
# setup curl source derived from branch or tag
6360
echo "get curl source"

create_multi.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,7 @@ buildah manifest create curl-base-multi:${release_tag}
2424
buildah manifest create curl-multi:${release_tag}
2525

2626
# loop through supported arches
27-
#for IMGTAG in "linux/amd64" "linux/arm64" "linux/arm/v7" "linux/ppc64le" "linux/s390x" "linux/386" ; do
28-
for IMGTAG in "linux/amd64" "linux/ppc64le" "linux/s390x" "linux/386" ; do
27+
for IMGTAG in "linux/amd64" "linux/arm64" "linux/arm/v7" "linux/ppc64le" "linux/s390x" "linux/386" ; do
2928
pathname="${IMGTAG////-}"
3029
echo "building $IMGTAG : $pathname"
3130
./create_dev_image.sh "$IMGTAG" ${base} ${compiler} "$dev_deps" "$build_opts" ${branch_or_ref} curl-dev-${pathname}:${release_tag} 0

0 commit comments

Comments
 (0)