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

Add Dockerfile and K8s/OCP Manifests #285

Open
kenmoini opened this issue Jul 6, 2020 · 4 comments
Open

Add Dockerfile and K8s/OCP Manifests #285

kenmoini opened this issue Jul 6, 2020 · 4 comments

Comments

@kenmoini
Copy link
Contributor

kenmoini commented Jul 6, 2020

Ehhh? Any objections? Could easily be built on a couple RH UBIs...containerized versions would allow for quicker live deployment testing.

@kenmoini
Copy link
Contributor Author

kenmoini commented Jul 6, 2020

"hOw HaRd CoUlD iT bE?"

OK, JUST KIDDING - not so easy! Evidently there are only like, 4 packages made available in the RH UBI repos and asciidoc3 is not one of those packages...

There's some funky stuff going on in the UBI with how Python is installed (read: I'm probably doing something dumb), so running pip install asciidoc3 doesn't get asciidoc loaded into $PATH, making the hugo command fail when generating the assets...

Trying to manually bring in asciidoc and compile is also difficult it seems...EPEL has no package for it...trying not to just use an Arch/CentOS based container and stick with RH UBIs...

Anyone know how to charm the Python in UBI7 to play nicely?

@kenmoini
Copy link
Contributor Author

kenmoini commented Jul 6, 2020

Ok, well, I got it working with a multi-stage build with the final container being an Apache httpd UBI. PR Incoming...

K8s manifests to work out of the box will need a dedicated/official Quay image, otherwise would rely on each developer creating and storing their own image.
OCP could be done with S2I I suppose, but that requires moving things around, extra bits, and trying to get asciidoc{tor} to work in a RH container image...

@ajacocks
Copy link
Contributor

ajacocks commented Jul 29, 2020 via email

@kenmoini
Copy link
Contributor Author

kenmoini commented Aug 1, 2020

Thank ya sir - I'mma try to finalize the PRs this weekend...been busy with the whole day time gig thing...

It works, builds well, etc but there seems to be some weird issue with CORS in a K8s environment, going to test in a VM to see if it's an ingress issue.

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

No branches or pull requests

2 participants