Skip to content

Instantly share code, notes, and snippets.

View Aricg's full-sized avatar

Aric Gardner Aricg

View GitHub Profile
@Aricg
Aricg / gist:4ed35ad3fde0e44a89ca
Last active August 29, 2015 14:06
Debug for an bug report
###### STARTING THE CONTAINER:
Sep 08 10:44:03 hyperion.local docker[13188]: 2014/09/08 10:44:03 POST /v1.13/containers/create
Sep 08 10:44:03 hyperion.local docker[13188]: [87d65874] +job create()
Sep 08 10:44:03 hyperion.local kernel: device-mapper: thin: Creation of new snapshot 44 of device 30 failed.
Sep 08 10:44:03 hyperion.local kernel: EXT4-fs (dm-6): mounted filesystem with ordered data mode. Opts: discard
Sep 08 10:44:03 hyperion.local kernel: SELinux: initialized (dev dm-6, type ext4), uses xattr
Sep 08 10:44:03 hyperion.local kernel: device-mapper: thin: Creation of new snapshot 46 of device 45 failed.
Sep 08 10:44:03 hyperion.local docker[13188]: [87d65874] -job create() = OK (0)
Sep 08 10:44:03 hyperion.local docker[13188]: 2014/09/08 10:44:03 POST /v1.13/containers/c0ff44ef206cdd617fdfe394fab4ef63b26dc4d89163dd93395073114361083b/attach?stderr=1&stdin=1&stdout=1&stream=1
Sep 08 10:44:03 hyperion.local docker[13188]: [87d65874] +job container_inspect(c0ff44ef206cdd617fdfe394fab4ef63b26dc4d89163dd
@Aricg
Aricg / gist:ea399262ef07561e295b
Last active August 29, 2015 14:06
Buck Build gerrit and bugzilla-its
#Build its-bugzilla in a fresh fedora 20 container.
yum -y install ant curl zip unzip gcc gcc-c++ make maven git vim
if [[ ! -d BUILD ]];
then
mkdir BUILD
cd BUILD
fi
@Aricg
Aricg / gist:56420a7755e224cfc149
Created September 3, 2014 20:14
Two example spec files.
Name: libnetconf
Version: 0.8.0
Release: 1%{?dist}
Summary: NETCONF library in C
Group:foo
License: The BSD 3-Clause License
URL: https://code.google.com/p/libnetconf/
Source0: libnetconf-0.8.0.tar
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
Requires: libtool
@Aricg
Aricg / gist:5fd950c2d5846e2c1a66
Last active August 29, 2015 14:05
Netopeer-sl Docker image, centos6
from centos:centos6
run yum -y update
RUN yum -y install libxml2 libssh2-devel dbus-devel doxygen libcurl-devel git readline-devel gcc gcc-c++ make libxml2-devel libxslt-devel openssh-server libtool
run git clone https://code.google.com/p/libnetconf/
run git clone https://code.google.com/p/netopeer/
@Aricg
Aricg / gist:666f197bf015d4e6db78
Last active August 29, 2015 14:05
Install netopeer-sl on centos 6.5
yum -y update
yum -y install libxml2 libssh2-devel dbus-devel doxygen libcurl-devel git readline-devel gcc gcc-c++ make libxml2-devel libxslt-devel openssh-server libtool
git clone https://code.google.com/p/libnetconf/
git clone https://code.google.com/p/netopeer/
cd /libnetconf && ./configure --with-nacm-recovery-uid=0
I installed libnetconf from source, when compiling /netopeer/server-sl the library is not found due to some requirements in its make file.
Steps to reproduce
yum -y update
yum -y install libxml2 libssh2-devel dbus-devel doxygen libcurl-devel git readline-devel gcc gcc-c++ make libxml2-devel libxslt-devel libevent-devel openssh-server
git clone https://code.google.com/p/libnetconf/
git clone https://code.google.com/p/netopeer/
@Aricg
Aricg / Dockerfile
Last active August 29, 2015 14:05
Docker file for netopeer
from ubuntu:latest
run apt-get update
run apt-get install -y libxml2 libssh2-1 libdbus-1-dev doxygen libcurl4-gnutls-dev git libreadline-dev build-essential checkinstall libxml2-dev libxslt1-dev libssh2-1-dev libevent-dev openssh-server
run git clone https://code.google.com/p/libnetconf/
run git clone https://code.google.com/p/netopeer/
run cd /libnetconf && ./configure --with-nacm-recovery-uid=0
@Aricg
Aricg / gist:0add6e63aa993146cf84
Created August 28, 2014 23:50
Confused about build failure.
Works on my local box
Fedora release 20 (Heisenbug)
Docker version 1.1.2, build d84a070/1.1.2
Linux hyperion.local 3.15.9-200.fc20.x86_64 #1 SMP Sat Aug 9 09:02:55 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
Fails on a remote kvm server
Red Hat Enterprise Linux Server release 6.5 (Santiago)
Docker version 1.1.2, build d84a070/1.1.2
gerrit@45afacc0bac8:~/gerrit2.9/gerrit/plugins/its-base$ mvn package
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for com.googlesource.gerrit.plugins.its:its-base:jar:2.9-SNAPSHOT
[WARNING] 'dependencies.dependency.systemPath' for com.google.gerrit:gerrit-pgm:jar should use a variable instead of a hard-coded path /home/gerrit/gerrit2.9/gerrit/buck-out/gen/gerrit-pgm/lib__pgm__output/pgm.jar @ com.googlesource.gerrit.plugins.its:its-base-parent:2.9-SNAPSHOT, /home/gerrit/gerrit2.9/gerrit/plugins/its-base/pom.xml, line 284, column 17
[WARNING]
[WARNING] Some problems were encountered while building the effective model for com.googlesource.gerrit.plugins.its:its-base-parent:pom:2.9-SNAPSHOT
[WARNING] 'dependencies.dependency.systemPath' for com.google.gerrit:gerrit-pgm:jar should use a variable instead of a hard-coded path /home/gerrit/gerrit2.9/gerrit/buck-out/gen/gerrit-pgm/lib__pgm__output/pgm.jar @ line 284, column 17
[WARNING]
[WARNING
@Aricg
Aricg / gist:84a482af1f5ac6297e49
Created August 8, 2014 17:34
No change in netstat output ->
No change in netstat output ->
$ sudo docker run -i -t ubuntu:latest /bin/bash
#NotWorking
root@f438e250c939:/# netstat -rn
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
0.0.0.0 192.168.0.106 0.0.0.0 UG 0 0 0 eth0