Skip to content

Commit bcb429e

Browse files
authored
Add rust command line tooling to the universal image (#14)
Signed-off-by: Mario Loriedo <[email protected]>
1 parent a021173 commit bcb429e

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,10 @@ docker run -ti --rm \
104104
| `setuptools` |`python39-setuptools` |
105105
| `pip` |`python39-pip` |
106106
| `pylint` |`<via pip>` |
107+
|--------RUST---------|-------------------------------------|
108+
| `rustup` |`<sh.rustup.rs>` |
109+
| `rust-src` |`<via rustup>` |
110+
| `rust-analysis` |`<via rustup>` |
107111
|------CLOUD----------|-------------------------------------|
108112
| `podman` |`container-tools:rhel8` |
109113
| `buildah` |`container-tools:rhel8` |
@@ -117,7 +121,7 @@ docker run -ti --rm \
117121
| `terraform` |`<releases.hashicorp.com>` |
118122
| `docker` |`<download.docker.com>` |
119123
| `docker-compose` |`<gh releases>` |
120-
| **TOTAL SIZE** | **4.48GB** (1.9GB compressed) |
124+
| **TOTAL SIZE** | **6.03GB** (2.21GB compressed) |
121125

122126

123127

universal/ubi8/Dockerfile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,15 @@ ENV PHP_DEFAULT_INCLUDE_PATH=/usr/share/pear \
119119
ENV DOTNET_RPM_VERSION=5.0
120120
RUN dnf install -y dotnet-hostfxr-${DOTNET_RPM_VERSION} dotnet-runtime-${DOTNET_RPM_VERSION} dotnet-sdk-${DOTNET_RPM_VERSION}
121121

122+
# rust
123+
ENV CARGO_HOME=/home/user/.cargo \
124+
RUSTUP_HOME=/home/user/.rustup \
125+
PATH=/home/user/.cargo/bin:${PATH}
126+
RUN curl --proto '=https' --tlsv1.2 -sSfo rustup https://sh.rustup.rs && \
127+
chmod +x rustup && \
128+
mv rustup /usr/bin/ && \
129+
rustup -y --no-modify-path --profile minimal -c rust-src -c rust-analysis -c rls
130+
122131
# Cloud
123132

124133
## podman buildah skopeo

0 commit comments

Comments
 (0)