Code Monkey home page Code Monkey logo

smallest-secured-golang-docker-image's Introduction

Create the smallest secured golang docker image based on scratch or distroless

Read the related article : Create the smallest and secured golang docker image based on scratch or distroless

โœ“ usage: make [target]

build-distroless-static        - Build the smallest and secured golang docker image based on distroless static
build-distroless               - Build the smallest and secured golang docker image based on distroless
build-module                   - Build the smallest and secured golang docker image based on scratch
build-no-cache                 - Build the smallest and secured golang docker image based on scratch with no cache
build                          - Build the smallest and secured golang docker image based on scratch
deploy-to-gcp                  - deploy docker image to gcp cloud run
docker-pull                    - docker pull latest images
help                           - Show help message
ls                             - List 'smallest-secured-golang' docker images
push-to-aws                    - Push docker image to AWS Elastic Container Registry
push-to-azure                  - Push docker image to azurecr.io Container Registry
push-to-gcp                    - Push docker image to gcr.io Container Registry
run                            - Run the smallest and secured golang docker image based on scratch
scan                           - Scan for known vulnerabilities the smallest and secured golang docker image based on scratch

Quickstart

make build && make run

Pushing to AWS Elastic Container Registry

One of AWS ECR pain points is that you can only have one image per repository. However, each repository can have multiple versions of the same image. You will first need to create the repository in ECR, either from the console or from the command line.

The commands in the makefile assumes you have AWS cli properly configured. Either by having the following environment variables defined: AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY. Or by having run the aws configure command beforehand.

Two variables have a default value assigned: AWS_REGION and AWS_ACCOUNT_NUMBER. The AWS_ACCOUNT_NUMBER is a 12-digit number. Please see the official documentation if you need to find out your account number.

smallest-secured-golang-docker-image's People

Contributors

chemidy avatar clivern avatar dmaixner avatar jbleduigou avatar labiraus avatar soldiercorp avatar stevenacoffman avatar tarekas avatar

Watchers

 avatar  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.