Skip to content

Fix .dockerignore file to get commit hash successfully from docker image clients. #1494

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

Merged
merged 2 commits into from
Apr 25, 2019

Conversation

HoOngEe
Copy link
Contributor

@HoOngEe HoOngEe commented Apr 24, 2019

It closes #1443

To get commithash successfully from the rpc "commithash" when using the
released client as a docker image, removed .git from .dockerignore
option. I checked there's no .git file in the final released image so
it's safe to apply.
@sgkim126 sgkim126 requested a review from foriequal0 April 25, 2019 01:32
@sgkim126 sgkim126 added the build label Apr 25, 2019
@sgkim126
Copy link
Contributor

I think it's better to ignore the test directory also.
It would not be used to build the docker image.

The file keystore.db and the files under the test directory would not be
used in building docker image. Therefore those files are excluded from
building.
@HoOngEe HoOngEe force-pushed the fix/docker-commithash branch from a797c2a to 5dbe1ca Compare April 25, 2019 02:10
@HoOngEe
Copy link
Contributor Author

HoOngEe commented Apr 25, 2019

Ok, the test directory is also ignored.

@sgkim126
Copy link
Contributor

LGTM

@mergify mergify bot merged commit ea5d2d5 into CodeChain-io:master Apr 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

commitHash RPC doesn't work on container images.
3 participants