GithubHelp home page GithubHelp logo

jenkins-pipeline's Introduction

jenkins-pipeline

ec2 without ecs

setup: win8.1, docker-tool-box, babun on windows/macOS prerequisites: an aws-node with docker installed on the node and a running registry on it (created with docker-machine, node should be running)

# connect to the node:
docker-machine ssh <your node>
# get admin
sudo su
# add a visualizer
# TODO evtl. clone not needed
git clone git://github.com/dockersamples/docker-swarm-visualizer
cd docker-swarm-visualizer
# create a swarm
docker swarm init
(TODO check why needed?!?!
docker swarm init --advertise-addr 192.168.99.100
)
docker service create \
  --name=viz \
  --publish=8081:8080/tcp \
  --constraint=node.role==manager \
  --mount=type=bind,src=/var/run/docker.sock,dst=/var/run/docker.sock \
  dockersamples/visualizer

docker service list

docker service create \
       --name jenkins-master \
       --mount type=bind,target=/var/run/docker.sock,src=/var/run/docker.sock \
       --publish 50000:50000 \
       --publish 8080:8080 \
       timplm/jenkins-docker

(docker exec -it <c-id> bash)
docker exec -it
TODO test if nano is installed in the image
cat /var/jenkins_home/secrets/initialAdminPassword

to stop it:
docker service rm jenkins-master


sources:

pipeline:
https://jenkins.io/doc/book/pipeline/syntax/

jenkins-config:
https://antonfisher.com/posts/2017/01/16/run-jenkins-in-docker-container-with-persistent-configuration/
https://gist.github.com/cenkalti/5089392

backround info:
https://engineering.riotgames.com/news/docker-jenkins-data-persists
https://github.com/dockersamples/docker-swarm-visualizer
http://jpetazzo.github.io/orchestration-workshop/#1
http://www.catosplace.net/blog/2015/02/11/running-jenkins-in-docker-containers/
https://forums.docker.com/t/docker-swarm-mode-and-local-images/22894/4

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.