-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
introduce bootstrap script for it env
- Loading branch information
Showing
3 changed files
with
26 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |