-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
49 lines (45 loc) · 1.09 KB
/
Dockerfile
File metadata and controls
49 lines (45 loc) · 1.09 KB
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
FROM --platform=linux/amd64 jenkins/jenkins:latest
LABEL maintainer="surgelandrey@gmail.com"
ARG DEBIAN_FRONTEND=noninteractive
ENV JENKINS_UC_DOWNLOAD="https://mirror.yandex.ru/mirrors/jenkins"
## install plugins
RUN jenkins-plugin-cli --plugins ssh-slaves \
ansible \
email-ext \
mailer \
greenballs \
simple-theme-plugin \
parameterized-trigger \
rebuild \
github \
kubernetes \
ansicolor \
blueocean \
stashNotifier \
show-build-parameters \
credentials \
configuration-as-code \
command-launcher \
external-monitor-job \
ssh-agent \
pipeline-stage-view \
slack
USER root
RUN apt-get update && apt-get install -yqq apt-transport-https \
ca-certificates \
curl \
gnupg2 \
wget \
software-properties-common \
&& echo " StrictHostKeyChecking no" >> /etc/ssh/ssh_config \
&& echo " UserKnownHostsFile=/dev/null" >> /etc/ssh/ssh_config \
&& apt-get purge --auto-remove -yqq \
&& apt-get clean \
&& rm -rf \
/var/lib/apt/lists/* \
/tmp/* \
/var/tmp/* \
/usr/share/man \
/usr/share/doc \
/usr/share/doc-base
USER jenkins