ignite-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Igor Belyakov (JIRA)" <j...@apache.org>
Subject [jira] [Created] (IGNITE-12018) Web Agent docker image: 'functions.sh' not found
Date Thu, 25 Jul 2019 21:33:00 GMT
Igor Belyakov created IGNITE-12018:
--------------------------------------

             Summary: Web Agent docker image: 'functions.sh' not found
                 Key: IGNITE-12018
                 URL: https://issues.apache.org/jira/browse/IGNITE-12018
             Project: Ignite
          Issue Type: Bug
          Components: UI
    Affects Versions: 2.7.5, 2.7
            Reporter: Igor Belyakov


Steps to reproduce:

1. Build docker image by using "docker/web-agent/Dockerfile" according to README file.
2. Start docker container by using generated image.
3. Next error happens on container start:

 
{code:java}
./ignite-web-agent.sh: line 39: /opt/ignite/ignite-web-agent/include/functions.sh: No such
file or directory
./ignite-web-agent.sh: line 44: checkJava: command not found
./ignite-web-agent.sh: line 64: javaMajorVersion: command not found
./ignite-web-agent.sh: line 66: [: -eq: unary operator expected
./ignite-web-agent.sh: line 71: [: -gt: unary operator expected
./ignite-web-agent.sh: line 84: [: -eq: unary operator expected
./ignite-web-agent.sh: line 95: : command not found{code}
 

Image contains next files in "/opt/ignite/ignite-web-agent" directory without any sub directories:

 
{code:java}
-rw-r--r-- 1 root root 89 Dec 4 2018 README.txt
-rw-r--r-- 1 root root 8080 Dec 4 2018 db-init.sql
-rw-rw-r-- 1 root root 203 Jul 25 12:30 default.properties
-rwxr-xr-x 1 root root 2721 Dec 4 2018 functions.sh
-rw-r--r-- 1 root root 29118502 Dec 6 2018 ignite-web-agent-2.7.0.jar
-rw-r--r-- 1 root root 4590 Dec 4 2018 ignite-web-agent.bat
-rw-rw-r-- 1 root root 561 Jul 25 16:31 ignite-web-agent.log
-rwxr-xr-x 1 root root 3229 Jul 25 16:33 ignite-web-agent.sh 
{code}
The issue happens during executing files copy command in Dockerfile, it doesn't keep directories
structure. To solve this problem "COPY ignite-web-agent*/* ./" command should be changed to
"COPY ignite-web-agent* ./"



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)

Mime
View raw message