Skip to content

Instantly share code, notes, and snippets.

View dhrp's full-sized avatar

Thatcher dhrp

View GitHub Profile
@dhrp
dhrp / gist:4ce9c5cd7f52921f77253333437e33d6
Created July 13, 2017 08:08
Logoutput Rancher failing with MySQL
core@p1 ~ $ docker logs rancher_server |more
CATTLE_AGENT_PACKAGE_HOST_API_URL=/usr/share/cattle/artifacts/host-api.tar.gz
CATTLE_AGENT_PACKAGE_PYTHON_AGENT_URL=/usr/share/cattle/artifacts/go-agent.tar.gz
CATTLE_API_UI_URL=//releases.rancher.com/api-ui/1.0.8
CATTLE_CATTLE_VERSION=v0.181.13
CATTLE_CLUSTER_ADVERTISE_ADDRESS=10.80.94.1
CATTLE_DB_CATTLE_DATABASE=mysql
CATTLE_DB_CATTLE_MYSQL_HOST=gcp-europe-west1-cpu.2.dblayer.com
CATTLE_DB_CATTLE_MYSQL_NAME=rancher_packet
CATTLE_DB_CATTLE_MYSQL_PORT=15554
@dhrp
dhrp / run.sh
Created March 29, 2017 05:00
Entrypoint example of batch Dockerfile
#!/bin/sh
# Usage: $0 <inputfile.ext
#
# Program takes input from standard in, saves it
# and then lets PSSPred run with that inputfile
TMP_FILE=/tmp/input.txt
# Clean up the temp file
Request timeout for icmp_seq 29
Request timeout for icmp_seq 30
Request timeout for icmp_seq 31
Request timeout for icmp_seq 32
Request timeout for icmp_seq 33
Request timeout for icmp_seq 34
Request timeout for icmp_seq 35
Request timeout for icmp_seq 36
Request timeout for icmp_seq 37
Request timeout for icmp_seq 38
64 bytes from 185.56.60.5: icmp_seq=180 ttl=44 time=159.052 ms
64 bytes from 185.56.60.5: icmp_seq=181 ttl=44 time=159.519 ms
64 bytes from 185.56.60.5: icmp_seq=182 ttl=44 time=161.176 ms
64 bytes from 185.56.60.5: icmp_seq=183 ttl=44 time=159.463 ms
64 bytes from 185.56.60.5: icmp_seq=184 ttl=44 time=174.466 ms
64 bytes from 185.56.60.5: icmp_seq=185 ttl=44 time=159.582 ms
64 bytes from 185.56.60.5: icmp_seq=186 ttl=44 time=159.328 ms
64 bytes from 185.56.60.5: icmp_seq=187 ttl=44 time=167.389 ms
64 bytes from 185.56.60.5: icmp_seq=188 ttl=44 time=159.291 ms
ping: sendto: Network is down
@dhrp
dhrp / gist:984b473f31cb2ae3da03
Created May 30, 2014 23:16
dashboard list html
<div id="starred_repos" class="listing_container span span4andahalf">
<div class="listing_header">Starred Repositories</div>
<ul class="listing">
<li>
<span class="listing_stars">4</span>
<a href="http://localhost:8000/u/joffrey/base/">joffrey/base</a>
</li>
@dhrp
dhrp / governance.md
Created April 29, 2014 03:22
Docker Governence 0.4

Docker Governance Advisory Board: Draft Proposal Version

This is version 0.4 of this document. A later version of this document will be published by Docker for public comment on or April 30. A final draft is expected to be produced in June. All comments, corrections, and suggestions should be sent to governance@docker.com.

1.0 Background

The Docker project is experiencing incredible momentum in project growth, adoption, and contribution. As of April 15 2014, there are over 400 contributors, 95% of whom do not work for the project’s commercial sponsor. Large numbers of projects are being built on top of or incorporating Docker, and there is a large and growing community of users. The project was designed from the outset to have a very open structure, including open design, open contribution, and consistent use of tools across the project. Maintainers include both Docker, Inc. and non-Docker Inc. employees. Given the large numbers of contributors, users, and companies with a stake in the future of the p

@dhrp
dhrp / gist:7491438
Created November 15, 2013 20:56
Docker build from private repo
thatcher@blue1:~/Develop/tmp$ git clone git@github.com:dhrp/rectangle.im.git
Cloning into 'rectangle.im'...
remote: Counting objects: 65, done.
remote: Compressing objects: 100% (47/47), done.
remote: Total 65 (delta 14), reused 62 (delta 11)
Receiving objects: 100% (65/65), 24.72 KiB, done.
Resolving deltas: 100% (14/14), done.
thatcher@blue1:~/Develop/tmp$ docker build git://github.com:dhrp/rectangle.im.git
2013/11/15 20:56:16 Error: Error trying to use git: exit status 128 (fatal: unable to connect to github.com:
github.com: Servname not supported for ai_socktype
FROM ubuntu (None)
404 Client Error: Not Found
Traceback (most recent call last):
File "/home/highland_staging/env/local/lib/python2.7/site-packages/docker/client.py", line 337, in build
method(args)
File "/home/highland_staging/env/local/lib/python2.7/site-packages/docker/client.py", line 422, in cmd_from
img = self.client.inspect_image(name)
File "/home/highland_staging/env/local/lib/python2.7/site-packages/docker/client.py", line 178, in inspect_image
return self._result(self.get(self._url("/images/{0}/json".format(image_id))), True)
File "/home/highland_staging/env/local/lib/python2.7/site-packages/docker/client.py", line 37, in _result
@dhrp
dhrp / documentation-toc.txt
Created June 25, 2013 21:59
A introduction thing
introduction
what's here
one paragraph of introduction
desctiptions of important sections
one image with a pointer to high level overview
manifesto
high level overview
glossary
@dhrp
dhrp / insert.db.sql
Created June 25, 2013 08:57
mysql -f -uadmin -p****** admin_magento5 < db
Result of mysql import with -f (force) option
bash-3.2# mysql -f -uadmin -p********* admin_magento5 < db
ERROR 1062 (23000) at line 1374: Duplicate entry '1633-81-0' for key 2
ERROR 1062 (23000) at line 1409: Duplicate entry '1601-64-0' for key 2
ERROR 1062 (23000) at line 1479: Duplicate entry '1601-70-0' for key 2
ERROR 1062 (23000) at line 1575: Duplicate entry '1611-62-0' for key 2
ERROR 1062 (23000) at line 1647: Duplicate entry '1611-71-0' for key 2
ERROR 1062 (23000) at line 5169: Duplicate entry '3394-13' for key 2
ERROR 1062 (23000) at line 5237: Duplicate entry '956-12' for key 2