The image is auto-generated if a new stable version of go, terraform or packer is released.
1.8K
This repository contains a Dockerfile that will build a Ubuntu Bionic (18.04) image with handy cloud management tools for Amazon Web Services and Oracle Cloud Infrastructure.
Important to know is that this image is generated by a serverless compute unit instance (AWS Lambda function triggered by CloudWatch) whenever a new stable version of Terraform, Packer, or Golang Go is released. Ansible version can be set by updating internal/store.json file manually by a new commit.
Cloud tools and SDKs:
Development tools:
Environment:
Attention: Please have a look on the Dockerfile in order to see full list of software tools installed.
One good option is to use the container is by creating one image with your non-root user that you use for Development as follows:
docker container run -ti --name <your-container-name> ccurcanu/cloud-tools
adduser <your-user-name> --uid <same-like-on-your-machine> # add --no-create-home if required
docker container ls -a # and see your container id and name <your container name>
docker container commit <container-id> <new-docker-image-name>
$ docker container run -ti --name <name> -v /home/<user-folder>:/home/<user-folder> <new-docker-image-name>
# su your-user # inside the container
Notes:
.bashrc and .bashrc_orig from /root folder inside it before creating the image.For configuring shell proxy you have to create the following files in your $HOME and run proxy built in command:
http://www.yourproxy.com:80)https://www.yourproxy.com:443)127.0.0.1,10.0.0.1)Beware that the content of those files will be exported to the shell variable having the same name like the file name. So pay attention with spaces after comma, or things that will mess up with shell export command.
Proxy command is defined in $HOME/.bashrc. proxy on will enable shell proxy if above mentioned files are existing. proxy off will unset the proxy environment variables.
For the lazy people, the following code snippet will help you to easily create the proxy files mentioned above:
#!/bin/bash
HTTP_PROXY="<fill-here-your-http-proxy>"
HTTPS_PROXY="<fill-here-your-https-proxy>"
NO_PROXY="<fill-here-the-list-of-no-proxy>"
echo $HTTP_PROXY > $HOME/.http_proxy
echo $HTTP_PROXY > $HOME/.HTTP_PROXY
echo $HTTPS_PROXY > $HOME/.https_proxy
echo $HTTPS_PROXY > $HOME/.HTTPS_PROXY
echo $NO_PROXY > $HOME/.NO_PROXY
echo $NO_PROXY > $HOME/.no_proxy
The easiest way to configure AWS Cloud access is to run aws configure which will prompt you for the setup.
Also you can create the configure your $HOME/.aws/credentials file as described here:
Configuring OCI console is done in a similar way like the AWS one by running oci setup config. Variables configured in the $HOME/.oci/config must be the following in order for the terraform environment to be successfully configured:
Based on those the following shell environment variables are exported automatically by shell setup_terraform_environ built in function:
Dockerfile has version 114.
Content type
Image
Digest
Size
531.1 MB
Last updated
over 5 years ago
docker pull ccurcanu/cloud-tools