Giter Club home page Giter Club logo

cimg-base-buildx's Introduction

cimg-base-buildx

Did you ever want to use the new buildx features in CircleCI, but didn't find a good base image? This is the solution to your problem, you can just download this repository and create a new base image as often as you desire.

If you don't want to build it yourself, there is also a version of this on DockerHub. The tag is always like this: ${CIMG_VERSION}-${BUILDX_VERSION}. This means that e.g. 2tefan/cimg-base-buildx:stable-18.04-0.4.1 is using cimg version stable-18.04 and it is using buildx version 0.4.1.

Building

To build a new image, you can just use the build.sh script. This will build with the default cimg & buildx version (currently stable-18.04 & 0.4.1), but you can specify them with the following arguments:

Arguments

To set the cimg version:

  • --cimg=
  • --cimg-version=
  • --cv=
  • --CIMG_VERSION=

To set the buildx version:

  • --buildx=
  • --buildx-version=
  • --bv=
  • --BUILDX_VERSION=

If you want the script to automatically upload the image to dockerhub, you can specify the docker repository and if you want it to be pushed:

To set the docker repository:

  • --dockerrepo=
  • --docker-repository=
  • --dr=
  • --DOCKER_REPOSITORY=

If you want to push it:

  • --push
  • -p

Example

To build it with cimg version stable-18.04, buildx version 0.4.1 and push it to 2tefan/cimg-base-buildx:stable-18.04-0.4.1 the following command would be needed:

./build.sh -p --cimg=stable-18.04 --buildx=0.4.1 --dockerrepo=2tefan/cimg-base-buildx

But because the default values could also be used, it can be shortened to:

./build.sh -p

cimg-base-buildx's People

Contributors

2tefan avatar

Watchers

James Cloos 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.