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
Philipp Kraus
committed
Jan 25, 2018
1 parent
2e4e84f
commit 9b1be12
Showing
4 changed files
with
6 additions
and
44 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,2 @@ | ||
temp | ||
tmp |
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 |
---|---|---|
@@ -1,35 +1,11 @@ | ||
FROM alpine:3.7 | ||
FROM lightjason/docker:jdk | ||
|
||
|
||
# --- configuration section ---------------------- | ||
ENV DOCKERIMAGE_AGENTSPEAK_VERSION HEAD | ||
|
||
ENV DOCKERIMAGE_MAVEN_VERSION 3.5.2 | ||
ENV DOCKERIMAGE_GLIBC_VERSION 2.26-r0 | ||
ENV DOCKERIMAGE_JAVA_DOWNLOAD http://download.oracle.com/otn-pub/java/jdk/9.0.4+11/c2514751926b4512b076cc82f959763f/jdk-9.0.4_linux-x64_bin.tar.gz | ||
|
||
|
||
# --- dependencies section ----------------------- | ||
RUN wget -O /etc/apk/keys/sgerrand.rsa.pub https://raw.githubusercontent.com/sgerrand/alpine-pkg-glibc/master/sgerrand.rsa.pub | ||
RUN wget -O /tmp/glibc.apk https://github.com/sgerrand/alpine-pkg-glibc/releases/download/$DOCKERIMAGE_GLIBC_VERSION/glibc-$DOCKERIMAGE_GLIBC_VERSION.apk | ||
RUN wget -O /tmp/glibc-bin.apk https://github.com/sgerrand/alpine-pkg-glibc/releases/download/$DOCKERIMAGE_GLIBC_VERSION/glibc-bin-$DOCKERIMAGE_GLIBC_VERSION.apk | ||
RUN wget -O /tmp/glibc-i18n.apk https://github.com/sgerrand/alpine-pkg-glibc/releases/download/$DOCKERIMAGE_GLIBC_VERSION/glibc-i18n-$DOCKERIMAGE_GLIBC_VERSION.apk | ||
|
||
RUN wget -O /tmp/maven.tar.gz http://archive.apache.org/dist/maven/maven-3/$DOCKERIMAGE_MAVEN_VERSION/binaries/apache-maven-$DOCKERIMAGE_MAVEN_VERSION-bin.tar.gz && mkdir -p /opt/maven && tar --strip 1 -zxvf /tmp/maven.tar.gz -C /opt/maven | ||
RUN wget -O /tmp/java.tar.gz --no-check-certificate -c --header "Cookie: oraclelicense=accept-securebackup-cookie" $DOCKERIMAGE_JAVA_DOWNLOAD && mkdir -p /opt/java && tar --strip 1 -zxvf /tmp/java.tar.gz -C /opt/java | ||
|
||
RUN apk --no-cache update &&\ | ||
apk --no-cache upgrade &&\ | ||
apk --no-cache add git doxygen graphviz openssh-client ca-certificates /tmp/glibc.apk /tmp/glibc-bin.apk /tmp/glibc-i18n.apk | ||
RUN /usr/glibc-compat/bin/localedef -i en_US -f UTF-8 en_US.UTF-8 | ||
|
||
|
||
# --- machine configuration section -------------- | ||
ENV JAVA_HOME /opt/java | ||
ENV PATH /opt/maven/bin:$JAVA_HOME/bin:$PATH | ||
|
||
# --- content configuration section -------------- | ||
RUN git clone https://github.com/LightJason/AgentSpeak.git /tmp/agentspeak | ||
RUN cd /tmp/agentspeak && git checkout $DOCKERIMAGE_AGENTSPEAK_VERSION | ||
RUN cd /tmp/agentspeak && mvn install -DskipTests | ||
|
||
RUN rm -rf /tmp/* |
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