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

Add cli dockerfile #1808

Merged
merged 2 commits into from
May 5, 2020
Merged

Add cli dockerfile #1808

merged 2 commits into from
May 5, 2020

Conversation

NicolasMahe
Copy link
Member

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.

@@ -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) .
Copy link
Member Author

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
Copy link
Member Author

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

Dockerfile.cli Outdated Show resolved Hide resolved
@NicolasMahe NicolasMahe requested a review from antho1404 May 5, 2020 10:01
@NicolasMahe NicolasMahe added this to the next milestone May 5, 2020
@NicolasMahe NicolasMahe self-assigned this May 5, 2020
@NicolasMahe NicolasMahe added the release:add Pull requests that add something label May 5, 2020
# ubuntu image with binaries for distribution
FROM ubuntu:18.04
RUN apt-get update && \
apt-get install -y --no-install-recommends ca-certificates=20180409 && \
Copy link
Member

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.

Copy link
Member Author

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?

@NicolasMahe NicolasMahe merged commit f75159d into dev May 5, 2020
@NicolasMahe NicolasMahe deleted the feature/cli-image branch May 5, 2020 12:26
@NicolasMahe NicolasMahe mentioned this pull request May 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release:add Pull requests that add something
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants