Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bernielxy/cardano-sl-alpine
a docker image for cardano-sl based on alpine
https://github.com/bernielxy/cardano-sl-alpine
alpine cardano-node cardano-sl docker
Last synced: 2 months ago
JSON representation
a docker image for cardano-sl based on alpine
- Host: GitHub
- URL: https://github.com/bernielxy/cardano-sl-alpine
- Owner: bernielxy
- License: apache-2.0
- Created: 2018-01-16T17:09:25.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-01-18T05:03:15.000Z (about 7 years ago)
- Last Synced: 2024-08-08T18:02:38.962Z (6 months ago)
- Topics: alpine, cardano-node, cardano-sl, docker
- Size: 14.6 KB
- Stars: 3
- Watchers: 4
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-cardano - Cardano SL Alpine
README
# cardano-sl-alpine
> a docker image for cardano-sl based on alpine
[cardano-sl Github Repo](https://github.com/input-output-hk/cardano-sl)
## Usage
There are two ways to use this repo: build docker image or pull docker image.
### Build docker image
`docker build . -f Dockerfile -t [YOUR_DOCKER_TAG_NAME]`
### Pull docker image from docker store
`docker pull sharkspeed/cardano-sl-alpine`
If you want run a cardano node temporarily, your can use this command:
`docker run --rm -it -p 127.0.0.1:8090:8090 -v $(pwd)/cardano/db:/home/cardano/cardano-sl/db -v $(pwd)/cardano/state-wallet-mainnet:/home/cardano/cardano-sl/state-wallet-mainnet --name cardano-sl sharkspeed/cardano-sl-alpine`
If you want run a cardano node in background:
`docker run -d -p 127.0.0.1:8090:8090 -v $(pwd)/cardano/db:/home/cardano/cardano-sl/db -v $(pwd)/cardano/state-wallet-mainnet:/home/cardano/cardano-sl/state-wallet-mainnet --name cardano-sl sharkspeed/cardano-sl-alpine`
Both of above commands will persist block files to local disk, so your can find block files in `$(pwd)/cardano/state-wallet-mainnet/db/blocks/data`
## Q&A:
- How to test the api of cardano node ?
I don't know why the api of cardano node only can be accessed inside docker.
Go into docker:
`docker exec -it cardano-sl sh`
Test api with curl:
`curl --cacert server.cert https://localhost:8090/api/settings/version` (You can find cert file in `state-wallet-mainnet/tls`)
You can find more apis to have a try [here](https://cardanodocs.com/technical/wallet/api/)
## Others
Please feel free to ask me if you have any questions.
My Cardano Address:
DdzFFzCqrht31ymDDCZVJaBict2ouDS6Y58ZBX8uohwBgcSD6iSivuErhQpSMvZPgrapEJ5CbGMrK2Ga9pMWEGSHS7WtUVCBABCNxUuP