-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathDockerfile-devel
45 lines (37 loc) · 1.67 KB
/
Dockerfile-devel
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
ARG reg=registry.simplicite.io
FROM ${reg}/server:latest
ARG date
LABEL org.label-schema.name="simplicite-server-devel" \
org.label-schema.vendor="Simplicite Software" \
org.label-schema.license="NONE" \
org.label-schema.build-date="${date}" \
org.opencontainers.image.ref.name="simplicite-server-devel" \
org.opencontainers.image.title="Simplicite server (devel)" \
org.opencontainers.image.description="Simplicite server (devel)" \
org.opencontainers.image.vendor="Simplicite Software" \
org.opencontainers.image.licenses="NONE" \
org.opencontainers.image.created="${date}"
USER root
RUN dnf install -y vim-enhanced gcc gcc-c++ make python3 python3-pyyaml iproute nmap xz gpg pinentry && dnf clean all && \
echo -e 'alias vi=vim' >> /root/.bashrc && \
mkdir /usr/local/tomcat/webapps/jacoco && \
chown simplicite:simplicite /usr/local/tomcat/webapps/jacoco && \
echo -e '#!/bin/bash\n\
[ "$1" = "" ] && IN=/dev/stdin || IN=$1\n\
python3 -c "import sys, yaml, json; json.dump(yaml.load(sys.stdin, Loader=yaml.FullLoader), sys.stdout, indent=2)" < $IN\n\
exit $?' > /usr/local/bin/yaml2json && chmod +x /usr/local/bin/yaml2json
ADD ant /usr/local/ant
ADD maven /usr/local/maven
#ADD gradle /usr/local/maven
ADD node /usr/local/node
ADD jacoco /usr/local/jacoco
ENV DEV_MODE=true \
ANT_HOME=/usr/local/ant \
MAVEN_HOME=/usr/local/maven \
NODE_HOME=/usr/local/node \
JACOCO_HOME=/usr/local/jacoco \
PATH=/usr/local/ant/bin:/usr/local/maven/bin:/usr/local/node/bin:$PATH
# Gradle & Maven use different versions of Java libs...
# GRADLE_HOME=/usr/local/gradle \
# PATH=/usr/local/gradle/bin:$PATH
USER simplicite