Sample scripts to deploy PostgreSQL to Mesosphere DC/OS with Local Persistent Storage enabled.
** Replace kojiha/postgres_test with your own tag.
docker build -t kojiha/postgres_test .
docker login
docker push kojiha/postgres_test
Customization points are:
docker.image
container.volumes.containerPath
andenv.PGDATA
container.volumes.persistent.size
- add
POSTGRES_USER
,POSTGRES_PASSWORD
inenv
as you need
At least you must modify docker.image
for your image location.
dcos marathon app add marathon.json
or put the marathon.json content into JSON CONFIGUFATION text area of DC/OS 'Run a Service' UI.
-
container.volumes.containerPath
may not contain any slashes -
The environment variable
PGDATA
must have a path/mnt/mesos/sandbox/
+ the value set incontainer.volumes.containerPath