This repository has been archived by the owner on Aug 18, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Now builds on both Open JDK and Oracle JDK. (#3)
* Now builds on both Open JDK and Oracle JDK. * Updated README to reflect that Oracle JDK is now supported.
- Loading branch information
1 parent
7f66784
commit 6e25d8c
Showing
4 changed files
with
53 additions
and
4 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,24 @@ | ||
FROM islandora/claw-maven:open-jdk | ||
MAINTAINER Nigel Banks <nigel.g.banks@gmail.com> | ||
|
||
LABEL "License"="MIT" \ | ||
"Version"="0.0.1" | ||
|
||
EXPOSE 8181 | ||
|
||
ARG KARAF_VERSION="4.0.5" | ||
|
||
ENV KARAF_HOME="/opt/karaf" \ | ||
KARAF_OPTS="-Xms128M -Xmx512M -XX:+UnlockDiagnosticVMOptions -XX:+UnsyncloadClass" \ | ||
PATH=${PATH}:/opt/karaf/bin | ||
|
||
RUN addgroup -g 1000 karaf && \ | ||
adduser -u 100 -s /sbin/nologin -G karaf -DH -h ${KARAF_HOME} karaf | ||
|
||
RUN apk-install openssh bash && \ | ||
curl -L http://archive.apache.org/dist/karaf/${KARAF_VERSION}/apache-karaf-${KARAF_VERSION}.tar.gz | \ | ||
tar -xzf - -C /tmp && \ | ||
mv /tmp/apache-karaf-${KARAF_VERSION} /opt/karaf && \ | ||
cleanup | ||
|
||
COPY rootfs / |
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,24 @@ | ||
FROM islandora/claw-maven:oracle-jdk | ||
MAINTAINER Nigel Banks <nigel.g.banks@gmail.com> | ||
|
||
LABEL "License"="MIT" \ | ||
"Version"="0.0.1" | ||
|
||
EXPOSE 8181 | ||
|
||
ARG KARAF_VERSION="4.0.5" | ||
|
||
ENV KARAF_HOME="/opt/karaf" \ | ||
KARAF_OPTS="-Xms128M -Xmx512M -XX:+UnlockDiagnosticVMOptions -XX:+UnsyncloadClass" \ | ||
PATH=${PATH}:/opt/karaf/bin | ||
|
||
RUN addgroup -g 1000 karaf && \ | ||
adduser -u 100 -s /sbin/nologin -G karaf -DH -h ${KARAF_HOME} karaf | ||
|
||
RUN apk-install openssh bash && \ | ||
curl -L http://archive.apache.org/dist/karaf/${KARAF_VERSION}/apache-karaf-${KARAF_VERSION}.tar.gz | \ | ||
tar -xzf - -C /tmp && \ | ||
mv /tmp/apache-karaf-${KARAF_VERSION} /opt/karaf && \ | ||
cleanup | ||
|
||
COPY rootfs / |
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,3 +1,6 @@ | ||
#!/bin/bash | ||
readonly DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | ||
docker build -t islandora/claw-karaf $DIR/.. | ||
readonly ROOT="$( cd "$( dirname "${BASH_SOURCE[0]}" )/.." && pwd )" | ||
docker build -f $ROOT/Dockerfile.oracle-jdk -t islandora/claw-karaf:oracle-jdk $ROOT | ||
docker build -f $ROOT/Dockerfile.open-jdk -t islandora/claw-karaf:open-jdk $ROOT | ||
# Open JDK is the default implementation. | ||
docker tag islandora/claw-karaf:open-jdk islandora/claw-karaf:latest |