forked from redhat-cop/containers-quickstarts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
22 lines (17 loc) · 759 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM quay.io/openshift/origin-jenkins-agent-base:4.5
LABEL com.redhat.component="jenkins-agent-rust-ubi7-docker" \
name="openshift/origin-jenkins-agent-rust-ubi7" \
version="4.4" \
architecture="x86_64" \
release="1" \
io.k8s.display_name="Jenkins Agent Rust" \
io.k8s.description="The jenkins agent Rust image has the Rust toolchain on top of the jenkins agent base image" \
io.openshift.tag="openshift,jenkins,agent,rust"
ENV PATH=$PATH:$HOME/.cargo/bin
ADD ubi.repo /etc/yum.repos.d/ubi.repo
RUN INSTALL_PKGS="gcc" && \
DISABLE_REPOS=--disablerepo='rhel-*' && \
yum $DISABLE_REPOS install -y $INSTALL_PKGS && \
rm -rf /var/cache/yum && \
curl https://sh.rustup.rs -sSf | sh -s -- -y
USER 1001