Skip to content

Commit

Permalink
feat(packages): add Kupo package (#189)
Browse files Browse the repository at this point in the history
Signed-off-by: Ales Verbic <[email protected]>
  • Loading branch information
verbotenj authored Apr 13, 2024
1 parent d225017 commit 5b6d787
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/cardano-node/cardano-node-8.9.1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ outputs:
description: Path to the Cardano Node UNIX socket
value: '{{ .Paths.ContextDir }}/node-ipc/node.socket'
preInstallScript: 'test -e {{ .Paths.DataDir }}/data/db/protocolMagicId && exit 0 || mithril-client cardano-db download --download-dir {{ .Paths.DataDir }}/data latest'
postInstallScript: 'mkdir -p {{ .Paths.ContextDir }}/config && docker cp {{ .Package.Name }}-{{ .Package.ShortName }}:/opt/cardano/config/{{ .Context.Network }}/ {{ .Paths.ContextDir }}/config/'
tags:
- docker
- linux
Expand Down
48 changes: 48 additions & 0 deletions packages/kupo/kupo-2.8.0.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: kupo
version: 2.8.0
description: Kupo is fast, lightweight and configurable chain-index for the Cardano blockchain
dependencies:
- cardano-node >= 8.7.3
installSteps:
- docker:
containerName: kupo
image: cardanosolutions/kupo:v2.8.0
command:
- kupo
- --node-socket
- /ipc/node.socket
- --host
- 0.0.0.0
- --port
- '1442'
- --log-level
- Info
- --node-config
- /config/config.json
- --match
- '*'
- --defer-db-indexes
- --since
- origin
- --workdir
- '/db'
binds:
- '{{ .Paths.ContextDir }}/node-ipc:/ipc'
- '{{ .Paths.DataDir }}/db:/db'
- '{{ .Paths.ContextDir }}/config/{{ .Context.Network }}:/config'
ports:
- "1442"
pullOnly: false
outputs:
- name: url
description: Kupo API URL
value: 'http://localhost:{{ index (index .Ports "kupo") "1442" }}'
- name: health_url
description: Kupo health URL
value: 'http://localhost:{{ index (index .Ports "kupo") "1442" }}/health'
tags:
- docker
- linux
- darwin
- amd64
- arm64

0 comments on commit 5b6d787

Please sign in to comment.