Skip to content

Commit

Permalink
Switch to labs.consol.de repository
Browse files Browse the repository at this point in the history
  • Loading branch information
christophd committed May 30, 2017
1 parent 4da5d84 commit e5cb8f8
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 3 deletions.
31 changes: 31 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,14 @@
</configuration>
</plugin>
</plugins>

<extensions>
<extension>
<groupId>org.apache.maven.wagon</groupId>
<artifactId>wagon-ssh-external</artifactId>
<version>2.7</version>
</extension>
</extensions>
</build>

<dependencyManagement>
Expand Down Expand Up @@ -425,5 +433,28 @@
</plugins>
</build>
</profile>

<profile>
<id>release-labs</id>
<distributionManagement>
<repository>
<id>consol-labs-release</id>
<url>scpexe://labs.consol.de/home/maven-repository/www/htdocs/repository</url>
</repository>
<snapshotRepository>
<id>consol-labs-snapshots</id>
<url>scpexe://labs.consol.de/home/maven-repository/www/htdocs/snapshots-repository</url>
</snapshotRepository>
</distributionManagement>

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>
6 changes: 3 additions & 3 deletions src/main/docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ USER root

RUN mkdir ${DEPLOY_DIR}

RUN curl http://build-n.int.consol.de/repository/citrus-releases/com/consol/citrus/samples/${APP_ARTIFACT}/${APP_VERSION}/${APP_ARTIFACT}-${APP_VERSION}-executable.war -o ${DEPLOY_DIR}/${APP_ARTIFACT}.war
RUN curl https://labs.consol.de/maven/repository/com/consol/citrus/samples/${APP_ARTIFACT}/${APP_VERSION}/${APP_ARTIFACT}-${APP_VERSION}-executable.war -o ${DEPLOY_DIR}/${APP_ARTIFACT}.war

RUN find $DEPLOY_DIR -name '*.war' -exec chmod a+x {} +

RUN useradd -U openshift
RUN useradd -U citrus

CMD java -jar ${DEPLOY_DIR}/${APP_ARTIFACT}.war

USER openshift
USER citrus

0 comments on commit e5cb8f8

Please sign in to comment.