forked from mesosphere-backup/dcos-jenkins-dind-agent
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile.alpine-rpm
68 lines (62 loc) · 2.14 KB
/
Dockerfile.alpine-rpm
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
FROM docker:17.06.1-dind
MAINTAINER Mesosphere Support <[email protected]>
# http://bugs.python.org/issue19846
# > At the moment, setting "LANG=C" on a Linux system *fundamentally breaks Python 3*, and that's not OK.
ENV ALPINE_EDGE_COMMUNITY_REPO=http://dl-cdn.alpinelinux.org/alpine/edge/community \
ALPINE_GLIBC_BASE_URL=https://github.com/sgerrand/alpine-pkg-glibc/releases/download/2.23-r2 \
ALPINE_GLIBC_PACKAGE=glibc-2.23-r2.apk \
ALPINE_GLIBC_BIN_PACKAGE=glibc-bin-2.23-r2.apk \
ALPINE_GLIBC_I18N_PACKAGE=glibc-i18n-2.23-r2.apk \
ALPINE_GLIBC_RSA_PUB_URL=https://github.com/sgerrand/alpine-pkg-glibc/releases/download/2.23-r2/sgerrand.rsa.pub \
JAVA_HOME=/usr/lib/jvm/default-jvm \
LANG=en_US.UTF-8 \
LANGUAGE=en_US.UTF-8 \
LC_ALL=en_US.UTF-8 \
SSH_KNOWN_HOSTS=github.com
ENV PATH=${PATH}:${JAVA_HOME}/bin
# Please keep each package list in alphabetical order
RUN apk --update add \
bash \
bzip2 \
ca-certificates \
git \
glib \
gcc \
jq \
less \
libsm \
libstdc++ \
make \
musl-dev \
openjdk8 \
openssh-client \
openssl \
perl \
py-pip \
python \
python3 \
tar \
rpm \
unzip \
&& cd /tmp \
&& pip install --upgrade \
pip \
setuptools \
virtualenv \
wheel \
&& apk add --update --repository ${ALPINE_EDGE_COMMUNITY_REPO} tini \
&& wget -q -O /etc/apk/keys/sgerrand.rsa.pub "${ALPINE_GLIBC_RSA_PUB_URL}" \
&& wget -q "${ALPINE_GLIBC_BASE_URL}/${ALPINE_GLIBC_PACKAGE}" \
"${ALPINE_GLIBC_BASE_URL}/${ALPINE_GLIBC_BIN_PACKAGE}" \
"${ALPINE_GLIBC_BASE_URL}/${ALPINE_GLIBC_I18N_PACKAGE}" \
&& apk add ${ALPINE_GLIBC_PACKAGE} ${ALPINE_GLIBC_BIN_PACKAGE} ${ALPINE_GLIBC_I18N_PACKAGE} \
&& cd \
&& rm -rf /tmp/* /var/cache/apk/* \
&& /usr/glibc-compat/bin/localedef -i en_US -f UTF-8 en_US.UTF-8 \
&& echo 'export PATH=$PATH:${JAVA_HOME}/bin' >> /etc/profile.d/java.sh \
&& ssh-keyscan $SSH_KNOWN_HOSTS | tee /etc/ssh/ssh_known_hosts \
&& echo 'Done'
COPY wrapper.sh /usr/local/bin/
RUN chmod +x /usr/local/bin/wrapper.sh
ENTRYPOINT []
CMD []