Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker container with example data #842

Open
nuest opened this issue Jun 8, 2020 · 3 comments
Open

Docker container with example data #842

nuest opened this issue Jun 8, 2020 · 3 comments

Comments

@nuest
Copy link

nuest commented Jun 8, 2020

Hi!

Is there an easy way to run an SOS container and have it include the small test data that is part of the demo deployment at http://sensorweb.demo.52north.org/52n-sos-webapp/client ? So, including the test procedures http://www.52north.org/test/procedure/<n> and dummy FOIs/observed properties?

@CarstenHollmann
Copy link

Hi,

you can run a SOS container by using the docker configuration files from the development bracnch:

https://github.com/52North/SOS/tree/develop/docker/default-config

and run the following command:

docker run -p 8080:8080 -v ./config:/etc/sos 52north/sos:latest

After the SOS has started you can execute the Batch - Example Data request in the test client to insert the test data you mentioned.

@nuest
Copy link
Author

nuest commented Jun 10, 2020

Thanks for the help - that get's me a little bit further with the following Dockerfile:

# See https://github.com/52North/SOS/issues/842#issuecomment-641746547
FROM 52north/sos:5.1.0

RUN wget -O /etc/sos/configuration.json https://raw.githubusercontent.com/52North/SOS/develop/docker/default-config/configuration.json
RUN wget -O /etc/sos/datasource.properties https://raw.githubusercontent.com/52North/SOS/develop/docker/default-config/datasource.properties

Is this really different from having no configuration file? As per the readme, these files seem to be used as well when I don't mount anything.

However, I don't see the batch request. Do I need to enable transactional operations, maybe?

image

When opening http://localhost:8080/client?load=exampleData I get the error message

image

@CarstenHollmann
Copy link

The config file which is used in the last image (5.1.0) does not enable the transactional operations by default and the transactional security is activated.

Therefore, we have updated the config in https://github.com/52North/SOS/tree/develop/docker/default-config which has disabled transactional security and enabled transactional operations.

If you use the image without defining the local config files, you can access the admin interface wiht admin:password (fixed in the documentation), enable the operations and disable the transactionals security. Then you should see the transactional examples in the test client

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants