Skip to contentSkip to conversation

travis: use alt:sisyphus from docker.io

PATCH In review Mimi Zohar 2 participants 5 messages Nov 2, 2021 – Nov 3, 2021 Keys-trusted

lore
Share & tools
lore

Mimi Zohar

author maintainer
#0 lore raw

PATCH 1/1 travis: use alt:sisyphus from docker.io

Instead of returning an image, it prompts for a response. Hardcode to use docker.io.

Please select an image:
▸ docker.io/library/alt:sisyphus
quay.io/alt:sisyphus

---
 .travis.yml | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
.travis.yml +3 -2
index 42853e16bfee..3836befe0bae 100644
@@ -68,7 +68,7 @@ matrix:
           compiler: gcc
 
         - os: linux
-          env: DISTRO=alt:sisyphus TSS=libtpm2-tss-devel CONTAINER=podman CONTAINER_ARGS="--runtime=/usr/bin/crun --network=host"
+          env: REPO="docker.io/library" DISTRO=${REPO}/alt:sisyphus TSS=libtpm2-tss-devel CONTAINER=podman CONTAINER_ARGS="--runtime=/usr/bin/crun --network=host"
           compiler: gcc
 
 before_install:
@@ -92,6 +92,7 @@ before_install:
     - $CONTAINER build $CONTAINER_ARGS -t ima-evm-utils .
 
 script:
-    - INSTALL="${DISTRO%%:*}"
+    - INSTALL="${DISTRO#${REPO}/}"
+    - INSTALL="${INSTALL%%:*}"
     - INSTALL="${INSTALL%%/*}"
     - $CONTAINER run $CONTAINER_ARGS -t ima-evm-utils /bin/sh -c "if [ \"$VARIANT\" ]; then ARCH=\"$ARCH\" ./ci/$INSTALL.$VARIANT.sh; fi && ARCH=\"$ARCH\" CC=\"$CC\" TSS=\"$TSS\" ./ci/$INSTALL.sh && if [ "$COMPILE_SSL" ]; then COMPILE_SSL="$COMPILE_SSL" ./tests/install-openssl3.sh; fi && if [ ! \"$VARIANT\" ]; then which tpm_server || which swtpm || if which tssstartup; then ./tests/install-swtpm.sh; fi; fi && CC=\"$CC\" VARIANT=\"$VARIANT\" ./build.sh"
Signature · 1 line
2.27.0
#1 lore raw

Mimi,

Quoted 17 lines · Mimi Zohar

Instead of returning an image, it prompts for a response. Hardcode to use docker.io.

Please select an image:
▸ docker.io/library/alt:sisyphus
quay.io/alt:sisyphus

---
 .travis.yml | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
.travis.yml +0 -0
index 42853e16bfee..3836befe0bae 100644

.travis.yml matrix: · line 71

Quoted 5 lines
.travis.yml +1 -1
@@ -68,7 +68,7 @@ matrix:
           compiler: gcc
 
         - os: linux
-          env: DISTRO=alt:sisyphus TSS=libtpm2-tss-devel CONTAINER=podman CONTAINER_ARGS="--runtime=/usr/bin/crun --network=host"
+          env: REPO="docker.io/library" DISTRO=${REPO}/alt:sisyphus TSS=libtpm2-tss-devel CONTAINER=podman CONTAINER_ARGS="--runtime=/usr/bin/crun --network=host"

I wonder why podman is used in this case.

Thanks,

Quoted 14 lines
.travis.yml +2 -1
           compiler: gcc
 
 before_install:
@@ -92,6 +92,7 @@ before_install:
     - $CONTAINER build $CONTAINER_ARGS -t ima-evm-utils .
 
 script:
-    - INSTALL="${DISTRO%%:*}"
+    - INSTALL="${DISTRO#${REPO}/}"
+    - INSTALL="${INSTALL%%:*}"
     - INSTALL="${INSTALL%%/*}"
     - $CONTAINER run $CONTAINER_ARGS -t ima-evm-utils /bin/sh -c "if [ \"$VARIANT\" ]; then ARCH=\"$ARCH\" ./ci/$INSTALL.$VARIANT.sh; fi && ARCH=\"$ARCH\" CC=\"$CC\" TSS=\"$TSS\" ./ci/$INSTALL.sh && if [ "$COMPILE_SSL" ]; then COMPILE_SSL="$COMPILE_SSL" ./tests/install-openssl3.sh; fi && if [ ! \"$VARIANT\" ]; then which tpm_server || which swtpm || if which tssstartup; then ./tests/install-swtpm.sh; fi; fi && CC=\"$CC\" VARIANT=\"$VARIANT\" ./build.sh"
Signature · 1 line
2.27.0
author maintainer
#2 lore raw
Quoted 22 lines · Vitaly Chikunov

Mimi,

Quoted 19 lines · Mimi Zohar

Instead of returning an image, it prompts for a response. Hardcode to use docker.io.

Please select an image:
▸ docker.io/library/alt:sisyphus
quay.io/alt:sisyphus

---
 .travis.yml | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
.travis.yml +0 -0
index 42853e16bfee..3836befe0bae 100644
@@ -68,7 +68,7 @@ matrix:
           compiler: gcc
 
Quoted 5 lines

.travis.yml matrix: · line 71

Quoted 3 lines
.travis.yml +1 -1
         - os: linux
-          env: DISTRO=alt:sisyphus TSS=libtpm2-tss-devel CONTAINER=podman CONTAINER_ARGS="--runtime=/usr/bin/crun --network=host"
+          env: REPO="docker.io/library" DISTRO=${REPO}/alt:sisyphus TSS=libtpm2-tss-devel CONTAINER=podman CONTAINER_ARGS="--runtime=/usr/bin/crun --network=host"

I wonder why podman is used in this case.

We were seeing issues on Alpine, Fedora, and Alt. Changing to podman fixed them. For example on Alt, we started seeing the following, but openssl-gost was installed. [1]

+ control openssl-gost
control: No such facility: openssl-gost

I've reverted the commit, but I don't have access to the public travis. I've asked Stefan to trigger travis and am waiting for the results.

Mimi

[1]
https://app.travis-ci.com/github/stefanberger/ima-evm-utils/jobs/545999661

author maintainer
#3 lore raw

Hi Vitaly,

Quoted 33 lines · Mimi Zohar
Quoted 22 lines · Vitaly Chikunov

Mimi,

Quoted 19 lines · Mimi Zohar

Instead of returning an image, it prompts for a response. Hardcode to use docker.io.

Please select an image:
▸ docker.io/library/alt:sisyphus
quay.io/alt:sisyphus

---
 .travis.yml | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
.travis.yml +0 -0
index 42853e16bfee..3836befe0bae 100644
@@ -68,7 +68,7 @@ matrix:
           compiler: gcc
 
Quoted 5 lines

.travis.yml matrix: · line 71

Quoted 3 lines
.travis.yml +1 -1
         - os: linux
-          env: DISTRO=alt:sisyphus TSS=libtpm2-tss-devel CONTAINER=podman CONTAINER_ARGS="--runtime=/usr/bin/crun --network=host"
+          env: REPO="docker.io/library" DISTRO=${REPO}/alt:sisyphus TSS=libtpm2-tss-devel CONTAINER=podman CONTAINER_ARGS="--runtime=/usr/bin/crun --network=host"

I wonder why podman is used in this case.

We were seeing issues on Alpine, Fedora, and Alt. Changing to podman fixed them. For example on Alt, we started seeing the following, but openssl-gost was installed. [1]

Quoted 5 lines

+ control openssl-gost
control: No such facility: openssl-gost

I've reverted the commit, but I don't have access to the public travis. I've asked Stefan to trigger travis and am waiting for the results.

All three are still failing, but differently than before [2].

Mimi

Quoted 3 lines

[1]
https://app.travis-ci.com/github/stefanberger/ima-evm-utils/jobs/545999661

[2]
https://app.travis-ci.com/github/stefanberger/ima-evm-utils/builds/241072887

#4 lore raw
In reply to Mimi Zohar

Mimi,

Quoted 27 lines · Mimi Zohar
Quoted 20 lines · Vitaly Chikunov
Quoted 19 lines · Mimi Zohar

Instead of returning an image, it prompts for a response. Hardcode to use docker.io.

Please select an image:
▸ docker.io/library/alt:sisyphus
quay.io/alt:sisyphus

---
 .travis.yml | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
.travis.yml +0 -0
index 42853e16bfee..3836befe0bae 100644
@@ -68,7 +68,7 @@ matrix:
           compiler: gcc
 
Quoted 5 lines

.travis.yml matrix: · line 71

Quoted 3 lines
.travis.yml +1 -1
         - os: linux
-          env: DISTRO=alt:sisyphus TSS=libtpm2-tss-devel CONTAINER=podman CONTAINER_ARGS="--runtime=/usr/bin/crun --network=host"
+          env: REPO="docker.io/library" DISTRO=${REPO}/alt:sisyphus TSS=libtpm2-tss-devel CONTAINER=podman CONTAINER_ARGS="--runtime=/usr/bin/crun --network=host"

I wonder why podman is used in this case.

Quoted 6 lines

We were seeing issues on Alpine, Fedora, and Alt. Changing to podman fixed them. For example on Alt, we started seeing the following, but openssl-gost was installed. [1]

+ control openssl-gost
control: No such facility: openssl-gost

Now I realize that podman is used to workaround incorrect seccomp filtering of faccessat2 syscall in old Docker (with EPERM instead of ENOSYS). This problem is still not fixed in bionic Travis instances, causing "control: No such facility" errors.

Thanks,

Quoted 8 lines

I've reverted the commit, but I don't have access to the public travis. I've asked Stefan to trigger travis and am waiting for the results.

Mimi

[1]
https://app.travis-ci.com/github/stefanberger/ima-evm-utils/jobs/545999661