Hey Ben!

Great thanks to your answer. I think that this is a good start! But I will start first with some easy peasy docker images. Something like LAMP.

Thanks!
Dominik


Am 11.01.2018 um 23:00 schrieb Benson Wong:
Hi Dominik,

I was the one that originally created the Docker container for server-syncstorage. I created it so I could easily run the functional tests against a prototype golang implementation of the server[1].

The docker containers are here:

https://hub.docker.com/r/mozilla/server-syncstorage/tags/

The containers are automatically built, tested and published from CircleCI when we cut a new release. They contain the same code as we run in production so they should work.

There's no docs :(, but these tips/examples should get you started:

References:
* https://github.com/mozilla-services/server-syncstorage/blob/master/Dockerfile * https://github.com/mozilla-services/server-syncstorage/blob/master/docker-entrypoint.sh#L4-L24 * https://github.com/mozilla-services/server-syncstorage/blob/master/circle.yml


The docker-entrypoint.sh has most of the logic for running the container. So you should be able to:

   > docker run mozilla/server-syncstorage:v1.6.12 server

and it'll run with the default example.ini configuration.


If you want to use your own configuration you can:

  > docker run -v '/local/path/to/config.ini:/app/config.ini' -e "SYNC_SETTINGS_FILE=/app/config.ini" mozilla/server-syncstorage:v1.6.12 server

- this mounts your local config file into the docker container
- tells it where it is via the SYNC_SETTINGS_FILE environment variable


Here's how I use the docker container to test my prototype go-syncstorage server:

https://github.com/mozilla-services/go-syncstorage/blob/master/circle.yml#L78-L81

Let me know if you have any more questions / run into any issues.

Ben

[1] https://github.com/mozilla-services/go-syncstorage

On Thu, Jan 11, 2018 at 1:40 PM, Dominik Erdmann <[email protected] <mailto:[email protected]>> wrote:

    Hi!

    I see that Mozilla offers a lot of Docker images:
    https://hub.docker.com/u/mozilla/ <https://hub.docker.com/u/mozilla/>

    But for no one is a documentation available. I'm new with Docker and
    want to test. Can you please help me to find some infos?

    Thanks
    Domink
    _______________________________________________
    Sync-dev mailing list
    [email protected] <mailto:[email protected]>
    https://mail.mozilla.org/listinfo/sync-dev
    <https://mail.mozilla.org/listinfo/sync-dev>




_______________________________________________
Sync-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/sync-dev

_______________________________________________
Sync-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/sync-dev

Reply via email to