forked from nayanmshah/iri
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from encircle360/features/new-configuration-system
Features/new configuration system
- Loading branch information
Showing
7 changed files
with
598 additions
and
667 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,37 @@ | ||
image: docker:dind | ||
services: | ||
- docker:dind | ||
|
||
variables: | ||
DOCKER_DRIVER: overlay | ||
|
||
stages: | ||
- build | ||
- package | ||
- docs | ||
|
||
maven-build: | ||
image: maven:3.5-jdk-8 | ||
stage: build | ||
script: "mvn clean package" | ||
artifacts: | ||
paths: | ||
- target/*.jar | ||
|
||
docker-build: | ||
stage: package | ||
only: | ||
- master | ||
script: | ||
- docker build -t $CI_REGISTRY_IMAGE . | ||
- docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY | ||
- docker push $CI_REGISTRY_IMAGE | ||
|
||
docker-build-dev: | ||
stage: package | ||
only: | ||
- dev | ||
script: | ||
- docker build -t $CI_REGISTRY_IMAGE:dev . | ||
- docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY | ||
- docker push $CI_REGISTRY_IMAGE:dev |
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 |
---|---|---|
@@ -1,16 +1,16 @@ | ||
FROM maven:3.5-jdk-8 as builder | ||
WORKDIR /iri | ||
COPY . /iri | ||
RUN mvn clean package | ||
|
||
FROM openjdk:jre-slim | ||
WORKDIR /iri | ||
COPY --from=builder /iri/target/iri-1.4.1.2.jar iri.jar | ||
COPY logback.xml /iri | ||
FROM openjdk:8u111-jdk-alpine | ||
VOLUME /tmp | ||
VOLUME /iri | ||
|
||
ADD logback.xml /iri | ||
ADD /target/iri-*.jar iri.jar | ||
EXPOSE 14265 | ||
EXPOSE 14777/udp | ||
EXPOSE 15777 | ||
ENV _JAVA_OPTIONS="-Xms256m -Xmx8g" | ||
ENV REMOTE=true | ||
ENV REMOTE_LIMIT_API="addNeighbors, removeNeighbors, getNeighbors" | ||
ENV PORT=14265 | ||
ENV UDP_RECEIVER_PORT=14777 | ||
ENV TCP_RECEIVER_PORT=15777 | ||
|
||
CMD ["/usr/bin/java", "-XX:+DisableAttachMechanism", "-Xmx8g", "-Xms256m", "-Dlogback.configurationFile=/iri/conf/logback.xml", "-Djava.net.preferIPv4Stack=true", "-jar", "iri.jar", "-p", "14265", "-u", "14777", "-t", "15777", "--remote", "--remote-limit-api", "\"addNeighbors, removeNeighbors, getNeighbors\"", "$@"] | ||
ENTRYPOINT ["java", "-XX:+DisableAttachMechanism", "-Dlogback.configurationFile=/iri/conf/logback.xml", "-Djava.net.preferIPv4Stack=true", "-jar", "iri.jar"] |
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
Oops, something went wrong.