-
Notifications
You must be signed in to change notification settings - Fork 285
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
fix(plugin-ledger-connector-iroha): running the container image locally fails #1874
Comments
@petermetz are there any workaround for this? |
One more thing (more of a note to self) is that you'll also need the authorization configuration in the env variables (if that's the preferred way for you to provide the config) so something like this for testing & development should work better: (this still won't work as of today until the other fixes are in place but I wanted to make not anyway because it's one more clue) docker run \
--rm \
--publish 3000:3000 \
--publish 4000:4000 \
--publish 5000:5000 \
--env AUTHORIZATION_CONFIG_JSON="{}"\
--env AUTHORIZATION_PROTOCOL=NONE \
--env PLUGINS='[{"packageName": "@hyperledger/cactus-plugin-ledger-connector-iroha", "type": "org.hyperledger.cactus.plugin_import_type.LOCAL", "action": "org.hyperledger.cactus.plugin_import_action.INSTALL", "options": {"rpcApiHttpHost": "http://localhost:8545", "instanceId": "some-unique-iroha-connector-instance-id"}}]' \
cplcb:latest |
I tried running the plain docker run --rm --publish 3000:3000 --publish 4000:4000 --mount type=bind,source="$(pwd)"/.config.json,target=/config.json --env AUTHORIZATION_CONFIG_JSON="{}" --env AUTHORIZATION_PROTOCOL=NONE --env CONFIG_FILE=/config.json cas And the iroha plugin was not able to run (in my case) with the error |
Primary Changes --------------- 1. Updated iroha package.json to include a missing dependency 2. Updated Dockerfile to include new api-server image and used yarn to install the iroha package 3. Updated README.md to include the newly changes to both the api-server as well as iroha connector plugin 4. Updated cmd-api-server README.md to include similar changes Fixes hyperledger-cacti#1874 Signed-off-by: jagpreetsinghsasan <jagpreet.singh.sasan@accenture.com>
Primary Changes --------------- 1. Updated iroha package.json to include a missing dependency 2. Updated Dockerfile to include new api-server image and used yarn to install the iroha package 3. Updated README.md to include the newly changes to both the api-server as well as iroha connector plugin 4. Updated cmd-api-server README.md to include similar changes Fixes hyperledger-cacti#1874 Signed-off-by: jagpreetsinghsasan <jagpreet.singh.sasan@accenture.com>
Primary Changes --------------- 1. Updated iroha package.json to include a missing dependency 2. Updated Dockerfile to include new api-server image and used yarn to install the iroha package 3. Updated README.md to include the newly changes to both the api-server as well as iroha connector plugin 4. Updated cmd-api-server README.md to include similar changes Fixes hyperledger-cacti#1874 Signed-off-by: jagpreetsinghsasan <jagpreet.singh.sasan@accenture.com>
Primary Changes --------------- 1. Updated iroha package.json to include a missing dependency 2. Updated Dockerfile to include new api-server image and used yarn to install the iroha package 3. Updated README.md to include the newly changes to both the api-server as well as iroha connector plugin 4. Updated cmd-api-server README.md to include similar changes Fixes #1874 Signed-off-by: jagpreetsinghsasan <jagpreet.singh.sasan@accenture.com>
Describe the bug
when trying to run iroha connector container locally by following README, command
docker run
returns error.To Reproduce
first:
then:
Expected behavior
container runs.
Logs/Stack traces
docker-command-log.txt
Cloud provider or hardware configuration:
local pc
Operating system name, version, build:
Hyperledger Cactus release version or commit (git rev-parse --short HEAD):
Hyperledger Cactus Plugins/Connectors Used
iroha
The text was updated successfully, but these errors were encountered: