-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathDockerfile
30 lines (25 loc) · 860 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
from ubuntu:12.04
maintainer Scott Nelson "[email protected]"
run apt-get update
run apt-get install -y python-software-properties git wget build-essential
# Go
run add-apt-repository -y ppa:duh/golang
run apt-get update
run apt-get install -y golang
run mkdir /go
env GOPATH /go
# LevelDB
run wget https://leveldb.googlecode.com/files/leveldb-1.13.0.tar.gz --no-check-certificate
run tar -zxvf leveldb-1.13.0.tar.gz
run cd leveldb-1.13.0; make
run cp -r leveldb-1.13.0/include/leveldb /usr/include/
run cp leveldb-1.13.0/libleveldb.* /usr/lib/
# Queued
run mkdir -p /queued/src
run git clone https://github.com/scttnlsn/queued.git /queued/src
run go get github.com/jmhodges/levigo
run go get github.com/gorilla/mux
run cd /queued/src; make
run cp /queued/src/build/queued /usr/bin/queued
expose 5353
entrypoint ["/usr/bin/queued", "-db-path=/queued/db"]