Giter VIP home page Giter VIP logo

packer-aws-runner's Introduction

packer-aws-runner

Basic CICD node for using Hashicorp's Packer as GitLab runner in AWS. To make it as slim as possible the binaries for software other than AWS CLI are copied from a set of other containers, created specifically for compiling those tools.

What's included

GOSS

There are two versions of GOSS included: musl (default) and glibc based one. Former can be used to run checks from the packer container, while the latter one can be copied into the target system with packer and executed there.

In addition, there is an ARM64 goss version compiled for ARM64 architecture, which can be used to test from inside targets running on that platform.

Location of tools

  • /bin/dgoss
  • /bin/goss
  • /bin/goss-glibc
  • /bin/goss-glibc-arm64
  • /bin/packer
  • /bin/packer-provisioner-goss

Additional tools

  • bash
  • curl
  • git
  • jq
  • rsync

Quick start

With docker-compose

This should build the image, and drop you in a shell.

docker-compose run packer-aws-runner

Without docker-compose

docker build --tag packer-aws-runner:1.8.7 .
docker run -it packer-aws-runner:1.8.7

Building and publishing

Environment variable TAG controls the docker image tag, if omitted docker-compose will use latest.

To build a specific version, in addition to latest, you can run the following:

docker-compose build
docker-compose push
TAG='1.8.7' docker-compose build
TAG='1.8.7' docker-compose push

To build this image to run from a platform other than X86_64 (AMD64), specify it as such:

PLATFORM='linux/arm64' docker-compose build
PLATFORM='linux/arm64' docker-compose push
PLATFORM='linux/arm64' TAG='1.8.7' docker-compose build
PLATFORM='linux/arm64' TAG='1.8.7' docker-compose push

packer-aws-runner's People

Contributors

dominikborkowski avatar

Watchers

 avatar

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.