Giter Club home page Giter Club logo

docker-service's Introduction

Codefresh docker-service plugin

Use Codefresh docker-service plugin to create docker daemon and then use run on it any of docker build|run|... or docker-compose on your repository

codefresh/docker-service Docker Image details

includes docker, docker-machine and docker-compose

docker-service-create command accepts same parameters as docker-machine create (i.e --driver , --engine-opt, etc) and starts a docker daemon on a provider specified by "--driver" parameter - see https://docs.docker.com/machine/reference/create/ Then it saves docker-machine environment files to Codefresh Volume, so every docker command will use this created docker daemon

docker-service-delete command deletes all previously created docker-machine environment

docker-service-clean commands deletes all docker-machine data from Codefresh image - just cleans ${MACHINE_STORAGE_PATH}/ directory

Usage

Set environment variable and add the following step to your Codefresh pipeline:

---
version: '1.0'

steps:

  ...

  # 
  create-my-docker:
    image: codefreshplugins/docker-service
    commands: 
        - docker-service-create  --driver amazonec2 --amazonec2-instance-type m4.large my-docker
    
  build-on-my-docker:
    image: codefreshplugins/docker-service
    commands:
        - docker build -t mycompany/repo:${{CF_BRANCH}} ${{CF_VOLUME_PATH}}/

  run-on-my-docker:
    image: codefreshplugins/docker-service
    commands:
        - docker run -d mycompany/repo:${{CF_BRANCH}}


  delete-my-docker:
     image: codefreshplugins/docker-service
     commands:
        - docker-service-delete my-docker

  clean:
     image: codefreshplugins/docker-service
     commands:
        - docker-service-clean
  ...

Environment Variables

docker-service's People

Contributors

kosta-codefresh avatar alex-codefresh avatar superfresh 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.