savishy / devops-experiments Goto Github PK
View Code? Open in Web Editor NEWExamples of using the DevOps toolchain in different configurations
License: Apache License 2.0
Examples of using the DevOps toolchain in different configurations
License: Apache License 2.0
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:
So possibly it could be the way Jenkins is set up in the base image?
Jenkins can be insecure. Need to use OpenSSL on these lines: https://github.com/hughperkins/howto-jenkins-ssl
Ansible playbook needs to reference http://github.com/savishy/ansible-roles for most part instead of reinventing the wheel.
The playbook should also modify EC2 security group.
Etc.
It's a wiser approach to do the following
virtualbox
provider. To test it, use the aws
provider.For #15 I need to start multiple instances. Need to modify Vagrantfile
appropriately.
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.
The v0.2
tag needs to be reproduced with Chef as well instead of Ansible.
To make things easily changeable (e.g. changing ports, usernames, folder locations etc) the Dockerfiles should be ansible-managed.
Vagrantfile + AWS Configuration + Invocation of Ansible Playbook. This part was done before but needs reverification.
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.
Instead of deploying the built WAR file as a post-build step, the Jenkins job should create a selfcontained image (tomcat + WAR) and push it to Docker Hub.
The playbook for tomcat should then pull from Docker Hub.
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.