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

Rework session container and startup scripts #46

Merged
merged 3 commits into from
Sep 26, 2022
Merged

Rework session container and startup scripts #46

merged 3 commits into from
Sep 26, 2022

Conversation

martinpitt
Copy link
Member

@martinpitt martinpitt commented Sep 26, 2022

@martinpitt
Copy link
Member Author

There is some incompatibility with older podman, starting the container raises a 500 error. Something wrong with the env bit?

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
Comment on lines +5 to +7
# 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
Copy link
Member Author

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.

Copy link
Member

Choose a reason for hiding this comment

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

Yup, fine for now!

@martinpitt martinpitt marked this pull request as ready for review September 26, 2022 12:06
@jelly jelly merged commit 612a797 into main Sep 26, 2022
@jelly jelly deleted the session-ws branch September 26, 2022 12:36
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.

eliminate websocat from session container
2 participants