renamed throughout for consistency, built out full ansible process including network start/stop
1 parent 9fbb3ba commit e7d8e1dc401c46eea6d790a85f7a7377d655c518
@tundra tundra authored on 6 Aug 2020
Showing 21 changed files
View
17
README.md
This repo provides a fast track to spinning up docker containers as
"servers". You can log into these and do most of the things you do an
a "real" server or VM.
 
# Things You Can Learn And Use From This
# Things You Can Learn From This
 
* How to build a `docker` image from a "dockerfile"
* How to use `ansible` to create and destroy a `docker` network
* How to use `ansible` to create, restart, and destroy `docker` servers
* How host and `ssh` keys are managed on a `docker` instance
* How to enable `ssh` access to a `docker` instance
* How to share files between `docker` containers or between the host and a container
 
But this is not a "toy" system. What you see here is a public subset
of what we use all the time here at the TundraWare Intergalactic HQ.
We use this for software development, testing new distributed
Prep Work above is done:
 
* Configuring sandbox hostname resolution
* Build a `docker` image from a dockerfile
* Use `ansible` to configure and start a `docker` network
* Use `ansible` to start your sandboxes
* Use `ansible` to start a `docker` network and the sandboxes
* Login to your running sandboxes
 
 
# Configuring Sandbox Hostname Resolution
 
Various parts of this repo assume that there are (up to) 10 running
sandboxes whose names are `docksand1` through `docksand10`. For this
sandboxes whose names are `dockersand1` through `dockersand10`. For this
to work, you have to configure name resolution to properly associate
these names with their equivant IP addresses.
 
Most likely, you don't have control of your DNS configuration. The
 
# Building The `docker` Image
 
 
# Start The `docker` Network
 
 
# Create The `docker` Sandboxes
# Start The `docker` Network And Sandboxes
 
 
# Logging In
 
View
43
ansible/inventories/dockersand 0 → 100644
[ds1]
dockersand1
 
[ds2]
dockersand2
 
[ds3]
dockersand3
 
[ds4]
dockersand4
 
[ds5]
dockersand5
 
[ds6]
dockersand6
 
[ds7]
dockersand7
 
[ds8]
dockersand8
 
[ds9]
dockersand9
 
[ds10]
dockersand10
 
[dockersand:children]
 
ds1
ds2
ds3
ds4
ds5
ds6
ds7
ds8
ds9
ds10
View
ansible/inventories/docksand 100644 → 0
View
ansible/inventories/group_vars/all 0 → 100644
View
ansible/inventories/group_vars/dockersand 0 → 100644
View
ansible/playbooks/dockersand/dockersand_build.yml 0 → 100644
View
ansible/playbooks/dockersand/dockersand_destroy.yml 0 → 100644
View
ansible/playbooks/dockersand/dockersand_rebuild.yml 0 → 100644
View
ansible/playbooks/docksand/docksand_build.yml 100644 → 0
View
ansible/playbooks/docksand/docksand_destroy.yml 100644 → 0
View
ansible/playbooks/docksand/docksand_rebuild.yml 100644 → 0
View
ansible/roles/dockersand/meta/main.yml 0 → 100644
View
ansible/roles/dockersand/tasks/main.yml 0 → 100644
View
ansible/roles/dockersand/vars/main.yml 0 → 100644
View
ansible/roles/docsand/meta/main.yml 100644 → 0
View
ansible/roles/docsand/tasks/main.yml 100644 → 0
View
ansible/roles/docsand/vars/main.yml 100644 → 0
View
dockerfiles/common/.ssh/config
View
dockerfiles/common/etc/dockersand.hosts
View
dockerfiles/dockersand-debian/dockersand-debian.dockerfile 0 → 100644
View
dockerfiles/ds-debian/ds-debian.dockerfile 100644 → 0