Giter VIP home page Giter VIP logo

devops-experiments's People

Contributors

savishy avatar

Stargazers

 avatar

Watchers

 avatar  avatar

devops-experiments's Issues

Consider *not* using jenkins as base-image for jenkins container

Some of the issues encountered with Jenkins CLI could be because we used Jenkins CLI as the base image).

eg see commit 2359a19 - I am encountering https://issues.jenkins-ci.org/browse/JENKINS-25858
java.io.IOException: Unexpected termination of the channel.
Observations:

  • Using Jenkins CLI to build a job fails when using a Jenkins container.
  • However, when Jenkins is locally installed, it worked.

So possibly it could be the way Jenkins is set up in the base image?

use vagrant box supported for both aws and virtualbox

It's a wiser approach to do the following

  • use a box supported on both aws and virtualbox
  • perconajayj/centos64 is one example; there are many others but I chose this because it is small sized (good for my internet connection) and has centos (which is closer to amazon linux).
  • when developing the Vagrant/Ansible/Docker recipes, use the virtualbox provider. To test it, use the aws provider.

think: how/when will the first WAR be deployed?

In #5 two containers are created on the host.
The tomcat container does not contain a WAR of the application initially - it is just a stub application.

Need to figure out a way (e.g. using jenkins-cli.jar) to trigger a first run of the Jenkins job.

  • This will build a WAR;
  • Then deploy the WAR to the Tomcat Docker container.

docker credentials and docker push

While working on #10 I am encountering the following issue

  • to be able to docker push, a credentials is needed to be pre-stored in the jenkins container.
  • I created a set of credentials (for docker hub) in Jenkins in the credentials module.
  • this output a credentials.xml in JENKINS_HOME, which I then extracted.
  • I am pushing this credentials XML into JENKINS_HOME while building the Jenkins image
  • However, it seems the same encoding is not used everytime so the credentials.xml is not valid across Jenkins installations.
  • i.e pulling this from one running Jenkins instance, then pushing it into a different instance does not seem to work.

As a result, docker push does not work unless you manually edit the credentials through UI before docker-pushing .

Notes:

  • have tried using jenkins-cli. Could not figure out (despite trying for hours) how to use create-credentials-by-xml.
  • have tried using the docker remote API call as well (curl -X POST /images/name/push). Encountering weird login issue."
    [attempt-2 053aca1] #10 encountering issue #11 - to be able to docker push, a credentials is needed to be pre-stored in the jenkins container. - I created a set of credentials (for docker hub) in Jenkins in the credentials module. - this output a credentials.xml in JENKINS_HOME, which I then extracted. - I am pushing this credentials XML into JENKINS_HOME while building the Jenkins image - However, it seems the same encoding is not used everytime so the credentials.xml is not valid across Jenkins installations. - i.e pulling this from one running Jenkins instance, then pushing it into a different instance does not seem to work.

self-contained monitoring capabilities

As the Docker image is created, we need to package monitoring capabilities into it.

This will involve a monitoring instance (maybe built with the ELK or EFK stack). The docker image should be configured to push logs etc to it so that we get metrics on uptime, I/O and throughput.

attempt-3

  • Jobs managed with Jenkins Pipeline

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.