Skip to content
Snippets Groups Projects
Unverified Commit ae45563e authored by Silas Davis's avatar Silas Davis
Browse files

Update CI image and add commands to Makefile


Signed-off-by: default avatarSilas Davis <silas@monax.io>
parent 5ad47d83
No related branches found
No related tags found
No related merge requests found
# docker build -t quay.io/monax/build:burrow-ci .
FROM golang:1.10.1-alpine3.7
FROM golang:1.10.3-alpine3.8
MAINTAINER Monax <support@monax.io>
ENV DOCKER_VERSION "17.12.1-ce"
# This is the image used by the Circle CI config in this directory pushed to quay.io/monax/bosmarmot:ci
# docker build -t quay.io/monax/build:burrow-ci -f ./.circleci/Dockerfile .
RUN apk add --update --no-cache nodejs netcat-openbsd git openssh-client openssl make bash gcc g++ jq curl
RUN apk add --update --no-cache nodejs npm netcat-openbsd git openssh-client openssl make bash gcc g++ jq curl
# get docker client
RUN curl -L -o /tmp/docker-$DOCKER_VERSION.tgz https://download.docker.com/linux/static/stable/x86_64/docker-$DOCKER_VERSION.tgz \
&& tar -xz -C /tmp -f /tmp/docker-$DOCKER_VERSION.tgz \
......
# We use a multistage build to avoid bloating our deployment image with build dependencies
FROM golang:1.10.1-alpine3.7 as builder
FROM golang:1.10.3-alpine3.8 as builder
MAINTAINER Monax <support@monax.io>
RUN apk add --no-cache --update git bash make
......@@ -12,7 +12,7 @@ WORKDIR $REPO
RUN make build
# This will be our base container image
FROM alpine:3.7
FROM alpine:3.8
ARG REPO=/go/src/github.com/hyperledger/burrow
......@@ -26,9 +26,9 @@ USER $USER:$USER
COPY --from=builder $REPO/bin/* /usr/local/bin/
#RUN chown $USER:$USER /usr/local/bin/burrow*
# Expose ports for 1337:burrow API; 46656:tendermint-peer; 46657:tendermint-rpc
EXPOSE 1337
EXPOSE 46656
EXPOSE 46657
# Expose ports for 26656:tendermint-peer; 26658: tm; 10997 GRPC
EXPOSE 26656
EXPOSE 26658
EXPOSE 10997
CMD [ "burrow" ]
......@@ -2,7 +2,6 @@
# REQUIREMENTS
# - go installed locally
# - for build_docker: docker installed locally
# ----------------------------------------------------------
......@@ -24,6 +23,8 @@ PROTO_GO_FILES_REAL = $(shell find . -path ./vendor -prune -o -type f -name '*.p
SOLIDITY_FILES = $(shell find . -path ./vendor -prune -o -type f -name '*.sol' -print)
SOLIDITY_GO_FILES = $(patsubst %.sol, %.sol.go, $(SOLIDITY_FILES))
CI_IMAGE="quay.io/monax/build:burrow-ci"
### Formatting, linting and vetting
# check the code for style standards; currently enforces go formatting.
......@@ -230,3 +231,14 @@ docs: CHANGELOG.md NOTES.md
tag_release: test check CHANGELOG.md NOTES.md build
@scripts/tag_release.sh
.PHONY: docker_build_ci_rebuild
docker_build_ci_rebuild:
docker build --no-cache -t ${CI_IMAGE} -f ./.circleci/Dockerfile .
.PHONY: docker_build_ci
docker_build_ci:
docker build -t ${CI_IMAGE} -f ./.circleci/Dockerfile .
.PHONY: docker_push_ci
docker_push_ci: docker_build_ci
docker push ${CI_IMAGE}
......@@ -41,7 +41,7 @@ func DefaultRPCConfig() *RPCConfig {
func DefaultTMConfig() *ServerConfig {
return &ServerConfig{
Enabled: true,
ListenAddress: "tcp://localhost:46657",
ListenAddress: "tcp://localhost:26658",
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment