Description
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:
./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
Image contains next files in "/opt/ignite/ignite-web-agent" directory without any sub directories:
-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
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* ./"
Attachments
Issue Links
- links to