Skip to content

Commit

Permalink
initial dockerfile try
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaley committed Aug 23, 2016
1 parent c5f816e commit e946eab
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 14 deletions.
35 changes: 27 additions & 8 deletions rackhd/docker-compose.yaml → docker-compose-rackhd.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#NM_RACKHD
#neighborhood-manager
#rackhd

version: "2"

Expand All @@ -19,15 +20,16 @@ services:
- "8600:8600/udp"
command: "agent -config-dir /etc/consul.d/server.json -bootstrap"
nm-rackhd-proxy:
build: .
build: ./rackhd
image: "rackhd/rackhd:latest"
container_name: "rackhd"
hostname: "rackhd"
links:
- consulclient
ports:
- "10001:10001"
- "10001:10001/udp"
expose:
- "10001"
- "10001/udp"
- "10002"
- "10002/udp"
- "8300"
Expand All @@ -41,17 +43,34 @@ services:
- "8600"
- "8600/udp"
command: "-proxy-address=http://localhost:10001 -backend-address=consulclient:8500"
volumes:
- "./bin:/go/bin"
depends_on:
- consulclient
ssdpspoofer:
build: ./cmd/utils
endpoint:
build: ./rackhd/cmd/utils
image: "rackhd/endpoint:latest"
container_name: "endpoint"
hostname: "endpoint"
ports:
- "10002:10002"
- "10002:10002/udp"
expose:
- "10002"
- "10002/udp"
- "10001"
- "10001/udp"
- "8300"
- "8301"
- "8301/udp"
- "8302"
- "8302/udp"
- "8400"
- "8500"
- "8500/udp"
- "8600"
- "8600/udp"
command: "-endpoint-address=http://localhost:10002 -backend-address=consulclient:8500"
volumes:
- "./bin:/go/bin"
depends_on:
- consulclient
consulclient:
Expand Down
4 changes: 1 addition & 3 deletions rackhd/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
FROM rackhd/golang:1.7.0-wheezy

ADD ./bin/rackhd /bin/rackhd

ENTRYPOINT ["/bin/rackhd"]
ENTRYPOINT ["/go/bin/rackhd"]
4 changes: 1 addition & 3 deletions rackhd/cmd/utils/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
FROM rackhd/golang:1.7.0-wheezy

ADD ../../bin/entrypoint /bin/entrypoint

ENTRYPOINT ["/bin/entrypoint"]
ENTRYPOINT ["/go/bin/endpoint"]

0 comments on commit e946eab

Please sign in to comment.