For running this image just run
docker run -it --rm --privileged -p 5050:5050 -p 8080:8080 -p 80:80 -p 9090:9090 nenodias/mesos
The ports are exposing:
An example of deploy.json file for deploying a application
{
"id": "java-app",
"cpus": 1,
"mem": 512,
"disk": 0,
"instances": 1,
"env": {
"JAVA_OPTS": "-Xms256m -Xmx256m -XX:MaxMetaspaceSize=256m -XX:MaxDirectMemorySize=128m -Dnetworkaddress.cache.ttl=60 -Dnetworkaddress.cache.negative.ttl=0",
"SPRING_PROFILES_ACTIVE": "prod",
"SERVER_PORT": "9999"
},
"container": {
"docker": {
"image": "nenodias/container:0.0.1-SNAPSHOT",
"parameters": [
{
"key":"label",
"value":"traefik.enable=true"
},
{
"key": "label",
"value": "traefik.http.routers.java_service.rule=Host(`java.docker.localhost`)"
},
{
"key": "label",
"value": "traefik.http.routers.java_service.service=java_service"
},
{
"key": "label",
"value": "traefik.http.services.java_service.loadbalancer.server.port=9999"
}
]
},
"type": "DOCKER"
},
"networks": [
{
"mode": "host"
}
]
}
Then for deploy you just need to post this JSON.
example with curl:
curl -X POST -d @./deploy.json -H "Content-type: application/json" http://localhost:8080/v2/apps
So in your localhost you access this application by http://java.docker.localhost in your browser
Content type
Image
Digest
Size
443.9 MB
Last updated
about 5 years ago
docker pull nenodias/mesos:1.0.0