Development and Operations Environment with Some Extra Sauceā¢
469
This is a text-based development and operations environment. It is neither basic nor slim.
Its purpose is to let a developer push to his work repositories or manage his work servers
in under one minute since docker run.
It includes in random order:
dockip or gl (inside a git repo)Optional:
~/.ssh)Inside the container you start as a normal user (dev, uid 1000). This is only for your safety and to help with setup/use cases separation.
You have sudo access if you need to run commands as the superuser (e.g yum install).
Create a file named gce.account that contains your GCE service account.
Create a file named gce.key that contains your unencrypted PEM key (from your p12 file).
If your files are inside /path/to/dsetup, then:
$ docker run -it -v /path/to/dsetup:/home/dev/.setup andmarios/devenv
If you want to enable automatic ansible GCE support you have to provide one more file named gce.project that contains your
GCE project id. Example for creating gce.account and gce.project:
$ echo "[email protected]" > gce.account
$ echo "MYPROJECTID" > gce.project
You may provide your $HOME/.ssh directory so that you will have your ssh keys and settings inside the container.
The ssh-agent will ask you to activate your id_rsa key and any other key mentioned inside $HOME/.ssh/config.
If you don't want to use the ssh-agent, press enter instead of providing your passphrase when asked.
$ docker run -it -v /home/USER/.ssh:/home/dev/.setup-ssh andmarios/devenv
| The reason we don't bind-mount directly to /home/dev/.ssh is that your user may have a different uid/gid from the
| container's user. Bash scripts inside the container take care of this.
Create a file named repos and add your git repositories inside, one per line.
Then if your file is inside /path/to/dsetup:
$ docker run -it -v /path/to/dsetup:/home/dev/.setup andmarios/devenv
Obviously if your repositories need SSH keys for access, you have to provide them as mentioned above.
You can also supply your ~/.gitconfig file as gitconfig inside /path/to/dsetup, so that git will be
preconfigured with your settings.
If you don't want to copy it, you can always bind mount the original:
$ docker run -it -v /path/to/dsetup:/home/dev/.setup -v /home/USER/.gitconfig:/home/dev/.setup/gitconfig andmarios/devenv
I suggest to copy your gitconfig though.
The container can use an external docker daemon through bind mounting its socket:
$ docker run -it -v /run/docker.sock:/run/docker.sock andmarios/devenv
If your docker socket is owned by root you can use it directly. If it is owned by someone else, you need to use sudo for the docker commands.
Content type
Image
Digest
sha256:316f45809ā¦
Size
705.1 MB
Last updated
over 9 years ago
docker pull andmarios/devenv