You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "holger987654 (JIRA)" <ji...@apache.org> on 2017/12/12 08:05:00 UTC
[jira] [Closed] (KARAF-5530) Error in initialization script when
started in docker
[ https://issues.apache.org/jira/browse/KARAF-5530?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
holger987654 closed KARAF-5530.
-------------------------------
Resolution: Not A Bug
seems to be an docker issue
> Error in initialization script when started in docker
> -----------------------------------------------------
>
> Key: KARAF-5530
> URL: https://issues.apache.org/jira/browse/KARAF-5530
> Project: Karaf
> Issue Type: Bug
> Affects Versions: 4.1.3
> Reporter: holger987654
>
> I have the following Dockerfile to run Karaf in a container:
> FROM java:8-jdk
> ENV JAVA_HOME /usr/lib/jvm/java-8-openjdk-amd64
>
> ENV KARAF_VERSION=4.1.3
> # Set proxy server, replace host:port with values for your servers
> ENV http_proxy http://xn01598:XN01598@proxy.dzbank.vrnet:8080
> ENV https_proxy http://xn01598:XN01598@proxy.dzbank.vrnet:8080
>
> 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 8181 44444
> ENTRYPOINT ["/opt/karaf/bin/karaf"]
> it works fine with Karaf 4.0.10
> With 4.1.x I get breaks with the output:
> __ __ ____
> / //_/____ __________ _/ __/
> / ,< / __ `/ ___/ __ `/ /_
> / /| |/ /_/ / / / /_/ / __/
> /_/ |_|\__,_/_/ \__,_/_/
> Apache Karaf (4.1.3)
> Hit '<tab>' for a list of available commands
> and '[cmd] --help' for help on a specific command.
> Hit '<ctrl-d>' or type 'system:shutdown' or 'logout' to shutdown Karaf.
> *Error in initialization script: /opt/karaf/etc/shell.init.script: String index out of range: 0*
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)