Giter VIP home page Giter VIP logo

docker_hcp_packer's Introduction

Docker HCP Packer

WIP

Repository that will build a simple Python docker image locally using Packer.

End goal:

  • Docker container will be published to Docker Hub and HCP Packer.
  • Terraform code will run that will reference the Docker container from the registry using the metadata stored in HCP Packer.

Requirements

Packer version: 1.8.4
Docker (mac): Docker version 20.10.17, build 100c701

Executing

The following three commands will initialize Packer, use Packer to build the image, and then run the image using Docker.

packer init .
packer build .
docker run -it python-packer:latest

docker_hcp_packer's People

Contributors

jshively37 avatar

Watchers

 avatar

docker_hcp_packer's Issues

HCP Integration

We would like the ability to publish image metadata to HCP Packer.

Branch protection

We would like to lock down main branch and only permit changes using a branching strategy.

Contributor should create a branch from main, test changes, and submit a PR to merge into main.

File copying

Determine if there Is there a way to copy a file over using the Docker section and run the pip install vs the multi provisioner steps.

GitHub Action - Deploy image Workflow

We would like the ability that when a PR is approved into main a GiitHub action runs that:

  • packer builds image
  • pushes image to docker hub
  • pushes image metadata to HCP Packer
  • updates the HCP Packer channel version for channel "latest"

GitHub Action - Linting

We would like a GitHub action that validates the packer file is valid and formatted correctly.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.