Skip to content

Commit

Permalink
introduce bootstrap script for it env
Browse files Browse the repository at this point in the history
  • Loading branch information
pront committed Mar 3, 2025
1 parent d295ef0 commit 80a43ec
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 22 deletions.
2 changes: 1 addition & 1 deletion scripts/cross/bootstrap-ubuntu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -60,5 +60,5 @@ rm ${GO_TAR_FILE}
ln -s /usr/local/go/bin/go /usr/local/bin/go

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
cargo install --force --locked bindgen-cli
cargo install --force --locked --version 0.71.1 bindgen-cli
ln -s "$(dirname $(which cargo))/"* /usr/local/bin/
23 changes: 2 additions & 21 deletions scripts/integration/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,25 +1,6 @@
ARG RUST_VERSION
FROM docker.io/rust:${RUST_VERSION}-slim-bookworm

RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential \
libc6-dev \
cmake \
curl \
g++ \
llvm \
libclang-dev \
libsasl2-dev \
libssl-dev \
pkg-config \
zlib1g-dev \
unzip \
git \
golang-go \
&& rm -rf /var/lib/apt/lists/*

RUN rustup run "${RUST_VERSION}" cargo install cargo-nextest --version 0.9.72 --locked

COPY scripts/environment/install-protoc.sh /
COPY scripts/cross/bootstrap-ubuntu.sh scripts/environment/install-protoc.sh /
COPY tests/data/ca/certs /certs
RUN bash /install-protoc.sh
RUN /bootstrap-ubuntu.sh
23 changes: 23 additions & 0 deletions scripts/integration/bootstrap-ubuntu.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#!/bin/sh
set -o errexit

apt-get update && apt-get install -y --no-install-recommends \
build-essential \
libc6-dev \
cmake \
curl \
g++ \
llvm \
libclang-dev \
libsasl2-dev \
libssl-dev \
pkg-config \
zlib1g-dev \
unzip \
git \
golang-go \
&& rm -rf /var/lib/apt/lists/*

rustup run "${RUST_VERSION}" cargo install cargo-nextest --version 0.9.72 --locked
rustup run "${RUST_VERSION}" cargo install bindgen-cli --version 0.71.1 --locked
./install-protoc.sh

0 comments on commit 80a43ec

Please sign in to comment.