terratest Docker & Self-Hosted Deployment

GitHub

Terratest is a Go library that makes it easier to write automated tests for your infrastructure code.

7,983 stars Go Go 113 files ยท ~85,936 tokens #aws#devops#docker#golang#packer#terraform#testing#testing-library
RAW Compose
1. Pull Image (DOCKERHUB) docker pull gruntwork-io/terratest
2. Docker Run (1-Click Launch) docker run -d --name terratest -p 4000:4000 --restart always gruntwork-io/terratest:latest
3. Podman Run podman run -d --name terratest -p 4000:4000 --restart always gruntwork-io/terratest:latest
4. Skopeo Inspect (Zero-Pull Manifest) skopeo inspect docker://docker.io/gruntwork-io/terratest:latest
5. ORAS Pull (OCI Artifact) oras pull gruntwork-io/terratest:latest
6. Compose Deployment docker compose up -d
docs/docker-compose.yml
Download .yml
version: '3'

services:
  web:
    build: .
    volumes:
      # Bind mount the working dir so the app reloads automatically every time you make a change
      # Note that we use 'delegated' to improve perf on OSX: https://docs.docker.com/docker-for-mac/osxfs-caching/
      - .:/src:delegated
      # Bind a Docker-only volume to the generated _site folder to make it clear we don't need to sync that folder
      # back to the host OS. That makes Jekyll in Docker work much faster.
      - generated_site:/src/_site
    ports:
      - "4000:4000"
      # Expose port for jekyll livereload
      - "35729:35729"
    environment:
      - JEKYLL_ENV=development

volumes:
  generated_site: