...
Set up the DOCKER_HOST environmental variable
To set environmental variable in Windows (the docker engine environment):
- Run `cmd`
- Issue command `set NAME=VALUE`
...
Code Block |
---|
echo %DOCKER_HOST% |
To compile sdc-simulator docker:
1. Run
Code Block |
---|
mvn clean install -Ddocker.buildArg.http_proxy=<http_proxy> -Ddocker.buildArg.https_proxy=<https_proxy> -P docker |
- The proxy arguments are passed and used as environmental variables in Dockerfiles
2. Copy the script /webseal-simulator/scripts/simulator_docker_run.sh to the docker engine environment and run:
Code Block |
---|
simulator_docker_run.sh -r 1.1-STAGING-latest |
3. To verify that sdc-simulator docker is up and running run:
Code Block |
---|
docker ps |
4. Enter to UI: `http://<ip address>:8285/login`
Code Block |
---|
http://localhost:8285/login |
Docker compilation - Docker Engine
1. Build web simulator WAR file run in project “webseal simulator”:
Code Block |
---|
mvn clean install |
- This will generate war file (WSSimulator.war) in the target folder.
- Check that WSSimulator.war exists after first step No.1 in webseal-simulator/sdc-simulator folder.
2. Ftp war file: webseal-simulator/sdc-simulator folder to your localhost vagrant machine which runs docker engine daemon.
3. Run `docker build -t openecomp/sdc-simulator:1.1-STAGING-latest <PATH/sdc-simulator>`
Code Block |
---|
docker build -t openecomp/sdc-simulator:1.1-STAGING-latest /tmp/docker/sdc-simulator/ |
4. Validate that images pushed to the local repo by executing:
Code Block |
---|
docker images |
5. Copy the script /webseal-simulator/scripts/simulator_docker_run.sh to the docker engine environment and run:
Code Block |
---|
simulator_docker_run.sh -r 1.1-STAGING-latest |
6.To verify that sdc-simulator docker is up and running execute:
Code Block |
---|
docker ps |
- If no docker sdc-sim running execute `docker ps -a`
7. Enter to UI: http://<ip address>:8285/login
Code Block |
---|
http://localhost:8285/login |
WAR compilation
- To compile WSSimulator.war:
1. Build web simulator WAR file: run `mvn clean install` on project "webseal simulator". This will generate war file (WSSimulator.war) in the target folder.
2. Ftp war file: webseal-simulator\target\WSSimulator.war to your localhost vagrant machine: /home/vagrant/webseal-simulator/webapps folder
3. Ftp configuration file: webseal-simulator\src\main\resources\webseal.conf to your localhost vagrant machine: /home/vagrant/webseal-simulator/config
4. Add users to simulator: open configuration file - webseal.conf and add new user to the user list.
Note: You need to define the user in the SDC as well.
5. To run the simulator, enter to your local vagrant and run: startWebsealSimulator.sh
-- Restart the simulator:
Stop the simulator: stopWebsealSimulator.sh
Start the simulator: startWebsealSimulator.sh
6. Enter to UI: http://<ip address>:8285/login