karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "holger987654 (JIRA)" <j...@apache.org>
Subject [jira] [Created] (KARAF-5530) Error in initialization script when started in docker
Date Fri, 08 Dec 2017 16:13:00 GMT
holger987654 created KARAF-5530:
-----------------------------------

             Summary: 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)

Mime
View raw message