Skip to content
This repository has been archived by the owner on Jul 20, 2022. It is now read-only.

Share key dir between cli and rpc containers #49

Merged
merged 1 commit into from
Jul 20, 2018

Conversation

knkski
Copy link
Contributor

@knkski knkski commented Jul 10, 2018

The Seth RPC container relies on keys that were generated by the CLI. Previously, we were generating those keys inside of the RPC container with a CLI call. This PR moves to sharing a key directory between the CLI and RPC containers, with the CLI container generating the keys in that directory.

Remix of #28. This PR punts on the issue of using SAWTOOTH_HOME / SAWTOOTH_KEYS environment variables as per #28 (comment). It also switches from a get_data_dir to a get_key_dir, as get_data_dir is then otherwise unused apart from get_key_dir.

Signed-off-by: Kenneth Koski knkski@bitwise.io

@knkski knkski force-pushed the sharing-key-dir branch 4 times, most recently from 1116961 to 1d68042 Compare July 10, 2018 18:28
depends_on:
- validator
ports:
- 3030:3030
command: |
bash -c "
seth init http://rest-api:8080 &&
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note that this change will disappear after #38 is merged and this PR is rebased

@knkski knkski force-pushed the sharing-key-dir branch 4 times, most recently from dc8ea49 to be824a2 Compare July 13, 2018 15:19
@dplumb94 dplumb94 requested review from dplumb94, aludvik, vaporos, grkvlt, peterschwarz and jsmitchell and removed request for aludvik July 16, 2018 14:38
@dplumb94 dplumb94 self-assigned this Jul 16, 2018
@knkski knkski force-pushed the sharing-key-dir branch 3 times, most recently from 6648950 to 0686d39 Compare July 16, 2018 15:04
The Seth RPC container relies on keys that were generated by the CLI.
Previously, we were generating those keys inside of the RPC container
with a CLI call. This PR moves to sharing a key directory between the
CLI and RPC containers, with the CLI container generating the keys in
that directory.

Signed-off-by: Kenneth Koski <knkski@bitwise.io>
@rberg2 rberg2 merged commit 64ae353 into hyperledger-archives:master Jul 20, 2018
@knkski knkski deleted the sharing-key-dir branch October 23, 2018 18:54
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants