Giter VIP home page Giter VIP logo

devops_docker_image's Introduction

Build Status

LinkedIn Github Twitter Slack

########## How To Build Docker Image #############
##
##  Build image from Dockerfile. docker build -t denny/mytest:v1 --rm=true .
##  Run docker intermediate container:
##         docker run -t -d --privileged -h mytest --name my-test -p 5122:22 denny/mytest:v1 /usr/sbin/sshd -D
##         docker run -t -i --privileged -h mytest --name my-test denny/mytest:v1 /bin/bash
##
##  Commit local image:
##    docker commit -m "Initial version" -a "Denny Zhang<[email protected]>" e955748a2634 denny/osc:v1
##    # Get docker user credential first
##    docker login
##    docker push denny/mytest:v1
##    docker history denny/mytest:v1
##
##################################################

Test docker image with chef

echo "cookbook_path '/root/iamdevops/cookbooks'" > /root/client.rb
echo "{\"run_list\": [\"recipe[jenkins-auth::conf_jenkins]\"], \"os_basic\":{\"enable_firewall\":\"0\"}, \"jenkins_auth\":{\"jobs\":\"BuildRepoCode,UpdateSandbox,UpdateJenkinsItself\"}}" > /root/client.json

echo "{\"run_list\": [\"recipe[autotest-auth::default]\"]}" > /root/client.json
cd /root/test/master/iamdevops/cookbooks
git pull

chef-solo --config /root/client.rb -j /root/client.json

Code is licensed under MIT License.

devops_docker_image's People

Stargazers

 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.