-
Notifications
You must be signed in to change notification settings - Fork 3
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
Rework session container and startup scripts #46
Conversation
There is some incompatibility with older podman, starting the container raises a 500 error. Something wrong with the |
bcc9037
to
9e04246
Compare
This gives us more control over the container and drops the outdated and PoC/hack quay.io/rhn_engineering_mpitt/ws image. Running just one image on OpenShift is also more efficient.
This is too complex as a podman startup command, and it would have to be repeated for k8s deployment. Instead, parameterize it with environment variables. Move the "socat-session.sh" helper from the image into the startup script.
…ogram This eliminates the last websocat usage, as it is not packaged anywhere, and downloading straight from GitHub isn't appropriate for production. Fixes #42
9e04246
to
4a915a7
Compare
# cockpit is not available in UBI, install from CentOS 9 stream; c-bridge is just for debugging, drop for production | ||
RUN printf '[c9s]\nname = C9S\nbaseurl = http://mirror.stream.centos.org/9-stream/BaseOS/x86_64/os\ngpgcheck = 0\n' > /etc/yum.repos.d/c9s.repo | ||
RUN microdnf install --enablerepo=c9s --setopt=install_weak_deps=0 -y cockpit-ws cockpit-bridge && microdnf clean all |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is of course rather ugly -- it might not be the final solution. We could also install python3-websockets (or websocat) into our official cockpit/ws container -- but that remains to be discussed with the SREs/reviewers for official deployment.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yup, fine for now!
Fixes #42