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

feat: build alpine container from release tar.tgz #105

Draft
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

rwaffen
Copy link
Member

@rwaffen rwaffen commented Aug 9, 2024

just download the tar and see how far i can get. just heavy work in progress...

it seems to work somehow, but i also need to add the agent i think.

$ docker run --rm -it puppetserver:8.6.2-v1.0.0
/opt/puppetlabs/server/apps/puppetserver/cli/apps/start: line 75: [: 24-ea: integer expression expected
Execution error (LoadError) at org.jruby.RubyKernel/require (org/jruby/RubyKernel.java:1184).
(LoadError) no such file to load -- puppet

Full report at:
/tmp/clojure-13868857792578993882.edn
Background process 61 exited before start had completed

@rwaffen
Copy link
Member Author

rwaffen commented Aug 9, 2024

i think with the right parameters one could just execute install.sh from the tar 🤔

Copy link
Member

@ekohl ekohl left a comment

Choose a reason for hiding this comment

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

https://copr-dist-git.fedorainfracloud.org/cgit/ekohl/puppetserver/puppetserver.git/tree/puppetserver.spec is my current spec where I trim down a lot. Of course, currently it's not a working setup either (fighting with JRuby and Psych).

You might be able to get away with only installing the AIO Debian puppet package

build/Dockerfile Outdated Show resolved Hide resolved
build/Dockerfile Outdated Show resolved Hide resolved
build/Dockerfile Outdated Show resolved Hide resolved
@rwaffen rwaffen force-pushed the build_from_tar branch 2 times, most recently from 7d394e6 to fb38a85 Compare October 9, 2024 08:49
@rwaffen
Copy link
Member Author

rwaffen commented Oct 11, 2024

build base is now alpine 3.20.

i adapted most from install.sh and Makefile. copied over the init stuff from the current container. some puppet agent dependencies are still missing and a ruby env for r10k/rugged and some service sctipts.

still working on the raff edges :D

@rwaffen
Copy link
Member Author

rwaffen commented Oct 11, 2024

it builds. it trys to start. but fails atm at this on startup 🤔

Execution error (IllegalArgumentException) at java.net.URL/fromURI (URL.java:721).
URI is not absolute

Full report at:
/tmp/clojure-18404171123413556751.edn

@rwaffen rwaffen changed the title build from tar feat: build alpine container from release tar.tgz Oct 12, 2024
@rwaffen
Copy link
Member Author

rwaffen commented Oct 12, 2024

also fixes: #129

@rwaffen
Copy link
Member Author

rwaffen commented Nov 8, 2024

hmpf... tried to somehow get the puppet gem into the load path or install somehow an agent but nope. not today. stuck with.

Execution error (LoadError) at org.jruby.RubyKernel/require (org/jruby/RubyKernel.java:1184).
(LoadError) no such file to load -- puppet

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

2 participants