You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Saikat Maitra (Jira)" <ji...@apache.org> on 2019/08/25 20:23:00 UTC

[jira] [Commented] (IGNITE-12018) Web Agent docker image: 'functions.sh' not found

    [ https://issues.apache.org/jira/browse/IGNITE-12018?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16915342#comment-16915342 ] 

Saikat Maitra commented on IGNITE-12018:
----------------------------------------

Hi 

I have raised the PR for this issue 

[https://github.com/apache/ignite/pull/6808]

 

Regards,

Saikat

 

> 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, 2.7.5
>            Reporter: Igor Belyakov
>            Assignee: Saikat Maitra
>            Priority: Critical
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> 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
(v8.3.2#803003)