Skip to content

Hello, World: Pass listening port in YAML config #9

Description

@aaaaalbert

I try to streamline the Hello, World tutorial and remove as many preparation steps as possible. For example, I want to reuse an existing image off DockerHub instead of having to create my own.

However, the NodeJS code currently has the listening port number hardcoded. I can't thus reuse someone else's image because then I might hit their old deployed instance unknowingly.

A way around having to rebuild the Docker image for every experimenter could be to supply the listening port through the YAML config: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/

This should allow us to start the NodeJS server inside the Docker image with per-experimenter config from the YAML, i.e. a single image will do for everyone taking the tutorial.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions