Skip to content

Commit

Permalink
Update Karaf image
Browse files Browse the repository at this point in the history
- use new base image
- upgrade to Karaf 4.0.5 (4.0.6 is broken on Alpine fusesource/jansi#58)
- update Karaf binary download URL
- comment out feature repo updates for now
  • Loading branch information
emetsger committed Sep 26, 2016
1 parent e0e1b1c commit f4ee56e
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions karaf/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM emetsger/apix-docker-test:build
FROM emetsger/apix-build:latest

MAINTAINER Elliot Metsger <emetsger@jhu.edu>
LABEL description = "Provides a Karaf container configured with a local Maven repository at ${MAVEN_REPO}"
Expand All @@ -7,11 +7,11 @@ LABEL description = "Provides a Karaf container configured with a local Maven re
ENV KARAF_RUNTIME /opt/karaf

# The version of Karaf to download and install in the container
ENV KARAF_VERSION 4.0.4
ENV KARAF_VERSION 4.0.5

# Download and install Karaf, then clean up.
RUN export KARAF_DIST=apache-karaf-${KARAF_VERSION}.tar.gz && \
curl -L "http://www.apache.org/dyn/closer.lua?filename=karaf/${KARAF_VERSION}/${KARAF_DIST}&action=download" \
curl -SL "http://archive.apache.org/dist/karaf/${KARAF_VERSION}/${KARAF_DIST}" \
> /tmp/${KARAF_DIST} && \
mkdir -p ${KARAF_RUNTIME} && \
cd ${KARAF_RUNTIME} && \
Expand All @@ -22,10 +22,10 @@ WORKDIR ${KARAF_RUNTIME}/apache-karaf-${KARAF_VERSION}

# Update the Karaf configuration so that the Maven repository under ${MAVEN_REPO}
# is used by Karaf to discover features.
RUN sed -e "s:^#org.ops4j.pax.url.mvn.localRepository=:org.ops4j.pax.url.mvn.localRepository=${MAVEN_REPO}:" \
-i etc/org.ops4j.pax.url.mvn.cfg && \
sed -e "s:^#\(org.ops4j.pax.url.mvn.defaultLocalRepoAsRemote=\)false:\1true:" \
-i etc/org.ops4j.pax.url.mvn.cfg
# RUN sed -e "s:^#org.ops4j.pax.url.mvn.localRepository=:org.ops4j.pax.url.mvn.localRepository=${MAVEN_REPO}:" \
# -i etc/org.ops4j.pax.url.mvn.cfg && \
# sed -e "s:^#\(org.ops4j.pax.url.mvn.defaultLocalRepoAsRemote=\)false:\1true:" \
# -i etc/org.ops4j.pax.url.mvn.cfg

# Launch Karaf...
ENTRYPOINT [ "bin/karaf" ]
Expand Down

0 comments on commit f4ee56e

Please sign in to comment.