Code development platform for open source projects from the European Union institutions

Skip to content
Snippets Groups Projects
Commit 51fdc583 authored by Joze RIHTARSIC's avatar Joze RIHTARSIC
Browse files

Update docker image README.md

parent 93aface6
No related branches found
No related tags found
No related merge requests found
......@@ -32,20 +32,23 @@ Password: smp
## Volume (-v /opt/docker-data/smp:/data)
Mysql database files and tomcat configuration (and logs) can be externalized for experimenting with different SMP settings.
docker run --name smp --rm -it -p 8080:8080 -v /opt/docker-data/smp:/data edelivery-docker.devops.tech.ec.europa.eu/edeliverytest/smp-sml-tomcat-mysql:5.0-SNAPSHOT
docker run --name smp --rm -it -p 8180:8080 -v /opt/docker-data/smp:/data edelivery-docker.devops.tech.ec.europa.eu/edeliverytest/smp-sml-tomcat-mysql:5.0-SNAPSHOT
# Start docker with pre-init data
1. copy init sql script to folder (create folder)
./db-scripts
NOTE: Make sure the script name is *mysql5innodb-data.sql*
example:
curl -k https://ec.europa.eu/digital-building-blocks/code/projects/EDELIVERY/repos/smp/raw/smp-soapui-tests/groovy/mysql-4.1_integration_test_data.sql?at=refs%2Fheads%2Fdevelopment --output ./db-scripts/mysql5innodb-data.sql
Then start the docker as:
docker run --name smp --rm -it -p 8080:8080 -v - db-scripts:/tmp/custom-data/ edelivery-docker.devops.tech.ec.europa.eu/edeliverytest/smp-sml-tomcat-mysql:5.0-SNAPSHOT
docker run --name smp --rm -it -p 8180:8080 -v ./db-scripts:/tmp/custom-data/ edelivery-docker.devops.tech.ec.europa.eu/edeliverytest/smp-sml-tomcat-mysql:5.0-SNAPSHOT
# Start with the docker compose file
......@@ -59,7 +62,8 @@ services:
ports:
- "3316:3306"
- "8180:8080"
# volumes:
# - ./db-scripts:/tmp/custom-data/
```
and start the container service
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment