Changeset View
Changeset View
Standalone View
Standalone View
base-buster/Dockerfile
FROM openjdk:11-jdk-slim-buster | FROM openjdk:11-jdk-slim-buster | ||||
LABEL maintainer="SoftwareHeritage" | LABEL maintainer="SoftwareHeritage" | ||||
USER root | USER root | ||||
RUN \ | RUN \ | ||||
export DEBIAN_FRONTEND=noninteractive && \ | export DEBIAN_FRONTEND=noninteractive && \ | ||||
apt-get update && \ | apt-get update && \ | ||||
apt-get install -y apt-transport-https curl ca-certificates && \ | apt-get install -y apt-transport-https curl ca-certificates && \ | ||||
echo deb http://apt.postgresql.org/pub/repos/apt/ buster-pgdg main > /etc/apt/sources.list.d/postgres.list && \ | echo deb http://apt.postgresql.org/pub/repos/apt/ buster-pgdg main > /etc/apt/sources.list.d/postgres.list && \ | ||||
curl --create-dirs -fsSLo /etc/apt/trusted.gpg.d/postgresql.asc https://www.postgresql.org/media/keys/ACCC4CF8.asc && \ | curl --create-dirs -fsSLo /etc/apt/trusted.gpg.d/postgresql.asc https://www.postgresql.org/media/keys/ACCC4CF8.asc && \ | ||||
echo deb https://dl.yarnpkg.com/debian/ stable main > /etc/apt/sources.list.d/yarnpkg.list && \ | echo deb https://dl.yarnpkg.com/debian/ stable main > /etc/apt/sources.list.d/yarnpkg.list && \ | ||||
curl --create-dirs -fsSLo /etc/apt/trusted.gpg.d/yarnpkg.asc https://dl.yarnpkg.com/debian/pubkey.gpg && \ | curl --create-dirs -fsSLo /etc/apt/trusted.gpg.d/yarnpkg.asc https://dl.yarnpkg.com/debian/pubkey.gpg && \ | ||||
echo deb https://artifacts.elastic.co/packages/7.x/apt stable main > /etc/apt/sources.list.d/elastic-7.x.list && \ | echo deb https://artifacts.elastic.co/packages/7.x/apt stable main > /etc/apt/sources.list.d/elastic-7.x.list && \ | ||||
curl --create-dirs -fsSLo /etc/apt/trusted.gpg.d/elastic.asc https://artifacts.elastic.co/GPG-KEY-elasticsearch && \ | curl --create-dirs -fsSLo /etc/apt/trusted.gpg.d/elastic.asc https://artifacts.elastic.co/GPG-KEY-elasticsearch && \ | ||||
echo deb http://www.apache.org/dist/cassandra/debian 311x main > /etc/apt/sources.list.d/cassandra.list && \ | echo deb http://www.apache.org/dist/cassandra/debian 40x main > /etc/apt/sources.list.d/cassandra.list && \ | ||||
curl --create-dirs -fsSLo /etc/apt/trusted.gpg.d/cassandra.asc https://www.apache.org/dist/cassandra/KEYS && \ | curl --create-dirs -fsSLo /etc/apt/trusted.gpg.d/cassandra.asc https://www.apache.org/dist/cassandra/KEYS && \ | ||||
apt-get update && \ | apt-get update && \ | ||||
apt-get upgrade -y && \ | apt-get upgrade -y && \ | ||||
apt-get install -y \ | apt-get install -y \ | ||||
arcanist \ | arcanist \ | ||||
build-essential \ | build-essential \ | ||||
cassandra \ | cassandra \ | ||||
▲ Show 20 Lines • Show All 111 Lines • ▼ Show 20 Lines | |||||
USER root | USER root | ||||
COPY jenkins-agent /usr/local/bin/jenkins-agent | COPY jenkins-agent /usr/local/bin/jenkins-agent | ||||
RUN chmod +x /usr/local/bin/jenkins-agent &&\ | RUN chmod +x /usr/local/bin/jenkins-agent &&\ | ||||
ln -s /usr/local/bin/jenkins-agent /usr/local/bin/jenkins-slave | ln -s /usr/local/bin/jenkins-agent /usr/local/bin/jenkins-slave | ||||
USER ${user} | USER ${user} | ||||
ENTRYPOINT ["jenkins-slave"] | ENTRYPOINT ["jenkins-slave"] | ||||
## ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ## | |||||
USER root | |||||
# Fix crash of Cassandra on Java >=9 | |||||
# https://stackoverflow.com/q/46944788 | |||||
RUN echo "" > /etc/cassandra/jvm.options | |||||
USER ${user} |