summaryrefslogtreecommitdiffstats
path: root/devops
diff options
context:
space:
mode:
authorC.T. Paterson <ctpaterson+onap@gmail.com>2018-09-20 14:35:38 -0400
committerC.T. Paterson <ctpaterson+onap@gmail.com>2018-09-20 14:35:38 -0400
commit2a921ed1e1daaf2f36dbdbb316370cf344ec49c7 (patch)
treed87b8817d78951bef15aee24308ee2e0f76b289c /devops
parent330f1cb56cfafd1508438139dadc7cc645262ec6 (diff)
Setup for build jobs for gallifrey
Change-Id: Iba515685aaaa8f33b17a4690a888cea7be23351a Issue-ID: AAI-1651 Signed-off-by: C.T. Paterson <ctpaterson+onap@gmail.com>
Diffstat (limited to 'devops')
-rw-r--r--devops/gallifrey/Dockerfile45
-rw-r--r--devops/gallifrey/docker-entrypoint.sh2
2 files changed, 1 insertions, 46 deletions
diff --git a/devops/gallifrey/Dockerfile b/devops/gallifrey/Dockerfile
deleted file mode 100644
index 4df1112..0000000
--- a/devops/gallifrey/Dockerfile
+++ /dev/null
@@ -1,45 +0,0 @@
-FROM alpine:3.6
-
-# Java Version
-ENV JAVA_VERSION_MAJOR 8
-ENV JAVA_VERSION_MINOR 131
-ENV JAVA_VERSION_BUILD 11
-ENV JAVA_PACKAGE jre
-ENV GLIBC_VERSION 2.25-r0
-
-ENV JAVA_8_BASE_URL http://download.oracle.com/otn-pub/java/jdk/${JAVA_VERSION_MAJOR}u${JAVA_VERSION_MINOR}-b${JAVA_VERSION_BUILD}/d54c1d3a095b4ff2b6607d096fa80163/${JAVA_PACKAGE}-${JAVA_VERSION_MAJOR}u${JAVA_VERSION_MINOR}
-
-RUN apk update
-RUN apk add curl
-
-# Install glibc (required for java)
-RUN curl -jsSL -o /etc/apk/keys/sgerrand.rsa.pub https://raw.githubusercontent.com/sgerrand/alpine-pkg-glibc/master/sgerrand.rsa.pub && \
- curl -jsSL -O https://github.com/sgerrand/alpine-pkg-glibc/releases/download/${GLIBC_VERSION}/glibc-${GLIBC_VERSION}.apk && \
- apk add glibc-${GLIBC_VERSION}.apk && \
- rm -f glibc-${GLIBC_VERSION}.apk
-
-# Install Java
-RUN mkdir /opt && \
- curl -jsSL -H "Cookie: oraclelicense=accept-securebackup-cookie" ${JAVA_8_BASE_URL}-linux-x64.tar.gz | tar -xzf - -C /opt && \
- ln -s /opt/${JAVA_PACKAGE}1.${JAVA_VERSION_MAJOR}.0_${JAVA_VERSION_MINOR} /opt/${JAVA_PACKAGE} && \
- cd /opt/${JAVA_PACKAGE}/ && rm -rf *src.zip lib/missioncontrol lib/visualvm lib/plugin.jar plugin lib/*javafx* lib/*jfx* lib/ext/jfxrt.jar bin/javaws lib/javaws.jar lib/desktop lib/deploy* lib/amd64/libdecora_sse.so lib/amd64/libprism_*.so lib/amd64/libfxplugins.so lib/amd64/libglass.so lib/amd64/libgstreamer-lite.so lib/amd64/libjavafx*.so lib/amd64/libjfx*.
-
-# Install Java Cryptography Extension (JCE) Unlimited Strength
-RUN curl -jksSLH "Cookie: oraclelicense=accept-securebackup-cookie" -o /tmp/jce_policy.zip \
- http://download.oracle.com/otn-pub/java/jce/${JAVA_VERSION_MAJOR}/jce_policy-${JAVA_VERSION_MAJOR}.zip && \
- unzip -o -d /opt/${JAVA_PACKAGE}/lib/security /tmp/jce_policy.zip && rm -f /tmp/jce_policy.zip
-
-RUN apk del curl
-
-ENV PATH /opt/jre/bin:${PATH}
-
-RUN apk add zip openssh-keygen openssh-client
-
-EXPOSE 8080
-
-RUN mkdir -p /opt/gallifrey
-COPY gallifrey.jar /opt/gallifrey
-
-COPY ./docker-entrypoint.sh /
-RUN chmod 700 /docker-entrypoint.sh
-ENTRYPOINT ["/docker-entrypoint.sh"]
diff --git a/devops/gallifrey/docker-entrypoint.sh b/devops/gallifrey/docker-entrypoint.sh
index 177d979..1ec8aca 100644
--- a/devops/gallifrey/docker-entrypoint.sh
+++ b/devops/gallifrey/docker-entrypoint.sh
@@ -2,4 +2,4 @@
set -e
-java -jar /opt/gallifrey/gallifrey.jar
+java -jar /opt/gallifrey/gallifrey-*.jar