** Make sure jenkin is in docker group **
sudo sudo usermod -aG docker $USER
sudo usermod -aG docker jenkins
** Update the docker.service **
Edit the following file : vi /usr/lib/systemd/system/docker.service
--- | |
- hosts: localhost | |
connection: local | |
become: true | |
gather_facts: true | |
vars_files: | |
- settings.yaml | |
vars: | |
proj_name: "devopscicd" | |
nginx_host: "devopscicd.xyz.com" |
version: '2.0' | |
services: | |
postresql_db: | |
build: | |
context: ./ansible/dev/docker/postgresql/ | |
volumes: | |
- ./ansible/dev/docker/postgresql/db:/var/lib/postgresql/data | |
ports: | |
- 5432:5432 | |
environment: |
** Make sure jenkin is in docker group **
sudo sudo usermod -aG docker $USER
sudo usermod -aG docker jenkins
** Update the docker.service **
Edit the following file : vi /usr/lib/systemd/system/docker.service
stage 'promotion'
def userInput = input(
id: 'userInput', message: 'Let\'s promote?', parameters: [
[$class: 'TextParameterDefinition', defaultValue: 'uat', description: 'Environment', name: 'env'],
[$class: 'TextParameterDefinition', defaultValue: 'uat1', description: 'Target', name: 'target']
])
echo ("Env: "+userInput['env'])
echo ("Target: "+userInput['target'])
node_version:=$(shell node -v) | |
npm_version:=$(shell npm -v) | |
timeStamp:=$(shell date +%Y%m%d%H%M%S) | |
.PHONY: install build archive test clean | |
show: | |
@ echo Timestamp: "$(timeStamp)" | |
@ echo Node Version: $(node_version) |
#This is a simple Hourly Chime/Clock app in python - useful for creatin hourly time | |
#reminder in raspberry pi or PC(cygwin). This should speak out system time | |
#rounded off to next 5 minutes. The sounds are to be placed in /sounds/ folder and should be named | |
#1.mp3, 2.mp3..... 12.mp3, the_time_now_is.mp3 etc accordingly. Can be recorded from Google Text to Speech | |
import time | |
import string | |
from sys import argv | |
from os import path | |
from pygame import mixer |
mysql: | |
image: mysql:latest | |
environment: | |
- MYSQL_ROOT_PASSWORD=secret | |
- MYSQL_DATABASE=redmine_production | |
redmine: | |
image: redmine:latest | |
links: | |
- mysql:mysql | |
ports: |
<html> | |
<head> | |
<title>Hello world</title> | |
<!-- Latest compiled and minified CSS --> | |
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" integrity="sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7" crossorigin="anonymous"> | |
<style type="text/css"> | |
.main_content,.rhs_nav{ | |
border:solid 1px #ccc; | |
} | |
</style> |