Skip to content

Commit

Permalink
Issue #32: Dockerfile creation for plugin testing in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
romani committed Feb 18, 2017
1 parent 68c586b commit 1b47c7e
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions Dockerfile
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"]

0 comments on commit 1b47c7e

Please sign in to comment.