This seems fairly identical to the mkroli Dockerfile. Does docker run work for 
you with this file then presumably? For me, it exits as soon as the console 
appears.


> On 16 Jun 2017, at 14:27, Jean-Baptiste Onofré <j...@nanthrax.net> wrote:
> 
> Hi Dan,
> 
> Here's a dockerfile I'm using starting from the official java image:
> 
> FROM java:8-jdk
> ENV JAVA_HOME /usr/lib/jvm/java-8-openjdk-amd64
> 
> ENV KARAF_VERSION=4.1.1
> 
> RUN wget 
> http://www-us.apache.org/dist/karaf/${KARAF_VERSION}/apache-karaf-${KARAF_VERSION}.tar.gz;
>  \
>    mkdir /opt/karaf; \
>    tar --strip-components=1 -C /opt/karaf -xzf 
> apache-karaf-${KARAF_VERSION}.tar.gz; \
>    rm apache-karaf-${KARAF_VERSION}.tar.gz; \
>    mkdir /deploy; \
>    sed -i 's/^\(felix\.fileinstall\.dir\s*=\s*\).*$/\1\/deploy/' 
> /opt/karaf/etc/org.apache.felix.fileinstall-deploy.cfg
> 
> VOLUME ["/deploy"]
> EXPOSE 1099 8101 44444
> ENTRYPOINT ["/opt/karaf/bin/karaf"]
> 
> By the way, I'm in the process to create official Apache Karaf images.
> 
> Regards
> JB
> 
> On 06/16/2017 03:12 PM, Daniel McGreal wrote:
>> Hi Karaf users,
>> I’m trying to run Karaf in Docker using mkroli/karaf.
>> docker run mkroli/karaf fails, possibly because the console is running and 
>> it gets an EOF immediately. docker run mkroli/karaf server works, but is a 
>> bit silent for my liking… can I somehow get it to output log:tail?
>> Best, Dan.
> 
> -- 
> Jean-Baptiste Onofré
> jbono...@apache.org
> http://blog.nanthrax.net
> Talend - http://www.talend.com

Reply via email to