Skip to content

Instantly share code, notes, and snippets.

View VireshDoshi's full-sized avatar
💭
working

Viresh Doshi VireshDoshi

💭
working
  • London
View GitHub Profile
@VireshDoshi
VireshDoshi / execution output
Last active February 18, 2018 20:51
Ansible playbook with_file demo
[vdo023@localhost loop_with_file]$ ansible-playbook -i "localhost," -c local ./with_files-playbook.yml
PLAY [localhost] **********************************************************************************************************************************
TASK [Gathering Facts] ****************************************************************************************************************************
ok: [localhost]
TASK [create a file number 1 for this example] ****************************************************************************************************
ok: [localhost]
@VireshDoshi
VireshDoshi / Dockerfile
Created February 18, 2018 13:46
Dockerfile for node apps with devops tools baked in like git, terraform and packer
FROM node:8.9.4
RUN mkdir /root/packer
WORKDIR /root/packer
RUN wget https://releases.hashicorp.com/packer/1.1.3/packer_1.1.3_linux_amd64.zip
RUN wget https://releases.hashicorp.com/terraform/0.11.1/terraform_0.11.1_linux_amd64.zip
RUN apt-get update \
@VireshDoshi
VireshDoshi / Jenkinsfile
Last active September 19, 2021 05:38
Jenkinsfille configuration - build and push image to docker hub
node {
def myImage
stage('Clone repository') {
/* Let's make sure we have the repository cloned to our workspace */
dir('.') {
git url: 'https://github.com/VireshDoshi/jen-build-node-app-aws.git'
}
}
@VireshDoshi
VireshDoshi / bash
Created February 1, 2018 10:12
command to startup containerised Jenkins
docker run -p 8080:8080 -p 50000:50000 jenkins/jenkins:latest