Add nexus deps

This commit is contained in:
k.struzhkin 2019-12-03 11:40:59 +03:00
parent b406e762d3
commit bb517a8d80
2 changed files with 17 additions and 25 deletions

17
pom.xml
View File

@ -165,6 +165,23 @@
<scope>test</scope>
</dependency>
</dependencies>
<distributionManagement>
<downloadUrl>http://java-nexus.msk1.rbkmoney.net:8081/nexus/content/groups/public</downloadUrl>
<repository>
<uniqueVersion>false</uniqueVersion>
<id>releases</id>
<name>RBKmoney releases repository</name>
<url>http://java-nexus.msk1.rbkmoney.net:8081/nexus/content/repositories/releases</url>
<layout>default</layout>
</repository>
<snapshotRepository>
<uniqueVersion>true</uniqueVersion>
<id>snapshots</id>
<name>RBKmoney snapshots repository</name>
<url>http://java-nexus.msk1.rbkmoney.net:8081/nexus/content/repositories/snapshots</url>
<layout>default</layout>
</snapshotRepository>
</distributionManagement>
<dependencyManagement>
<dependencies>

View File

@ -1,25 +0,0 @@
# @dockerfile.Template@
FROM @dockerfile.registry@/rbkmoney/service-java:@dockerfile.base.service.tag@ as service-java
FROM @dockerfile.registry@/rbkmoney/build:@dockerfile.build.tag@ as build
COPY --from=service-java / /tmp/portage-root/
ENV ROOT=/tmp/portage-root
RUN git clone git://git.bakka.su/gentoo-mirror --depth 1 /usr/portage && emerge sys-devel/gcc
FROM @dockerfile.registry@/rbkmoney/service-java:@dockerfile.base.service.tag@
COPY --from=build /tmp/portage-root/ /
COPY @artifactId@-@version@.jar /opt/@artifactId@/@artifactId@.jar
WORKDIR /opt/@artifactId@
CMD ["java", "-Xmx256m", "-jar","/opt/@artifactId@/@artifactId@.jar"]
EXPOSE @exposed.ports@
MAINTAINER @project.maintainer@
LABEL com.rbkmoney.@artifactId@.parent=service-java \
com.rbkmoney.@artifactId@.parent_tag=@dockerfile.base.service.tag@ \
com.rbkmoney.@artifactId@.commit_id=@git.commit.id@ \
com.rbkmoney.@artifactId@.branch=@git.branch@