-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
93 lines (81 loc) · 2.37 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
FROM jenkins/jenkins:lts
MAINTAINER Alexej Kloos "[email protected]"
# update
USER root
RUN apt-get update
RUN DEBIAN_FRONTEND=noninteractive apt-get -y upgrade
# php
RUN apt-get install -qqy ca-certificates apt-transport-https
RUN wget -q https://packages.sury.org/php/apt.gpg -O- | apt-key add -
RUN echo "deb https://packages.sury.org/php/ stretch main" | tee /etc/apt/sources.list.d/php.list
RUN apt-get update
RUN apt-get -qqy install \
php7.2-cli \
php7.2-bcmath \
php7.2-intl \
php-sodium \
php7.2-imagick \
php7.2-mysql \
php7.2-gd \
php7.2-curl \
php7.2-sqlite3 \
php7.2-xsl \
php7.2-common \
php7.2-bz2 \
php7.2-mbstring \
php7.2-zip
# nodejs
RUN curl -sL https://deb.nodesource.com/setup_10.x | bash -
RUN apt-get install -y nodejs
# yarn
RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add -
RUN sh -c 'echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list'
RUN apt-get update
RUN apt-get install -y yarn
# meta packages
RUN apt-get -qqy install \
aptitude \
sqlite3 \
imagemagick \
git \
ant \
rsync \
unzip \
pngquant \
jpegoptim \
ffmpeg \
vim \
locales \
locales-all
# composer
RUN wget -q -O /usr/bin/composer https://getcomposer.org/composer.phar && chmod +x /usr/bin/composer
# legacy
RUN npm install -g gulp
# ansible
RUN sh -c 'echo "deb http://ppa.launchpad.net/ansible/ansible/ubuntu trusty main" | tee /etc/apt/sources.list.d/ansible.list'
RUN apt-key adv --keyserver keyserver.ubuntu.com --no-tty --recv-keys 93C4A3FD7BB9C367
RUN apt update
RUN apt install -qqy ansible
# alias
RUN echo "alias ll='ls $LS_OPTIONS -la --color=auto'" >> /etc/profile
RUN echo "alias jen='cd /var/jenkins_home/'" >> /etc/profile
RUN echo "" >> /etc/profile
RUN echo "# color prompt" >> /etc/profile
RUN echo "force_color_prompt=ye" >> /etc/profile
RUN echo "PS1='${debian_chroot:+($debian_chroot)}\[\033[01;31m\]\u\[\033[01;33m\]@\[\033[01;36m\]\h \[\033[01;33m\]\w \[\033[01;35m\]\$ \[\033[00m\]'" >> /etc/profile
# drop back to the regular jenkins user - good practice
USER jenkins
# install jenkins plugins
RUN install-plugins.sh \
credentials-binding \
github-branch-source \
warnings-ng \
blueocean \
slack \
workflow-aggregator \
clover \
htmlpublisher \
jdepend \
plot \
pmd \
xunit