-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDockerfile
59 lines (43 loc) · 1.78 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# This image is based off the latest Jenkins LTS
FROM jenkins/jenkins:latest-jdk11
# Install common build tools
USER root
# Node/Npm
# https://github.com/nodesource/distributions
RUN bash -c "curl -sL https://deb.nodesource.com/setup_22.x | bash -"
RUN apt-get update && apt-get install -y nodejs
# Python/pip, and wget
RUN apt-get install -y python3 python3-dev python3-pip wget
# Java
# This image based on a openjdk image. Java already installed.
# Scala/sbt
# https://www.scala-sbt.org/
COPY install-sbt.sh /tmp/install-sbt.sh
ENV SBT_VERSION=1.10.1
RUN \
sh /tmp/install-sbt.sh "${SBT_VERSION}" && \
sbt sbtVersion -Dsbt.rootdir=true && \
rm /tmp/install-sbt.sh
# Go
# https://go.dev/dl/
RUN wget https://dl.google.com/go/go1.23.0.linux-amd64.tar.gz
RUN tar -xvf go1.23.0.linux-amd64.tar.gz -C /usr/local
# Firebase
# https://firebase.google.com/docs/cli#install-cli-mac-linux
RUN npm install -g firebase-tools
# AWS CLI
RUN pip install awscli --upgrade --break-system-packages
# Docker
RUN apt-get install -y apt-transport-https ca-certificates software-properties-common
RUN sh -c "curl -fsSL https://download.docker.com/linux/debian/gpg | apt-key add -"
RUN add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/debian $(lsb_release -cs) stable"
RUN apt-get update && apt-get install -y docker-ce
# Docker Compose
RUN \
curl -L "https://github.com/docker/compose/releases/download/v2.3.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose && \
chmod +x /usr/local/bin/docker-compose
# Other Utils
RUN apt-get install -y zip jq gettext
USER jenkins
ENV JAVA_OPTS="-Djenkins.install.runSetupWizard=false -Duser.timezone=America/New_York"
RUN java -jar opt/jenkins-plugin-manager.jar --plugins antisamy-markup-formatter matrix-auth blueocean --verbose