OpenPharma Micro Service for Hedera (REST API)
378
Simply run it with all needed parameters:
docker run -d \
-p 8000:8000 \
--name=op_hedera_main \
-e SERVER_PORT=8000 \
-e HEDERA_NODE_ADDRESS=testnet.hedera.com \
-e HEDERA_NODE_PORT=50130 \
-e HEDERA_NODE_ACCOUNT_SHARD=0 \
-e HEDERA_NODE_ACCOUNT_REALM=0 \
-e HEDERA_NODE_ACCOUNT_NUM=3 \
-e HEDERA_PAYING_ACCOUNT_SHARD=0 \
-e HEDERA_PAYING_ACCOUNT_REALM=0 \
-e HEDERA_PAYING_ACCOUNT_NUM=1004 \
-e HEDERA_PAYING_ACCOUNT_PUBLIC_KEY=xxx \
-e HEDERA_PAYING_ACCOUNT_PRIVATE_KEY=xxx \
openpharma/op-java-ms-hedera
That's it.
When your Docker container is started, just open the right URL in your browser. You'll have access to a simple HTML page giving you more details on the authentication and a Swagger live documentation.
This image uses environment variables for configuration.
| Available variables | Default value | Description |
|---|---|---|
SERVER_PORT | 9000 | Listening port |
HEDERA_NODE_ADDRESS | no default | Address of the net that you want to connect |
HEDERA_NODE_PORT | no default | Port of the net that you want to connect |
HEDERA_NODE_ACCOUNT_SHARD | no default | Shard number of the node account |
HEDERA_NODE_ACCOUNT_REALM | no default | Realm number of the node account |
HEDERA_NODE_ACCOUNT_NUM | no default | Account number of the node account |
HEDERA_PAYING_ACCOUNT_SHARD | no default | Shard number of the paying (your) account |
HEDERA_PAYING_ACCOUNT_REALM | no default | Realm number of the paying (your) account |
HEDERA_PAYING_ACCOUNT_NUM | no default | Account number of the paying (your) account |
HEDERA_PAYING_ACCOUNT_PUBLIC_KEY | no default | Public key of the paying (your) account |
HEDERA_PAYING_ACCOUNT_PRIVATE_KEY | no default | Private key of the paying (your) account |
This version is based on the Hedera Java SDK 0.2.0 and has been fully tested in the Hedera test nets.
The repository utilizes code licensed under the terms of the Apache Software License and therefore is licensed under ASL v2 or later.
This source code in this repository is free: you can redistribute it and/or modify it under the terms of the Apache Software License version 2, or (at your option) any later version.
This source code in this repository is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the Apache Software License for more details.
You should have received a copy of the Apache Software License along with this program. If not, see https://www.apache.org/licenses/LICENSE-2.0.html
The source code forked from other open source projects will inherit its license.
Content type
Image
Digest
Size
364.7 MB
Last updated
over 7 years ago
docker pull openpharma/op-java-ms-hedera