Skip to content

VictoryCTO/disposable-development-environments

Repository files navigation

Disposable Development Environments

All Day DevOps - 2017

Accompanying Resources

Stuff aobut he blog post at VictoryCTO

Get Started

The standard setup for following a Victory CTO tutorial is:

# Creates a workspace separate from your normal development area and allows 
# easier explanation of paths in blogs and instructions. 
mkdir -p ~/code/victory-cto && cd ~/code/victory-cto

Followed by cloning the repo:

# Get the source code including the runtime configuration
git clone git@github.com:VictoryCTO/disposable-development-environments.git

Docker

# Build the development container
docker build -t my-local-runtime .

# Fire up the run time
docker run -p 5000:5000 -v $HOME/code/victory-cto/disposable-development-environments/:/code my-local-runtime

# Exercise the code
curl localhost:5000

Try changing the message locally on your workstation and exercising the application again.

Vagrant

# Start the virtual machine
vagrant up

# configure the machine
vagrant provision

# Exercise the code
curl 192.168.33.10:5000

Try changing the message locally on your workstation and exercising the application again.

Handy Commands

Run from the container from a registry:

docker run -p 5000:5000 -v $HOME/code/victory-cto/disposable-development-environments/:/code quay.io/boyd/disposable-development-environments

Remove all containers from your system. (Note the all):

docker ps -a | cut -d' ' -f1 | tail -n +2

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages