Skip to content

Instantly share code, notes, and snippets.

View diatmpravin's full-sized avatar

Pravin Mishra diatmpravin

View GitHub Profile
@diatmpravin
diatmpravin / jenkins-docker
Created November 3, 2016 02:58
Jenkins: Can't connect to Docker daemon
After the installation of Jenkins and Docker. Add jenkins user to dockergroup (like you did)
sudo gpasswd -a jenkins docker
Edit the following file
vi /usr/lib/systemd/system/docker.service
{
"id": "jenkins",
"cmd": null,
"cpus": 1,
"mem": 512,
"disk": 1000,
"instances": 1,
"container": {
"docker": {
"image": "jenkins",
@diatmpravin
diatmpravin / jenkins-json-with-volume
Created April 2, 2016 09:51
jenkins-json-with-volume
{
"id": "jenkins",
"cmd": "cd jenkins-mesos-deployment-master && ./jenkins-standalone.sh -z $(cat /etc/mesos/zk) -r 10.1.0.18:6379",
"cpus": 1,
"mem": 1024,
"disk": 1024,
"instances": 1,
"ports": [
0
],
@diatmpravin
diatmpravin / mesos-jenkins-marathon
Created March 31, 2016 19:17
mesos-jenkins-marathon json
{
"id": "jenkins",
"cmd": "cd jenkins-standalone-master && ./jenkins-standalone.sh -z $(cat /etc/mesos/zk) -r 127.0.0.1:6379",
"cpus": 0.5,
"mem": 256,
"disk": 1024,
"instances": 1,
"ports": [
0
],
go get -u -v gopkg.in/natefinch/lumberjack.v2
Fetching https://gopkg.in/natefinch/lumberjack.v2?go-get=1
Parsing meta tags from https://gopkg.in/natefinch/lumberjack.v2?go-get=1 (status code 200)
get "gopkg.in/natefinch/lumberjack.v2": found meta tag main.metaImport{Prefix:"gopkg.in/natefinch/lumberjack.v2", VCS:"git", RepoRoot:"https://gopkg.in/natefinch/lumberjack.v2"} at https://gopkg.in/natefinch/lumberjack.v2?go-get=1
gopkg.in/natefinch/lumberjack.v2 (download)
gopkg.in/natefinch/lumberjack.v2
@diatmpravin
diatmpravin / java_offline_buildpack
Created April 27, 2015 07:17
java offline buuildpack
elpsstu@6N0Z022:~/workspace/buildpack/java-buildpack$ rvm use ruby-1.9.3-p547
Using /home/elpsstu/.rvm/gems/ruby-1.9.3-p547
elpsstu@6N0Z022:~/workspace/buildpack/java-buildpack$ rvm list
rvm rubies
ruby-1.8.7-p374 [ x86_64 ]
ruby-1.9.1-p431 [ x86_64 ]
=> ruby-1.9.3-p547 [ x86_64 ]
ruby-2.0.0-p195 [ x86_64 ]
# On branch master
# Changes not staged for commit:
# (use "git add <file>..." to update what will be committed)
# (use "git checkout -- <file>..." to discard changes in working directory)
#
# modified: web/dashboard/node_modules/grunt-contrib-connect/node_modules/connect/node_modules/body-parser/node_modules/on-finished/node_modules/ee-first/LICENSE
# modified: web/dashboard/node_modules/grunt-contrib-connect/node_modules/connect/node_modules/body-parser/node_modules/on-finished/node_modules/ee-first/README.md
# modified: web/dashboard/node_modules/grunt-contrib-connect/node_modules/connect/node_modules/body-parser/node_modules/on-finished/node_modules/ee-first/index.js
# modified: web/dashboard/node_modules/grunt-contrib-connect/node_modules/connect/node_modules/body-parser/node_modules/raw-body/LICENSE
# modified: web/dashboard/node_modules/grunt-contrib-connect/node_modules/connect/node_modules/finalhandler/node_modules/on-finished/node_modules/ee-first/LICENSE
D, [2015-03-19T06:01:53.847340 #8589] [task:296] DEBUG -- : Acquired connection: 44478040
D, [2015-03-19T06:01:53.847695 #8589] [task:296] DEBUG -- : (0.000233s) SELECT * FROM "tasks" WHERE "id" = 296
D, [2015-03-19T06:01:53.848068 #8589] [task:296] DEBUG -- : Released connection: 44478040
D, [2015-03-19T06:01:53.948256 #8589] [task:296] DEBUG -- : Acquired connection: 44478040
D, [2015-03-19T06:01:53.948610 #8589] [task:296] DEBUG -- : (0.000248s) SELECT * FROM "tasks" WHERE "id" = 296
D, [2015-03-19T06:01:53.948964 #8589] [task:296] DEBUG -- : Released connection: 44478040
D, [2015-03-19T06:01:54.049156 #8589] [task:296] DEBUG -- : Acquired connection: 44478040
D, [2015-03-19T06:01:54.049490 #8589] [task:296] DEBUG -- : (0.000230s) SELECT * FROM "tasks" WHERE "id" = 296
D, [2015-03-19T06:01:54.049838 #8589] [task:296] DEBUG -- : Released connection: 44478040
E, [2015-03-19T06:01:54.061176 #8589] [compile_package(memcached/cb508a2dc25a3aeafacddbd43574f300a50101da, bosh-openstack-kvm-ubuntu/2427)] ERROR -- :
@diatmpravin
diatmpravin / cf-180-deployment.yml
Created December 12, 2014 11:54
cf-180-deployment.yml
<%
director_uuid = "09615bb6-cbd8-42d1-89a7-3cf324b5395c"
static_ip = "137.172.74.90"
root_domain = "mycloud1.com"
deployment_name = "cf-180"
cf_release = "180"
protocol = "https"
common_password = "c1oudc0w"
stemcell_name = "bosh-openstack-kvm-ubuntu-trusty-go_agent"
%>
@diatmpravin
diatmpravin / cf-178-deployment.yml
Created December 12, 2014 11:39
cf-178-deployment.yml
<%
director_uuid = "09615bb6-cbd8-42d1-89a7-3cf324b5395c"
static_ip = "137.172.74.90"
root_domain = "mycloud1.com"
deployment_name = "cf-178"
cf_release = "178"
protocol = "http"
common_password = "c1oudc0w"
stemcell_name = "bosh-openstack-kvm-ubuntu-trusty-go_agent"
%>