Skip to content

sdc-china/IDA-ondocker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Install IDA on Docker

Pre-requisites

Notes:
  • Your installation need to access internet.
  • IDA Docker installation only for DEV testing purpose.
  • We map the mysql volumn for the /var/mysql/demo_data directory for customer to backup the mysql database.
  • If you meet the installation issue,please raise the git issue,we will help to check that.

Procedure

  1. Git clone IDA-ondocker

  2. Manually copy the mysql-connector-java-5.1.44.jar into the ida-web.war\WEB-INF\lib\ folder.You can get ida-web.war from build folder into the release package.

  3. Copy the ida-web.war into the web folder from the docker package. Copy the schema-mysql.sql,data-mysql.sql script from release package into the mysql folder.

    dockerpackage

  4. Update docker environment variable.Open the "docker-compose.yml" at "script" level folder.Replace the environment variables SERVER_HOST, HTTP_PORT and HTTPS_PORT with your actaul values. If your machine ip is float,we strongly suggest you to use domain name to instead ip address for SERVER_HOST setting. If you don't use ldap,please make sure LDAP_BASE_DN flag is set to false.

    dockerEnv

  5. Run Docker compose build command,after that check docker images are generated or not.

    docker-compose build
    
  6. Start the IDA,use below command to start. We use -p to specify the project name to ida.

    docker-compose -p ida up -d
    

    You can launch the ida application through the url for https://yourip:yourhttpsport/ida
    You can open the browser http://dockerhostIP:4444/grid/console to check selenium grid/node installation status.

  7. The default setting is start one Selenium Hub with one Firefox nodes and one Chrome nodes.Run below command to scale firefox and chrome node.You can check the gride node number from the web console.

    docker-compose -p ida scale chrome=3 firefox=3
    

    seleniumNode

  8. Stop the IDA

You can stop the ida use docker-compose down command.

docker-compose -p ida down 

Debug Selenium Container with RealVNC Viewer

Sometimes you want to troubleshooting the selenium backend browser running status,you can use below procedures to do that.

  1. You can download the real-vnc. and Install as per your operating system.

  2. Check the selenium container we should verify the Container Process and Port Details. Use below command to check selenium port.

    docker ps|grep  selenium
    

    seleniumPort
    You can acquire the port by looking at the container details Like from the Image above we can see the VNC server is listening on the port no 5906 .

  3. Open real VNC viewer,connect with docker ip and port no

    vncviewer

  4. When you are prompted for the password please enter your password.

  5. Running Our Test on the correct Port number will Open the Google in our Container and We can see the Browser running in our VNC Server.
    vncviewerbrowser

About

Setup IDA solution with Docker Compose

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •