-
Notifications
You must be signed in to change notification settings - Fork 270
/
Dockerfile
31 lines (22 loc) · 1.1 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Builder
FROM registry.access.redhat.com/ubi9/ubi:9.4-1123.1719560047@sha256:081c96d1b1c7cd1855722d01f1ca53360510443737b1eb33284c6c4c330e537c AS builder
# renovate: datasource=github-releases depName=erlang/rebar3
ARG REBAR3_VERSION=3.24.0
RUN curl -L "https://github.com/erlang/rebar3/releases/download/${REBAR3_VERSION}/rebar3" -o /usr/local/bin/rebar3 && \
chmod +x /usr/local/bin/rebar3
# Runnable
FROM ghcr.io/redhat-cop/containers-quickstarts/jenkins-agent:v4.16
SHELL ["/bin/bash", "-c"]
LABEL name="redhat-cop/jenkins-agent-erlang" \
io.k8s.display-name="Jenkins Agent erlang" \
io.k8s.description="The jenkins agent erlang." \
com.redhat.component="redhat-cop/containers-quickstarts/jenkins-agent-erlang"
# renovate: datasource=github-releases depName=rabbitmq/erlang-rpm
ARG ERLANG_VERSION=v26.2.5
USER root
COPY --from=builder /usr/local/bin/rebar3 /usr/local/bin/rebar3
RUN dnf install -y "https://github.com/rabbitmq/erlang-rpm/releases/download/${ERLANG_VERSION}/erlang-${ERLANG_VERSION//v}-1.el8.x86_64.rpm" && \
dnf clean all
USER 1001
RUN erl -version && \
rebar3 version