commit | d5149f1263ec3b06e8dc2ea83cda12b0edc62b77 | [log] [tgz] |
---|---|---|
author | Robert Munteanu <rombert@apache.org> | Tue Feb 06 14:03:50 2018 +0200 |
committer | Robert Munteanu <rombert@apache.org> | Tue Feb 06 14:03:50 2018 +0200 |
tree | e0ae31b9485eeb813b433ca25d8892dd1fc04153 | |
parent | e5e34bb8150d6c490d53b51cbcdb3eea7cbd0d38 [diff] |
Update to Sling 10
The Launchpad Docker integration project is a helper aimed to make it simple to build an ‘official’ Sling docker image.
$ docker build -t sling .
To launch a docker instance named ‘my-sling-container’ bound to port 8080 on the local machine, and with the /opt/sling/sling volume mounted at /srv/docker/sling in the local machine, execute:
$ docker run -ti -p 8080:8080 -v /srv/docker/sling:/opt/sling/sling \ --name my-sling-container sling
There is a docker-compose-mongodb.yml file supplied which shows how to run the Sling launchpad in a docker container linked to a mongo one. To launch both containers, execute:
$ docker-compose -f docker-compose-mongo.yml up