Skip to content

Instantly share code, notes, and snippets.

View brgnepal's full-sized avatar

Budh Ram Gurung (BRG) brgnepal

View GitHub Profile
@brgnepal
brgnepal / logs_successful_restart.md
Created September 18, 2017 05:26
Logs of successful restart of VM

Successful Build

======== before umount ===========
ls -la /var/lib ========== \n total 104
drwxr-xr-x. 26 root root    4096 Sep 18 01:03 .
drwxr-xr-x. 19 root root    4096 Sep 18 01:08 ..
drwx------.  2 root root    4096 Sep 18 01:09 NetworkManager
drwxr-xr-x.  2 root root    4096 Sep 18 01:02 alternatives
drwxr-xr-x.  3 root root    4096 Sep 18 00:58 atomic
drwxr-xr-x.  2 root root    4096 Nov  6  2016 dbus
@brgnepal
brgnepal / push-to-registry.md
Created September 15, 2017 09:05
docker push to openshift docker registry

Without addon

$ docker build -t demoapp .
Sending build context to Docker daemon   172 kB
Step 1 : FROM python
 ---> 6b531d93e9f6
Step 2 : MAINTAINER Michael Hausenblas
 ---> Running in 931eac5a2c79
 ---> eea3f22d6077
@brgnepal
brgnepal / dockerlogs.sh
Last active September 8, 2017 13:13
docker logs
# ---- systemctl status docker
* docker.service - Docker Application Container Engine
Loaded: loaded (/etc/systemd/system/docker.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Wed 2017-09-06 11:28:59 EDT; 12min ago
Docs: http://docs.docker.com
Process: 1508 ExecStart=/usr/bin/dockerd-current -H tcp://0.0.0.0:2376 -H unix:///var/run/docker.sock --selinux-enabled --log-driver=journald --signature-verification=false --add-runtime docker-runc=/usr/libexec/docker/docker-runc-current --default-runtime=docker-runc --exec-opt native.cgroupdriver=systemd --userland-proxy-path=/usr/libexec/docker/docker-proxy-current --storage-driver devicemapper --tlsverify --tlscacert /etc/docker/ca.pem --tlscert /etc/docker/server.pem --tlskey /etc/docker/server-key.pem (code=exited, status=1/FAILURE)
Process: 1485 ExecStartPre=/opt/cert-gen.sh (code=exited, status=0/SUCCESS)
Main PID: 1508 (code=exited, status=1/FAILURE)
Sep 06 11:28:56 localhost.localdomain systemd[1]: Starting
@brgnepal
brgnepal / multiple_instances.sh
Created September 6, 2017 10:22
error in multiple instance
$ rm -rf ~/.minishift/
$ ls ~/.minishift -l
ls: cannot access '/home/budhram/.minishift': No such file or directory
$ minishift start --profile budhrg
-- Installing default add-ons ... OK
-- Checking if KVM driver is installed ...
Driver is available at /usr/local/bin/docker-machine-driver-kvm ...
Checking driver binary is executable ... OK
@brgnepal
brgnepal / minikube_iso.sh
Created August 24, 2017 08:22
Logs for `make out/minikube.iso`
This file has been truncated, but you can view the full file.
# .................. couldn't copy as lines above are truncated due to less buffer probably ............
patching file gcc/config/xtensa/uclinux.h
patching file gcc/config/xtensa/uclinux.opt
patching file libgcc/config.host
Hunk #1 succeeded at 1275 (offset -20 lines).
Applying 875-xtensa-implement-trap-pattern.patch using patch:
patching file gcc/config/xtensa/xtensa.h
patching file gcc/config/xtensa/xtensa.md
Hunk #2 succeeded at 1767 (offset 3 lines).
@brgnepal
brgnepal / crypto.go
Created June 23, 2017 08:49
go 1.7.6 crypto.go
14:13 $ cat /usr/lib/golang/src/crypto/crypto.go
// Copyright 2011 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// Package crypto collects common cryptographic constants.
package crypto
import (
"hash"
@brgnepal
brgnepal / minishift-update.sh
Created May 22, 2017 08:21
Minishift update
$ minishift version
Minishift version: 1.0.0
$ minishift start --memory 4096
Starting local OpenShift cluster using 'kvm' hypervisor...
Downloading OpenShift binary 'oc' version 'v1.5.1'
19.96 MiB / 19.96 MiB [==========================================================================================================================] 100.00% 0s
-- Checking OpenShift client ... OK
-- Checking Docker client ... OK
-- Checking Docker version ... OK
@brgnepal
brgnepal / bash_completion.sh
Created April 10, 2017 07:15
Bash completion
[budhram@dhcp35-83 minishift]$ minishift completion -h
Outputs minishift shell completion for the given shell (bash)
This depends on the bash-completion binary. Example installation instructions:
OS X:
$ brew install bash-completion
$ source $(brew --prefix)/etc/bash_completion
$ minishift completion bash > ~/.minishift-completion
$ source ~/.minishift-completion
@brgnepal
brgnepal / budh-ruby-app.png
Last active April 6, 2017 06:00
Staging your application with the OpenShift registry
budh-ruby-app.png
@brgnepal
brgnepal / issues.md
Last active April 3, 2017 14:22
Issues display in release page
  • Issue #342 ( bug ) - Update service command to be based on app routes
  • Issue #466 ( bug ) - Improve the manual install steps for xhyve driver
  • Issue #579 ( bug ) - CentOS CI test fail due to linkage errors
  • Issue #588 ( bug ) - Plain docker mode: port mapping doesn't seem to work
  • Issue #594 ( bug ) - Permission denied error on make clean for docs/build dir content
  • Issue #177 ( feature ) - Provide mechanism to configure OpenShift
  • Issue #359 ( feature ) - Introduce context \minishift\
  • Issue #511 ( feature ) - Add a version command as openshift subcommand
  • Issue [#139](https://