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

Jlo/fix-relay-restarts #15

Merged
merged 4 commits into from
Aug 26, 2024
Merged

Jlo/fix-relay-restarts #15

merged 4 commits into from
Aug 26, 2024

Conversation

jLopezbarb
Copy link
Contributor

Signed-off-by: Javier Lopez [email protected]

Fixes #DEV-395

Proposed changes

  • Fixes Dockerfiles syntax
  • Add okteto yaml v2
  • Whenever there is a syncthing restart copy the configuration if it doesnt exists alreday

supervisor:
context: .
image: ${REGISTRY_AND_USER:-okteto}/supervisor:${VERSION:-latest}

Choose a reason for hiding this comment

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

what do you think if we use some more conventional env vars?

If we use OKTETO_NAMESPACE instead of USER it's replaced out of the box. For the Registry, unfortunatelty it's only injected in the deploy steps, but still we could have a comment as example.

Suggested change
image: ${REGISTRY_AND_USER:-okteto}/supervisor:${VERSION:-latest}
image: ${OKTETO_REGISTRY_URL}/${OKTETO_NAMESPACE}/supervisor:${VERSION:-latest}
# Example: OKTETO_REGISTRY_URL=registry.product.okteto.dev okteto build`

Copy link
Contributor Author

Choose a reason for hiding this comment

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

With that approach it's difficult to know that you can push to other registries rather than the okteto one, like docker hub.

Signed-off-by: Javier Lopez <[email protected]>
@jLopezbarb jLopezbarb merged commit 7af5c8d into master Aug 26, 2024
1 check passed
@jLopezbarb jLopezbarb deleted the jlo/fix-relay-restarts branch August 26, 2024 09:47
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.

2 participants