Skip to content

Commit

Permalink
CM-124 Enhanced docker files for remote nodes (#46)
Browse files Browse the repository at this point in the history
Co-authored-by: Ed Bruck <ed.bruck1@gmail.com>
  • Loading branch information
matteyu and ebruck committed Feb 29, 2020
1 parent 8330c4b commit f83aaf8
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 8 deletions.
8 changes: 8 additions & 0 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ MAINTAINER support@bluzelle.com
# Set up dependencies
ENV PACKAGES make git bash gcc

ENV GO111MODULE=on \
CGO_ENABLED=0 \
GOOS=linux \
GOARCH=amd64

# Set working directory for the build
WORKDIR /go/src/github.com/bluzelle/

Expand All @@ -26,6 +31,9 @@ RUN apk add --update ca-certificates

WORKDIR /root

EXPOSE 26656
EXPOSE 1317

# Copy over binaries from the build-env
COPY --from=build-env /go/bin/blzd /usr/bin/blzd
COPY --from=build-env /go/bin/blzcli /usr/bin/blzcli
Expand Down
26 changes: 18 additions & 8 deletions docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,26 +2,36 @@ version: '3'

services:
swarm01:
build:
context: .
dockerfile: Dockerfile
image: bluzelle-curium:latest
ports:
- "26656:26656"
- "1317:1317"
environment:
NODE_NAME: "swarm01"
networks:
- swarmnet
LOCAL_IP: ${LOCAL_IP}
expose:
- "26656"
- "1317"

swarm02:
image: bluzelle-curium:latest
environment:
NODE_NAME: "swarm02"
LOCAL_IP: ${LOCAL_IP}
logging:
driver: "json-file"
options:
max-size: "50m"
max-file: "10"
restart: unless-stopped
networks:
- swarmnet

# swarm02:
# image: bluzelle-curium:latest
# environment:
# NODE_NAME: "swarm02"
# LOCAL_IP: ${LOCAL_IP}
# networks:
# - swarmnet

#swarm03:
# image: bluzelle-curium:latest
# environment:
Expand Down

0 comments on commit f83aaf8

Please sign in to comment.