Uploaded image for project: 'Ignite'
  1. Ignite
  2. IGNITE-12018

Web Agent docker image: 'functions.sh' not found

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • 2.7, 2.7.5
    • 2.8
    • UI
    • None

    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

          Activity

            People

              samaitra Saikat Maitra
              ibelyakov Igor Belyakov
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m