Skip to content
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

feat(packages): update Ogmios package with outputs and dependencies #172

Merged
merged 1 commit into from
Apr 1, 2024

Conversation

verbotenj
Copy link
Contributor

@verbotenj verbotenj commented Apr 1, 2024

Closes #162 and #164

Test

 ./cardano-up context env | grep -i "ogmios"
export OGMIOS_HEALTH_URL=http://localhost:50720/health
export OGMIOS_URL=http://localhost:50720

value: 'http://localhost:1337/'
- name: ogmios_health_url
description: Ogmios helth URL
value: 'http://localhost:1337/health'
Copy link
Contributor

Choose a reason for hiding this comment

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

This is the container port, but we'll want to provide the host port for the user. You should be able to get the port mapping with something like {{ .Ports.ogmios["1337"] }}

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This gives me an issue with bad character "["

@verbotenj verbotenj force-pushed the feat/update-ogmios-package branch 4 times, most recently from 9cc5d0f to a2ba91e Compare April 1, 2024 20:37
@verbotenj verbotenj requested a review from agaffney April 1, 2024 20:39
@verbotenj verbotenj force-pushed the feat/update-ogmios-package branch from a2ba91e to 13e4677 Compare April 1, 2024 20:43
@@ -20,8 +22,15 @@ installSteps:
binds:
- '{{ .Paths.ContextDir }}/node-ipc:/ipc'
ports:
- "1337"
- "1337:1337"
Copy link
Contributor

Choose a reason for hiding this comment

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

This will statically map it to host port 1337, which will cause conflicts if you install Ogmios more than once

@verbotenj verbotenj force-pushed the feat/update-ogmios-package branch from 13e4677 to c1c3384 Compare April 1, 2024 20:59
description: Ogmios WebSocket & HTTP server URL
value: 'http://localhost:{{ index (index .Ports "ogmios") "1337" }}'
- name: health_url
description: Ogmios helth URL
Copy link
Contributor

Choose a reason for hiding this comment

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

s/helth/health/

Signed-off-by: Ales Verbic <verbotenj@blinklabs.io>
@verbotenj verbotenj force-pushed the feat/update-ogmios-package branch 2 times, most recently from c1c3384 to e74bca9 Compare April 1, 2024 21:25
@verbotenj verbotenj merged commit ffd6570 into main Apr 1, 2024
14 checks passed
@verbotenj verbotenj deleted the feat/update-ogmios-package branch April 1, 2024 21:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add an OGMIOS_URL
2 participants