Skip to content

Commit 6da5c6f

Browse files
authored
feat: New docker images unto v2.3.11 (#207)
- Updated `generate_dockerfiles.py` with `--edition 2021` - Updated old docker images to include init step to download platform tools. - Added new docker images.
1 parent 7d7d86f commit 6da5c6f

File tree

86 files changed

+464
-11
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

86 files changed

+464
-11
lines changed

.github/workflows/test.yaml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,14 @@ jobs:
2626
steps:
2727
- uses: actions/checkout@v4
2828

29-
- name: Install dependencies
30-
run: sudo apt install -y pkg-config libudev-dev
29+
- name: Update apt indexes
30+
run: |
31+
sudo apt-get update -o Acquire::Retries=3
32+
33+
- name: Install build deps
34+
run: |
35+
sudo DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
36+
pkg-config libudev-dev
3137
3238
- name: Install Rust
3339
uses: dtolnay/rust-toolchain@stable

docker/v1.18.24.Dockerfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@ FROM --platform=linux/amd64 rust@sha256:b7b25312e49dfbe6cab04c89d5a8ed5df2df9714
33
RUN apt-get update && apt-get install -qy git gnutls-bin
44
RUN sh -c "$(curl -sSfL https://release.anza.xyz/v1.18.24/install)"
55
ENV PATH="/root/.local/share/solana/install/active_release/bin:$PATH"
6+
# Call cargo build-sbf to trigger installation of associated platform tools
7+
RUN cargo init temp --edition 2021 && \
8+
cd temp && \
9+
cargo build-sbf && \
10+
rm -rf temp
611
WORKDIR /build
712

813
CMD /bin/bash

docker/v1.18.25.Dockerfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@ FROM --platform=linux/amd64 rust@sha256:b7b25312e49dfbe6cab04c89d5a8ed5df2df9714
33
RUN apt-get update && apt-get install -qy git gnutls-bin
44
RUN sh -c "$(curl -sSfL https://release.anza.xyz/v1.18.25/install)"
55
ENV PATH="/root/.local/share/solana/install/active_release/bin:$PATH"
6+
# Call cargo build-sbf to trigger installation of associated platform tools
7+
RUN cargo init temp --edition 2021 && \
8+
cd temp && \
9+
cargo build-sbf && \
10+
rm -rf temp
611
WORKDIR /build
712

813
CMD /bin/bash

docker/v1.18.26.Dockerfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@ FROM --platform=linux/amd64 rust@sha256:b7b25312e49dfbe6cab04c89d5a8ed5df2df9714
33
RUN apt-get update && apt-get install -qy git gnutls-bin
44
RUN sh -c "$(curl -sSfL https://release.anza.xyz/v1.18.26/install)"
55
ENV PATH="/root/.local/share/solana/install/active_release/bin:$PATH"
6+
# Call cargo build-sbf to trigger installation of associated platform tools
7+
RUN cargo init temp --edition 2021 && \
8+
cd temp && \
9+
cargo build-sbf && \
10+
rm -rf temp
611
WORKDIR /build
712

813
CMD /bin/bash

docker/v2.0.0.Dockerfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@ FROM --platform=linux/amd64 rust@sha256:653bd24b9a8f9800c67df55fea5637a97152153f
33
RUN apt-get update && apt-get install -qy git gnutls-bin
44
RUN sh -c "$(curl -sSfL https://release.anza.xyz/v2.0.0/install)"
55
ENV PATH="/root/.local/share/solana/install/active_release/bin:$PATH"
6+
# Call cargo build-sbf to trigger installation of associated platform tools
7+
RUN cargo init temp --edition 2021 && \
8+
cd temp && \
9+
cargo build-sbf && \
10+
rm -rf temp
611
WORKDIR /build
712

813
CMD /bin/bash

docker/v2.0.1.Dockerfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@ FROM --platform=linux/amd64 rust@sha256:653bd24b9a8f9800c67df55fea5637a97152153f
33
RUN apt-get update && apt-get install -qy git gnutls-bin
44
RUN sh -c "$(curl -sSfL https://release.anza.xyz/v2.0.1/install)"
55
ENV PATH="/root/.local/share/solana/install/active_release/bin:$PATH"
6+
# Call cargo build-sbf to trigger installation of associated platform tools
7+
RUN cargo init temp --edition 2021 && \
8+
cd temp && \
9+
cargo build-sbf && \
10+
rm -rf temp
611
WORKDIR /build
712

813
CMD /bin/bash

docker/v2.0.10.Dockerfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@ FROM --platform=linux/amd64 rust@sha256:653bd24b9a8f9800c67df55fea5637a97152153f
33
RUN apt-get update && apt-get install -qy git gnutls-bin
44
RUN sh -c "$(curl -sSfL https://release.anza.xyz/v2.0.10/install)"
55
ENV PATH="/root/.local/share/solana/install/active_release/bin:$PATH"
6+
# Call cargo build-sbf to trigger installation of associated platform tools
7+
RUN cargo init temp --edition 2021 && \
8+
cd temp && \
9+
cargo build-sbf && \
10+
rm -rf temp
611
WORKDIR /build
712

813
CMD /bin/bash

docker/v2.0.11.Dockerfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@ FROM --platform=linux/amd64 rust@sha256:653bd24b9a8f9800c67df55fea5637a97152153f
33
RUN apt-get update && apt-get install -qy git gnutls-bin
44
RUN sh -c "$(curl -sSfL https://release.anza.xyz/v2.0.11/install)"
55
ENV PATH="/root/.local/share/solana/install/active_release/bin:$PATH"
6+
# Call cargo build-sbf to trigger installation of associated platform tools
7+
RUN cargo init temp --edition 2021 && \
8+
cd temp && \
9+
cargo build-sbf && \
10+
rm -rf temp
611
WORKDIR /build
712

813
CMD /bin/bash

docker/v2.0.12.Dockerfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@ FROM --platform=linux/amd64 rust@sha256:653bd24b9a8f9800c67df55fea5637a97152153f
33
RUN apt-get update && apt-get install -qy git gnutls-bin
44
RUN sh -c "$(curl -sSfL https://release.anza.xyz/v2.0.12/install)"
55
ENV PATH="/root/.local/share/solana/install/active_release/bin:$PATH"
6+
# Call cargo build-sbf to trigger installation of associated platform tools
7+
RUN cargo init temp --edition 2021 && \
8+
cd temp && \
9+
cargo build-sbf && \
10+
rm -rf temp
611
WORKDIR /build
712

813
CMD /bin/bash

docker/v2.0.13.Dockerfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@ FROM --platform=linux/amd64 rust@sha256:653bd24b9a8f9800c67df55fea5637a97152153f
33
RUN apt-get update && apt-get install -qy git gnutls-bin
44
RUN sh -c "$(curl -sSfL https://release.anza.xyz/v2.0.13/install)"
55
ENV PATH="/root/.local/share/solana/install/active_release/bin:$PATH"
6+
# Call cargo build-sbf to trigger installation of associated platform tools
7+
RUN cargo init temp --edition 2021 && \
8+
cd temp && \
9+
cargo build-sbf && \
10+
rm -rf temp
611
WORKDIR /build
712

813
CMD /bin/bash

0 commit comments

Comments
 (0)