@@ -21,6 +21,8 @@ ARG MAVEN_VERSION=3.6.3
21
21
ARG MAVEN_SHA=c35a1803a6e70a126e80b2b3ae33eed961f83ed74d18fcd16909b2d44d7dada3203f1ffe726c17ef8dcca2dcaa9fca676987befeadc9b9f759967a8cb77181c0
22
22
ARG WILDFLY_VERSION=20.0.1
23
23
ARG JAVA_VERSION=11
24
+ ARG IDEA_VERSION=2020.3.1
25
+ ARG GROOVY_VERSION=3.0.7
24
26
25
27
# Because the source code is shared between the host and the container, it is required the identifier
26
28
# of the owner and of its group are the same between this two environments. By default, they are both set at 1000.
@@ -56,10 +58,10 @@ RUN apt-get update && apt-get install -y \
56
58
libreoffice-calc \
57
59
libreoffice-impress \
58
60
gpgv \
59
- groovy \
61
+ libgbm1 \
60
62
&& groupadd -g ${GROUP_ID} silveruser \
61
63
&& useradd -u ${USER_ID} -g ${GROUP_ID} -G users -d /home/silveruser -s /bin/bash -m silveruser \
62
- && curl -sL https://deb.nodesource.com/setup_10 .x | bash - \
64
+ && curl -sL https://deb.nodesource.com/setup_14 .x | bash - \
63
65
&& apt-get install -y nodejs \
64
66
&& rm -rf /var/lib/apt/lists/* \
65
67
&& update-ca-certificates -f \
@@ -71,6 +73,15 @@ RUN apt-get update && apt-get install -y \
71
73
&& ln -s /usr/share/maven/bin/mvn /usr/bin/mvn \
72
74
&& unzip /tmp/maven-deps.zip -d /home/silveruser/ \
73
75
&& chown -R silveruser:silveruser /home/silveruser/.m2 \
76
+ && curl -fsSL -o /tmp/apache-groovy.zip https://dl.bintray.com/groovy/maven/apache-groovy-binary-${GROOVY_VERSION}.zip \
77
+ && unzip /tmp/apache-groovy.zip -d /opt/ \
78
+ && echo `grep -oP '(?<=")[a-zA-Z:/]+(?=")' /etc/environment`:/opt/groovy-{GROOVY_VERSION}/bin > /etc/environment \
79
+ && curl -fsSL -o /tmp/ideaIU.tar.gz https://download.jetbrains.com/idea/ideaIU-${IDEA_VERSION}.tar.gz \
80
+ && tar -xzf /tmp/ideaIU.tar.gz -C /home/silveruser/ \
81
+ && mkdir /home/silveruser/bin \
82
+ && echo "PATH=${PATH}:/home/silveruser/bin" >> /home/silveruser/.bashrc \
83
+ && ln -s /home/silveruser/idea*/bin/idea.sh /home/silveruser/bin/idea \
84
+ && rm -f /tmp/ideaIU.tar.gz \
74
85
&& curl -fsSL -o /tmp/swftools-bin-0.9.2.zip https://www.silverpeas.org/files/swftools-bin-0.9.2.zip \
75
86
&& echo 'd40bd091c84bde2872f2733a3c767b3a686c8e8477a3af3a96ef347cf05c5e43 *swftools-bin-0.9.2.zip' | sha256sum - \
76
87
&& unzip /tmp/swftools-bin-0.9.2.zip -d / \
@@ -95,16 +106,15 @@ COPY src/bash_aliases /home/silveruser/.bash_aliases
95
106
COPY src/settings.xml /home/silveruser/.m2/
96
107
COPY src/git_completion_profile /home/silveruser/.git_completion_profile
97
108
98
- RUN chown silveruser:silveruser /home/silveruser/.inputrc \
99
- && chown silveruser:silveruser /home/silveruser/.m2/settings.xml \
100
- && chown silveruser:silveruser /home/silveruser/.git_completion_profile \
109
+ RUN chown -R silveruser:silveruser /home/silveruser \
101
110
&& echo "if [ -f .git_completion_profile ]; then\n . ~/.git_completion_profile\n fi" >> /home/silveruser/.bashrc
102
111
103
112
ENV LANG ${DEFAULT_LOCALE}
104
113
ENV LANGUAGE ${DEFAULT_LOCALE}
105
114
ENV LC_ALL ${DEFAULT_LOCALE}
106
115
ENV MAVEN_HOME /usr/share/maven
107
116
ENV JAVA_HOME /usr/lib/jvm/java-${JAVA_VERSION}-openjdk-amd64
117
+ ENV GROOVY_HOME /opt/groovy-${GROOVY_VERSION}
108
118
109
119
# By default, the build will be done in the default user's home directory
110
120
USER silveruser
0 commit comments