-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upgrade Karaf images to 4.0.9 Alpine (#46)
Between the release of Alpine 4.0.9 and the release of Alpine 3.6, the tty issue with jansi that prevented Karaf from running on Alpine has been resolved. fusesource/jansi#58 * Upgrade from Karaf 4.0.7 to 4.0.9 * Use latest openjdk alpine image for karaf * Minor clean ups of Dockerfiles
- Loading branch information
Showing
12 changed files
with
124 additions
and
141 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 |
---|---|---|
@@ -1,2 +1,3 @@ | ||
*.sh text eol=lf | ||
*.cfg text eol=lf | ||
*.patch text eol=lf |
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,62 +1,39 @@ | ||
FROM fcrepoapix/apix-karaf:4.0.7 | ||
FROM fcrepoapix/apix-karaf-camel:4.0.9@sha256:bbea3acdab13f6f6a321b1b9e08e2ce1af4e741f2ca31b36014f087f0fefa1a6 | ||
|
||
MAINTAINER Elliot Metsger <emetsger@jhu.edu> | ||
LABEL description = "Provides a Karaf container configured with Amherst features" | ||
# Needed for -image | ||
RUN apt-get update && apt-get -y install imagemagick && rm -rf /var/lib/apt/lists/* && apt-get purge -y | ||
|
||
# The port acrepo Karaf will listen on when debugging is enabled | ||
|
||
ENV DEBUG_PORT 5008 | ||
ENV JAVA_DEBUG_PORT ${DEBUG_PORT} | ||
EXPOSE ${DEBUG_PORT} | ||
EXPOSE 9102 | ||
|
||
# The host and port that the Fedora repository is running on (in a separate container) | ||
ENV FCREPO_HOST localhost | ||
ENV FCREPO_PORT 80 | ||
ENV FCREPO_CONTEXT_PATH /fcrepo | ||
|
||
ENV ACREPO_VERSION 1.1.0 | ||
ENV CAMEL_VERSION 2.18.3 | ||
ENV FCREPO_CAMEL_VERSION 4.5.0 | ||
|
||
#ADD maven/ /build/repository/ | ||
|
||
# Allow the string "acrepo" to be recognized by Karaf as the Amherst feature repository | ||
|
||
RUN echo "acrepo=mvn:edu.amherst.acdc/acrepo-karaf/${ACREPO_VERSION}/xml/features" >> etc/org.apache.karaf.features.repos.cfg | ||
|
||
# Add acrepo as a registered features repository by default | ||
|
||
RUN sed -e "s:^\( mvn\:org.apache.karaf.features/enterprise/${KARAF_VERSION}/xml/features\):\1, \\\ | ||
ENV ACREPO_VERSION=1.1.0 \ | ||
FCREPO_CAMEL_VERSION=4.5.0 \ | ||
FCREPO_HOST=localhost \ | ||
FCREPO_PORT=80 \ | ||
DEBUG_PORT=5008 \ | ||
JAVA_DEBUG_PORT=5008 \ | ||
FCREPO_CONTEXT_PATH=/fcrepo | ||
|
||
#ADD maven/docke /build/repository/ | ||
|
||
# Install all of the latest features found in the acrepo features repository) | ||
RUN apk --no-cache add --update imagemagick && \ | ||
echo "acrepo=mvn:edu.amherst.acdc/acrepo-karaf/${ACREPO_VERSION}/xml/features" >> etc/org.apache.karaf.features.repos.cfg && \ | ||
sed -e "s:^\( mvn\:org.apache.karaf.features/enterprise/${KARAF_VERSION}/xml/features\):\1, \\\ | ||
mvn\:edu.amherst.acdc/acrepo-karaf/${ACREPO_VERSION}/xml/features \\\:" \ | ||
-i etc/org.apache.karaf.features.cfg | ||
|
||
# Install all of the latest features found in the acrepo features repository (typically these features will be SNAPSHOT versions) | ||
|
||
RUN bin/start && \ | ||
-i etc/org.apache.karaf.features.cfg && \ | ||
bin/start && \ | ||
bin/client -r 10 -d 5 "feature:repo-add mvn:edu.amherst.acdc/acrepo-karaf/${ACREPO_VERSION}/xml/features" && \ | ||
bin/client -r 10 -d 5 "feature:repo-add mvn:org.apache.camel.karaf/apache-camel/${CAMEL_VERSION}/xml/features" && \ | ||
bin/client -r 10 -d 5 "feature:repo-add mvn:org.fcrepo.camel/fcrepo-camel/${FCREPO_CAMEL_VERSION}/xml/features" && \ | ||
bin/client -r 10 -d 5 "feature:install camel fcrepo-camel acrepo-exts-ore acrepo-exts-image acrepo-exts-pcdm acrepo-exts-fits acrepo-exts-serialize-xml" && \ | ||
/bin/sleep 15 && \ | ||
bin/stop | ||
|
||
# Update the Karaf logging configuration so that `bin/karaf` will echo logging | ||
# to the console, viewable by `docker logs`. This makes using the Karaf console | ||
# difficult, so the recommended way to obtain the Karaf console is to use | ||
# `docker exec -ti <container> bin/client` after the container has been started | ||
# by `docker run` | ||
|
||
RUN sed -e "s/osgi:/stdout, osgi:/" -i etc/org.ops4j.pax.logging.cfg | ||
bin/stop && \ | ||
rm -rf instances/* | ||
|
||
COPY entrypoint.sh /entrypoint.sh | ||
|
||
RUN chmod 700 /entrypoint.sh | ||
|
||
ENTRYPOINT [ "/entrypoint.sh" ] | ||
|
||
# Launch Karaf with no console, and debugging enabled by default. | ||
# Launch Karaf with no console | ||
|
||
CMD [ "server", "debug" ] | ||
CMD [ "server" ] |
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
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
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
FROM fcrepoapix/apix-karaf:4.0.9@sha256:d0a2910efaa3b97b508ca80225377ba2ce07a66078e61364d291b731f1bea1e8 | ||
|
||
MAINTAINER Elliot Metsger <emetsger@jhu.edu> | ||
LABEL description = "Provides a Karaf container configured with Camel and Activemq pre-loaded" | ||
|
||
# Camel and Activemq versions | ||
ENV CAMEL_VERSION=2.18.4 \ | ||
ACTIVEMQ_VERSION=5.14.5 | ||
|
||
RUN bin/start && \ | ||
bin/client -r 10 -d 5 "feature:repo-add mvn:org.apache.camel.karaf/apache-camel/${CAMEL_VERSION}/xml/features" && \ | ||
bin/client -r 10 -d 5 "feature:repo-add mvn:org.apache.activemq/activemq-karaf/${ACTIVEMQ_VERSION}/xml/features" && \ | ||
bin/client -r 10 -d 5 "feature:install activemq-camel" && \ | ||
bin/client -r 10 -d 5 "feature:install camel-http4" && \ | ||
bin/client -r 10 -d 5 "feature:install camel-jetty" && \ | ||
bin/stop && \ | ||
rm -rf instances/* |
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,7 @@ | ||
## karaf 4.0.9 Dockerfile | ||
|
||
This image builds on the [Karaf 4.0.9 docker image](../4.0.9/README.md) by | ||
installing Camel and ActiveMQ features. This is a mechanism that saves | ||
comsiderable space, as Camel and ActiveMQ are larged. To the extent that | ||
images are built off this one, the space consumed by Camel and ActiveMQ will | ||
be shared between all images. |
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.