2022-06-19 21:50:37 +00:00
|
|
|
# BUILD IMAGE --------------------------------------------------------
|
2023-09-13 23:08:14 +00:00
|
|
|
FROM ubuntu:22.04
|
2022-11-26 15:56:33 +00:00
|
|
|
ARG UNAME=jenkins
|
|
|
|
ARG UID=1001
|
|
|
|
ARG GID=1001
|
2022-06-19 21:50:37 +00:00
|
|
|
|
|
|
|
LABEL maintainer="richard@status.im"
|
2022-11-09 19:53:01 +00:00
|
|
|
LABEL source="https://github.com/waku-org/go-waku"
|
2022-06-19 21:50:37 +00:00
|
|
|
LABEL description="go-waku: deb/rpm builder"
|
|
|
|
|
|
|
|
RUN export DEBIAN_FRONTEND=noninteractive \
|
|
|
|
&& apt update -yq \
|
2022-12-06 18:00:59 +00:00
|
|
|
&& apt install -yq ruby wget git rpm build-essential s3cmd curl
|
2022-06-19 21:50:37 +00:00
|
|
|
|
|
|
|
# Installing Golang
|
2023-11-15 16:31:18 +00:00
|
|
|
RUN GOLANG_SHA256="ef79a11aa095a08772d2a69e4f152f897c4e96ee297b0dc20264b7dec2961abe" \
|
|
|
|
&& GOLANG_TARBALL="go1.20.11.linux-amd64.tar.gz" \
|
2022-06-19 21:50:37 +00:00
|
|
|
&& wget -q "https://dl.google.com/go/${GOLANG_TARBALL}" \
|
|
|
|
&& echo "${GOLANG_SHA256} ${GOLANG_TARBALL}" | sha256sum -c \
|
|
|
|
&& tar -C /usr/local -xzf "${GOLANG_TARBALL}" \
|
|
|
|
&& rm "${GOLANG_TARBALL}" \
|
|
|
|
&& ln -s /usr/local/go/bin/go /usr/local/bin
|
|
|
|
|
|
|
|
RUN gem install fpm
|
|
|
|
|
|
|
|
# Jenkins user needs a specific UID/GID to work
|
2022-11-26 15:56:33 +00:00
|
|
|
RUN groupadd -g $GID $UNAME \
|
|
|
|
&& useradd --create-home -u $UID -g $GID $UNAME
|
|
|
|
USER $UNAME
|
|
|
|
ENV HOME="/home/${UNAME}"
|