Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CM-124 Enhanced docker files for remote nodes #46

Merged
merged 2 commits into from
Feb 29, 2020
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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