This repository was archived by the owner on Aug 18, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
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
e6b9f40
commit f4c9de5
Showing
5 changed files
with
54 additions
and
30 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 @@ | ||
Dockerfile.open-jdk |
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-tomcat:open-jdk | ||
MAINTAINER Nigel Banks <nigel.g.banks@gmail.com> | ||
|
||
LABEL "License"="MIT" \ | ||
"Version"="0.0.1" | ||
|
||
EXPOSE 61613 | ||
EXPOSE 61616 | ||
|
||
ARG FEDORA_VERSION="4.4.0" | ||
|
||
ENV FEDORA_HOME="/mnt/fedora-data" \ | ||
CATALINA_OPTS="${CATALINA_OPTS} -Dfcrepo.home=/mnt/fedora-data" | ||
|
||
RUN mkdir -p ${FEDORA_HOME} && \ | ||
chown tomcat:tomcat ${FEDORA_HOME} && \ | ||
curl -o ${CATALINA_BASE}/webapps/fcrepo.war \ | ||
-L https://github.com/fcrepo4/fcrepo4/releases/download/fcrepo-${FEDORA_VERSION}/fcrepo-webapp-${FEDORA_VERSION}.war && \ | ||
mkdir ${CATALINA_BASE}/webapps/fcrepo && \ | ||
unzip -o ${CATALINA_BASE}/webapps/fcrepo.war -d ${CATALINA_HOME}/webapps/fcrepo && \ | ||
rm -rf ${CATALINA_HOME}/webapps/*.war && \ | ||
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-tomcat:oracle-jdk | ||
MAINTAINER Nigel Banks <nigel.g.banks@gmail.com> | ||
|
||
LABEL "License"="MIT" \ | ||
"Version"="0.0.1" | ||
|
||
EXPOSE 61613 | ||
EXPOSE 61616 | ||
|
||
ARG FEDORA_VERSION="4.4.0" | ||
|
||
ENV FEDORA_HOME="/mnt/fedora-data" \ | ||
CATALINA_OPTS="${CATALINA_OPTS} -Dfcrepo.home=/mnt/fedora-data" | ||
|
||
RUN mkdir -p ${FEDORA_HOME} && \ | ||
chown tomcat:tomcat ${FEDORA_HOME} && \ | ||
curl -o ${CATALINA_BASE}/webapps/fcrepo.war \ | ||
-L https://github.com/fcrepo4/fcrepo4/releases/download/fcrepo-${FEDORA_VERSION}/fcrepo-webapp-${FEDORA_VERSION}.war && \ | ||
mkdir ${CATALINA_BASE}/webapps/fcrepo && \ | ||
unzip -o ${CATALINA_BASE}/webapps/fcrepo.war -d ${CATALINA_HOME}/webapps/fcrepo && \ | ||
rm -rf ${CATALINA_HOME}/webapps/*.war && \ | ||
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-fedora $DIR/.. | ||
readonly ROOT="$( cd "$( dirname "${BASH_SOURCE[0]}" )/.." && pwd )" | ||
docker build -f $ROOT/Dockerfile.oracle-jdk -t islandora/claw-fedora:oracle-jdk $ROOT | ||
docker build -f $ROOT/Dockerfile.open-jdk -t islandora/claw-fedora:open-jdk $ROOT | ||
# Open JDK is the default implementation. | ||
docker tag islandora/claw-fedora:open-jdk islandora/claw-fedora:latest |