Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
B
burrow
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Hang Yu
burrow
Commits
ae45563e
Unverified
Commit
ae45563e
authored
6 years ago
by
Silas Davis
Browse files
Options
Downloads
Patches
Plain Diff
Update CI image and add commands to Makefile
Signed-off-by:
Silas Davis
<
silas@monax.io
>
parent
5ad47d83
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
.circleci/Dockerfile
+2
-2
2 additions, 2 deletions
.circleci/Dockerfile
Dockerfile
+6
-6
6 additions, 6 deletions
Dockerfile
Makefile
+13
-1
13 additions, 1 deletion
Makefile
rpc/config.go
+1
-1
1 addition, 1 deletion
rpc/config.go
with
22 additions
and
10 deletions
.circleci/Dockerfile
+
2
−
2
View file @
ae45563e
# 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
\
...
...
This diff is collapsed.
Click to expand it.
Dockerfile
+
6
−
6
View file @
ae45563e
# 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; 4
6656:tendermint-peer;
4
665
7:tendermint-rpc
EXPOSE
1337
EXPOSE
4
665
6
EXPOSE
4665
7
# Expose ports for
2
6656:tendermint-peer;
2
665
8: tm; 10997 GRPC
EXPOSE
26656
EXPOSE
2
665
8
EXPOSE
1099
7
CMD
[ "burrow" ]
This diff is collapsed.
Click to expand it.
Makefile
+
13
−
1
View file @
ae45563e
...
...
@@ -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
}
This diff is collapsed.
Click to expand it.
rpc/config.go
+
1
−
1
View file @
ae45563e
...
...
@@ -41,7 +41,7 @@ func DefaultRPCConfig() *RPCConfig {
func
DefaultTMConfig
()
*
ServerConfig
{
return
&
ServerConfig
{
Enabled
:
true
,
ListenAddress
:
"tcp://localhost:
4
665
7
"
,
ListenAddress
:
"tcp://localhost:
2
665
8
"
,
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment