SyntaxHighlighter

Showing posts with label Project Photon. Show all posts
Showing posts with label Project Photon. Show all posts

Sunday, August 23, 2015

Kafka on Docker on Photon with AppCatalyst

Kafka on Docker on Photon with AppCatalyst

so, something to note with AppCatalyst; the Photon VMs are very small (memory-wise).  as such, spooling up some containers, like spotify/kafka, won't start.  so here's a simple one;

sudo docker run -d --name other_kafka -p 2181:2181 -p 9092:9092 --env ADVERTISED_HOST=localhost --env ADVERTISED_PORT=9092 --env KAFKA_HEAP_OPTS="-Xmx256M -Xms128M" spotify/kafka

the memory settings help get it off the ground on appcatalyst-photon.

(which kind of goes against the 12 factor grain of "close-to-production" as possible given the docker script is altered to fit the VM...)


Tuesday, July 28, 2015

VMware Photon and Docker Remote Service

How to Enable Docker Remote Access on VMware Photon


  1. "sudo -s"
  2. "nano /etc/systemd/system/multi-user.target.wants/docker.service"
  3. change ExecStart to "ExecStart=/bin/docker -H tcp://0.0.0.0:2375 -H unix:///var/run/docker.sock -d -s overlay"
  4. save, exit, and restart the VM
  5. test with "curl localhost:2375/info" and the response should be a JSON document