-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpython.Dockerfile
36 lines (26 loc) · 1.37 KB
/
python.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
FROM jenkins/jnlp-slave:alpine
ENV SCANNER_VERSION 3.3.0.1492
ENV DOCKER_VERSION=18.09.5
ENV HELM_VERSION=3.0.3
USER root
# Install the docker engine
RUN wget "https://download.docker.com/linux/static/stable/x86_64/docker-$DOCKER_VERSION.tgz" -O docker.tgz
RUN tar -xzvf docker.tgz && rm docker.tgz
RUN cp /home/jenkins/docker/docker /usr/bin/docker
RUN wget https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-$SCANNER_VERSION.zip
RUN mkdir /usr/bin/sonar-scanner && unzip sonar-scanner-cli-$SCANNER_VERSION.zip && cp -r sonar-scanner-${SCANNER_VERSION}/* /usr/bin/sonar-scanner/
RUN rm sonar-scanner-cli-$SCANNER_VERSION.zip && rm -r sonar-scanner-${SCANNER_VERSION}
RUN apk add --no-cache --virtual .build-deps gcc python3-dev musl-dev libffi-dev openssl-dev libgcc make
RUN apk add nodejs nodejs-npm py3-pip openjdk8-jre-base
RUN npm install -g swagger-cli cowsay [email protected] && pip3 install awscli bandit pycodestyle docker-compose
RUN npm install typescript
RUN pip3 install ansible
RUN apk --purge del .build-deps
RUN wget "https://get.helm.sh/helm-v$HELM_VERSION-linux-amd64.tar.gz" -O ./helm.tgz && \
tar -xzvf helm.tgz && \
mv linux-amd64/helm /usr/bin/helm && \
chmod 577 /usr/bin/helm && \
helm plugin install "https://github.com/chartmuseum/helm-push" && \
rm -rf linux-amd64 helm.tgz
USER jenkins
ENV USER=jenkins