-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue #32: Dockerfile creation for plugin testing in CI
- Loading branch information
Showing
1 changed file
with
25 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
FROM sonarqube:6.2 | ||
|
||
ARG MAVEN_VERSION=3.3.9 | ||
ARG USER_HOME_DIR="/root" | ||
|
||
RUN mkdir -p /usr/share/maven /usr/share/maven/ref \ | ||
&& curl -fsSL http://apache.osuosl.org/maven/maven-3/$MAVEN_VERSION/binaries/apache-maven-$MAVEN_VERSION-bin.tar.gz \ | ||
| tar -xzC /usr/share/maven --strip-components=1 \ | ||
&& ln -s /usr/share/maven/bin/mvn /usr/bin/mvn | ||
|
||
ENV MAVEN_HOME /usr/share/maven | ||
ENV MAVEN_CONFIG "$USER_HOME_DIR/.m2" | ||
|
||
VOLUME "$USER_HOME_DIR/.m2" | ||
|
||
# update dpkg repositories to be able to install packages | ||
RUN apt-get update | ||
|
||
# install git | ||
RUN apt-get install -y git | ||
|
||
# install nano | ||
RUN apt-get install -y vim | ||
|
||
CMD ["mvn"] |