Giter Club home page Giter Club logo

ci-docker-build's Introduction

CI build Docker: build Docker image

CI Docker which builds docker images.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

In order to develop / test, you need the following tools installed:

Built With

  • Docker

Build Docker

# Build the Docker locally
#  -- see output how to run this Docker on your machine
$ make image

# Push Docker to the Docker Registry
$ make push

Deployment

Use the Docker image in your CI tooling - you need to specify the following as part of your build:

  • release-manifest.json - defines the set of artefacts to be included in the release.

Release manifest definition

A release consists of a name, version, type (full or update), description and a list of artefacts:

{
   "name": "my-release",
   "version": "x.y.z",
   "type": "full",
   "description": "Adds features a, b, c.",
   "platform": "openshift",
   "artefacts": {
      "artefact": [
         {
            "name": "my-web-app",
            "version": "x.y.z"
         },
         {
            "name": "my-service-1",
            "version": "x.y.z"
         },
         {
            "name": "my-service-2",
            "version": "x.y.z"
         }
      ]
   }
}

CircleCI - build release

Just copy the YAML into your build definition:

jobs:

  # Validate the downloaded release
  deploy_release:
    docker:
      - image: rdclda/ci-docker-build
    working_directory: ~/release
    steps:
      - attach_workspace:
          # Must be absolute path or relative path from working_directory
          at: ~/release

      # Retrieve the artefacts
      - run:
          name: Validate the artefacts
          command: |
            validate-release \
              --source=./artefacts \
              --manifest=./artefacts/release-manifest.json

...and enable to export step in the overall flow:

# TODO

Contributing

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.

Versioning

We use SemVer for versioning. For the versions available, see the tags on this repository.

Authors

See also the list of contributors who participated in this project.

License

This project is licensed under the Apache License - see the LICENSE file for details

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.