Use golang:1.21 container for shadow experiments

This commit is contained in:
Cecylia Bocovich 2024-02-14 14:41:22 -05:00
parent 2c16ef83cb
commit 810f1fcc00
No known key found for this signature in database
GPG key ID: 009DE379FD9B7B90

View file

@ -155,8 +155,7 @@ debian-testing:
- *go-test - *go-test
shadow-integration: shadow-integration:
# Need golang 1.21 from unstable to build snowflake image: golang:1.21-$DEBIAN_STABLE
image: debian:sid-slim
variables: variables:
SHADOW_VERSION: "v3.1.0" SHADOW_VERSION: "v3.1.0"
TGEN_VERSION: "v1.1.2" TGEN_VERSION: "v1.1.2"
@ -183,9 +182,8 @@ shadow-integration:
echo "The required version of shadow was not cached, building from source" echo "The required version of shadow was not cached, building from source"
git clone --branch $SHADOW_VERSION --depth 1 https://github.com/shadow/shadow.git git clone --branch $SHADOW_VERSION --depth 1 https://github.com/shadow/shadow.git
pushd shadow/ pushd shadow/
CONTAINER=debian:sid-slim ci/container_scripts/install_deps.sh CONTAINER=debian:stable-slim ci/container_scripts/install_deps.sh
CC=gcc CONTAINER=debian:sid-slim ci/container_scripts/install_extra_deps.sh CC=gcc CONTAINER=debian:stable-slim ci/container_scripts/install_extra_deps.sh
apt-get install -y zlib1g
export PATH="$HOME/.cargo/bin:${PATH}" export PATH="$HOME/.cargo/bin:${PATH}"
./setup build --jobs $(nproc) --prefix $CI_PROJECT_DIR/opt/ ./setup build --jobs $(nproc) --prefix $CI_PROJECT_DIR/opt/
./setup install ./setup install