-
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6aaa8db
commit afcff71
Showing
6 changed files
with
197 additions
and
21 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
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,27 @@ | ||
# Maven Annotation plugin - test | ||
|
||
## Steps for test | ||
|
||
Deploy project assets. (valid only for the SNAPSHOT) | ||
> let's go in root folder and run | ||
>```dockerfile | ||
>mvn deploy | ||
>``` | ||
Build docker image | ||
> let's go in `test` folder and run | ||
>```dockerfile | ||
>mvn -Pdocker docker:build | ||
>``` | ||
Create docker volume | ||
> let's go in `test` folder and run | ||
>```dockerfile | ||
>mvn -Pdocker docker:volume-create | ||
>``` | ||
Run test | ||
> let's go in `test` folder and run | ||
>```dockerfile | ||
>mvn -Pdocker docker:rund | ||
>``` |
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
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,31 @@ | ||
FROM adoptopenjdk/openjdk9 | ||
|
||
ARG MAVEN_VERSION=3.5.4 | ||
ARG USER_HOME_DIR="/root" | ||
ARG SHA=2a803f578f341e164f6753e410413d16ab60fabe31dc491d1fe35c984a5cce696bc71f57757d4538fe7738be04065a216f3ebad4ef7e0ce1bb4c51bc36d6be86 | ||
ARG BASE_URL=https://archive.apache.org/dist/maven/maven-3/${MAVEN_VERSION}/binaries/ | ||
|
||
|
||
RUN mkdir -p /usr/share/maven /usr/share/maven/ref \ | ||
&& curl -fsSL -o /tmp/apache-maven.tar.gz ${BASE_URL}/apache-maven-${MAVEN_VERSION}-bin.tar.gz \ | ||
&& echo "${SHA} /tmp/apache-maven.tar.gz" | sha512sum -c - \ | ||
&& tar -xzf /tmp/apache-maven.tar.gz -C /usr/share/maven --strip-components=1 \ | ||
&& rm -f /tmp/apache-maven.tar.gz \ | ||
&& ln -s /usr/share/maven/bin/mvn /usr/bin/mvn | ||
|
||
ENV MAVEN_HOME /usr/share/maven | ||
ENV MAVEN_CONFIG "$USER_HOME_DIR/.m2" | ||
|
||
COPY mvn-entrypoint.sh /usr/local/bin/mvn-entrypoint.sh | ||
RUN chmod +x /usr/local/bin/mvn-entrypoint.sh | ||
|
||
COPY settings-docker.xml /usr/share/maven/ref/settings.xml | ||
COPY toolchains.xml /usr/share/maven/ref | ||
|
||
WORKDIR /home | ||
|
||
VOLUME /home | ||
VOLUME /usr/share/maven/ref/repository | ||
|
||
ENTRYPOINT ["/usr/local/bin/mvn-entrypoint.sh"] | ||
CMD ["mvn"] |
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,51 @@ | ||
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 | ||
https://maven.apache.org/xsd/settings-1.0.0.xsd"> | ||
<localRepository>/usr/share/maven/ref/repository</localRepository> | ||
|
||
|
||
<profiles> | ||
<profile> | ||
<id>sonatype</id> | ||
<activation> | ||
<activeByDefault>true</activeByDefault> | ||
</activation> | ||
|
||
|
||
<pluginRepositories> | ||
|
||
<pluginRepository> | ||
<id>sonatype-repo</id> | ||
<url>https://oss.sonatype.org/content/repositories/snapshots</url> | ||
<releases> | ||
<enabled>false</enabled> | ||
</releases> | ||
<snapshots> | ||
<enabled>true</enabled> | ||
</snapshots> | ||
</pluginRepository> | ||
|
||
</pluginRepositories> | ||
|
||
<repositories> | ||
|
||
<repository> | ||
|
||
<id>sonatype-repo</id> | ||
<url>https://oss.sonatype.org/content/repositories/snapshots</url> | ||
<releases> | ||
<enabled>false</enabled> | ||
</releases> | ||
<snapshots> | ||
<enabled>true</enabled> | ||
</snapshots> | ||
</repository> | ||
|
||
</repositories> | ||
|
||
</profile> | ||
|
||
</profiles> | ||
|
||
</settings> |
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,13 @@ | ||
<toolchains> | ||
<toolchain> | ||
<type>jdk</type> | ||
<provides> | ||
<version>1.9</version> | ||
<vendor>open</vendor> | ||
<id>openjdk9</id> | ||
</provides> | ||
<configuration> | ||
<jdkHome>/opt/java/openjdk</jdkHome> | ||
</configuration> | ||
</toolchain> | ||
</toolchains> |