Skip to content

Instantly share code, notes, and snippets.

View md5's full-sized avatar

Mike Dillon md5

  • Southern California
  • 18:32 (UTC -07:00)
View GitHub Profile
@md5
md5 / Dockerfile
Last active August 29, 2015 14:13
Cache-Control test
FROM ruby
RUN mkdir /app
RUN gem install sinatra
WORKDIR /app
ADD app.rb /app/
CMD ["ruby", "app.rb"]
EXPOSE 4567
@md5
md5 / Dockerfile
Last active August 29, 2015 14:14
Dockerfile for derived postgis image
FROM mdillon/postgis:9.3
# Add init script
ADD initdb-foo.sh /docker-entrypoint-initdb.d/xxx_postgis_foo.sh
# Add locale
RUN localedef -i nb_NO -c -f UTF-8 -A /usr/share/locale/locale.alias nb_NO.UTF-8
ENV LANG nb_NO.utf8
@md5
md5 / 00_README.md
Last active May 18, 2024 22:27
Demonstration Docker config for Wordpress on PHP-FPM behind Nginx

Proof of concept setup for Wordpress running under PHP-FPM with an Nginx frontend

Usage

Build a copy of this image:

git clone git://github.com/d9206eacb5a0ff5d6be0.git docker-nginx-fpm
cd docker-nginx-fpm
docker build -t nginx-fpm .
Sending build context to Docker daemon 4.096 kB
Sending build context to Docker daemon
Step 0 : FROM debian:jessie
---> 0e30e84e9513
Step 1 : MAINTAINER Synctree App Force <appforce+docker@synctree.com>
---> Using cache
---> 2ea9f508dac8
Step 2 : RUN echo 'deb http://packages.erlang-solutions.com/debian jessie contrib' > /etc/apt/sources.list.d/esl.list
---> Using cache
--- /dev/fd/63 2015-03-19 07:35:32.000000000 -0700
+++ /dev/fd/62 2015-03-19 07:35:32.000000000 -0700
@@ -9,14 +9,9 @@
ii base-files 8 amd64 Debian base system miscellaneous files
ii base-passwd 3.5.37 amd64 Debian base system master password and group files
ii bash 4.3-11+b1 amd64 GNU Bourne Again SHell
-ii binutils 2.25-5 amd64 GNU assembler, linker and binary utilities
ii bsdutils 1:2.25.2-5 amd64 basic utilities from 4.4BSD-Lite
-ii build-essential 11.7 amd64 Informational list of build-essential packages
-ii bzip2 1.0.6-7+b2 amd64 high-quality block-sorting file compressor - utilities
@md5
md5 / gist:d42e97ab7a0bd656f09a
Created March 18, 2015 23:22
HBase checksum failure
$ HADOOP_ROOT_LOGGER="TRACE,console" hdfs dfs -cat /hbase/mytable/67e74c08760b2b9ece01ee80573b2d27/mycf/0749920f2624428c98a3d5e213ded7fc > /dev/null'
...
15/03/18 22:52:52 TRACE hdfs.DFSClient: Address /10.96.4.22:50010 is local
15/03/18 22:52:52 INFO hdfs.DFSClient: Successfully connected to /10.96.4.22:50010 for BP-920812741-10.227.207.1-1402337163878:blk_-5555379348506809837_16582860
15/03/18 22:52:52 TRACE datatransfer.PacketReceiver: readNextPacket: dataPlusChecksumLen = 66048 headerLen = 25
15/03/18 22:52:52 TRACE hdfs.RemoteBlockReader2: DFSClient readNextPacket got header PacketHeader with packetLen=66048 header data: offsetInBlock: 63504384
seqno: 0
lastPacketInBlock: false
dataLen: 65536
@md5
md5 / Dockerfile
Last active August 29, 2015 14:18
Q&D hhvm Dockerfile
FROM debian:jessie
RUN apt-key adv --recv-keys --keyserver pool.sks-keyservers.net \
0x5a16e7281be7a449
RUN echo 'deb http://dl.hhvm.com/debian jessie main' > /etc/apt/sources.list.d/hhvm.list
ENV HHVM_VERSION 3.6.1
ENV HHVM_DEBIAN_VERSION 3.6.1~jessie
@md5
md5 / 00_README.md
Last active February 21, 2017 06:38
$ docker build -t java-utf8-test --no-cache  .
  nding build context to Docker daemon 47.62 kB
Sending build context to Docker daemon 
Step 0 : FROM java:8-jdk
 ---> 1fc1263652ea
Step 1 : ADD TestUtf8.java /src/
 ---> c5d7dabbce96
Removing intermediate container 21cc173682b4
Step 2 : WORKDIR /src
one:
image: elasticsearch
ports:
- "19300:9300"
command:
- "--node.name=one"
- "--network.publish_host=192.168.99.100"
- "--transport.publish_port=19300"
- "--discovery.zen.fd.ping_interval=10s"
- "--discovery.zen.ping.multicast.enabled=false"