redhatgov.github.io icon indicating copy to clipboard operation
redhatgov.github.io copied to clipboard

Add Dockerfile and K8s/OCP Manifests

Open kenmoini opened this issue 4 years ago • 4 comments

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

kenmoini avatar Jul 06 '20 01:07 kenmoini

"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 avatar Jul 06 '20 16:07 kenmoini

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...

kenmoini avatar Jul 06 '20 21:07 kenmoini

This is great work, Ken. Much appreciated!

  • Alex

On Mon, Jul 6, 2020 at 5:52 PM Ken Moini [email protected] wrote:

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...

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/RedHatGov/redhatgov.github.io/issues/285#issuecomment-654483854, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFLVO4VH5MNCU35F7GV4EBLR2JBQDANCNFSM4OREHJ4Q .

--

Alexander Jacocks, RHCE | Staff Solution Architect (e) [email protected] | Public Sector Business Development (c) (240) 447-5974 | Tyson's Corner, VA (g) CC28 8136 C253 907A B9BB 9EEA D3C8 1A3A 790A 0AB9

ajacocks avatar Jul 29 '20 04:07 ajacocks

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.

kenmoini avatar Aug 01 '20 03:08 kenmoini