Skip to content

Instantly share code, notes, and snippets.

@roicostas
roicostas / kubernetes: build dockercoins
Last active August 29, 2016 16:55
dockercoins in kubernetes
RAND_PORT=56789
# Redirect registry url localhost:$RAND_PORT to kubernetes registry service
socat TCP-LISTEN:$RAND_PORT,fork TCP:$c1:$REGISTRY_PORT &
# Get dockercoins application and build
git clone https://github.com/roicostas/docker-orchestration
cd docker-orchestration/dockercoins
env REGISTRY_DASH=localhost:$RAND_PORT/ docker-compose -f docker-compose.yml-registry build
env REGISTRY_DASH=localhost:$RAND_PORT/ docker-compose -f docker-compose.yml-registry push
cd ../..
@roicostas
roicostas / swarm: build dockercoins
Last active August 29, 2016 16:16
dockercoins in docker 1.12 swarm mode
# Get dockercoins application
git clone https://github.com/roicostas/docker-orchestration
cd docker-orchestration/dockercoins
# Build and push dockercoins to the registry
docker-compose -f docker-compose.yml-registry build
docker-compose -f docker-compose.yml-registry push