https://github.com/boltops-tools/terraspace-dockerfiles
Terraspace Dockerfiles
https://github.com/boltops-tools/terraspace-dockerfiles
Last synced: about 1 year ago
JSON representation
Terraspace Dockerfiles
- Host: GitHub
- URL: https://github.com/boltops-tools/terraspace-dockerfiles
- Owner: boltops-tools
- License: apache-2.0
- Created: 2020-11-27T15:49:36.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-03-20T18:08:58.000Z (about 3 years ago)
- Last Synced: 2025-03-29T08:11:33.342Z (about 1 year ago)
- Language: Shell
- Size: 25.4 KB
- Stars: 4
- Watchers: 1
- Forks: 3
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Terraspace Dockerfiles
[](https://www.boltops.com)
This repo contains Dockerfiles that include [Terraspace](https://terraspace.cloud/). You can use it try out Terraspace within an isolated Docker container.
The Docker images are published to Dockerhub daily. The images generally include the latest version of Terraspace and Terraform.
For more docs, see: [Terraspace Docker Docs](https://terraspace.cloud/docs/install/docker/)
## Usage
To run the terraspace docker container:
docker run --rm -ti ghcr.io/boltops-tools/terraspace
The default OS is the ubuntu. To run with different OSes:
docker run --rm -ti ghcr.io/boltops-tools/terraspace:alpine
docker run --rm -ti ghcr.io/boltops-tools/terraspace:amzn2
docker run --rm -ti ghcr.io/boltops-tools/terraspace:centos
docker run --rm -ti ghcr.io/boltops-tools/terraspace:debian
docker run --rm -ti ghcr.io/boltops-tools/terraspace:fedora
docker run --rm -ti ghcr.io/boltops-tools/terraspace:ubuntu
## Updating Images
The Docker images are built daily. So remember to update the cached Docker images if you've pulled them before:
docker pull ghcr.io/boltops-tools/terraspace
docker pull ghcr.io/boltops-tools/terraspace:alpine
docker pull ghcr.io/boltops-tools/terraspace:amzn2
docker pull ghcr.io/boltops-tools/terraspace:centos
docker pull ghcr.io/boltops-tools/terraspace:debian
docker pull ghcr.io/boltops-tools/terraspace:fedora
docker pull ghcr.io/boltops-tools/terraspace:ubuntu
## Run Terraspace in Docker Container
You probably want to test your cloud credentials. One way to do this is to mount your credentials as a volume. Example:
docker run --rm -ti -v $HOME/.aws:/root/.aws ghcr.io/boltops-tools/terraspace:ubuntu
From there, you probably want to export your AWS_PROFILE.
export AWS_PROFILE=tung
You can also provide an env file with the AWS_PROFILE already set, IE:
env.dev
AWS_PROFILE=tung
Then to use the env file:
docker run --rm -ti --env-file env.dev -v $HOME/.aws:/root/.aws ghcr.io/boltops-tools/terraspace:ubuntu
## Test Terraspace
Here are some quick-start example commands to test out terraspace.
>>> docker run --rm -ti --env-file env.dev -v $HOME/.aws:/root/.aws ghcr.io/boltops-tools/terraspace:ubuntu
terraspace new project infra --examples
cd infra
terraspace up demo -y
terraspace down demo -y
## More Docs
* [Build Images](readme/build-images.md)