-
Notifications
You must be signed in to change notification settings - Fork 1
Home
samatrhea edited this page Oct 24, 2023
·
9 revisions
The cdp4-database-community-edition docker image is used to host production CDP4-COMET data.
- Create the docker image
DOCKER_BUILDKIT=1 docker build -f Dockerfile -t rheagroup/cdp4-database-community-edition:latest -t rheagroup/cdp4-database-community-edition:2.1.0 .
- Push the docker image to Docker Hub
docker push rheagroup/cdp4-database-community-edition:2.1.0
docker push rheagroup/cdp4-database-community-edition:latest
Run the image
docker run -e POSTGRES_PASSWORD=postgres -p 5432:5432 -it -d --name cdp4-database-community-edition --net cdp4 rheagroup/cdp4-database-community-edition:2.1.0
The cdp4-test-database-community-edition docker image is the image used to run the ECSS-E-TM-10-25 Annex C integration tests. This image is based on the official PostgreSQL image postgres:16-alpine
- Create the docker image
DOCKER_BUILDKIT=1 docker build -f Dockerfile -t rheagroup/cdp4-test-database-community-edition:latest -t rheagroup/cdp4-test-database-community-edition:3.0.0 .
- Push the docker image to Docker Hub
docker push rheagroup/cdp4-test-database-community-edition:3.0.0
docker push rheagroup/cdp4-test-database-community-edition:latest
Run the image, note that the data is stored to a temporary file system.
docker run -e POSTGRES_PASSWORD=postgres -p 5432:5432 --tmpfs /var/lib/postgresql/data:rw -it -d --name cdp4-test-database-community-edition --net cdp4-comet rheagroup/cdp4-test-database-community-edition:3.0.0
Once the database and webservices docker image are running, the test Annex C3 zip archive needs to be posted.
curl --form file=@"Data.zip" http://localhost:5000/Data/Exchange
copyright @ Starion Group S.A.