-
Notifications
You must be signed in to change notification settings - Fork 13
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
Add cli dockerfile #1808
Add cli dockerfile #1808
Conversation
@@ -61,6 +61,9 @@ build-cmd: dep | |||
go build -mod=readonly -o ./bin/mesg-cli ./cmd/mesg-cli/ | |||
go build -mod=readonly -o ./bin/mesg-daemon ./cmd/mesg-daemon/ | |||
|
|||
build-docker-cli: check-version | |||
docker build -t mesg/engine:cli -f ./Dockerfile.cli --build-arg version=$(version) . |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
mesg/engine:cli
is a temp image tag. it will be replaced in following PR
@@ -1,5 +1,5 @@ | |||
# base Go image version. | |||
FROM golang:1.13.0-stretch | |||
FROM golang:1.13.10 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated this in order to use the same base image in all future dockerfile
# ubuntu image with binaries for distribution | ||
FROM ubuntu:18.04 | ||
RUN apt-get update && \ | ||
apt-get install -y --no-install-recommends ca-certificates=20180409 && \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we still need this install? If I remember correctly it was related to the fetch from git that we had but we don't have this anymore.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it's good to install the ca certificates
to verify SSL connection.
User could setup a SSL remote connection to another peer or to a RPC endpoint?
This PR adds a new Dockerfile that compiles and exposes the 2 clis.
The default dockerfile cmd is using only on cli, but the otherone can still be usable by overriding the default cmd when starting the container.