Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bats test: change rust docker image to Debian 11 bullseye version #1535

Merged
merged 2 commits into from
Jan 3, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions tests/bats/common_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,17 +38,17 @@ generate_rust_golang_dockerfile() {
local dockerfile=${1:-"/tmp/rust_golang_dockerfile"}
local rust_version=${2:-"${rust_toolchain}"}
cat > $dockerfile <<EOF
FROM rust:${rust_version}
FROM rust:${rust_version}-bullseye

RUN apt-get update -y \
&& apt-get install -y cmake g++ pkg-config jq libcurl4-openssl-dev libelf-dev libdw-dev binutils-dev libiberty-dev musl-tools \
&& rustup component add rustfmt clippy \
&& rm -rf /var/lib/apt/lists/*

# install golang env
Run wget https://go.dev/dl/go1.19.linux-amd64.tar.gz \
&& tar -C /usr/local -xzf go1.19.linux-amd64.tar.gz \
&& rm -rf go1.19.linux-amd64.tar.gz
Run wget https://go.dev/dl/go1.21.5.linux-amd64.tar.gz \
&& tar -C /usr/local -xzf go1.21.5.linux-amd64.tar.gz \
&& rm -rf go1.21.5.linux-amd64.tar.gz

ENV PATH \$PATH:/usr/local/go/bin
RUN go env -w GO111MODULE=on
Expand Down