apache / whimsy

Apache Whimsy
Apache License 2.0
67 stars 67 forks source link

Problems running setupmymac --docker #225

Open chrisdutz opened 4 months ago

chrisdutz commented 4 months ago

So when running setupmymac for docker, this also seems to fail:

Traceback (most recent call last):
        2: from /usr/bin/bundle2.7:23:in `<main>'
        1: from /usr/lib/ruby/2.7.0/rubygems.rb:294:in `activate_bin_path'
/usr/lib/ruby/2.7.0/rubygems.rb:275:in `find_spec_for_exe': Could not find 'bundler' (1.17.2) required by your /srv/whimsy/tools/Gemfile.lock. (Gem::GemNotFoundException)
To update to the latest version installed on your system, run `bundle update --bundler`.
To install the missing version, run `gem install bundler:1.17.2`
rake aborted!
system!() failed!
/srv/whimsy/rakefile:14:in `system!'
/srv/whimsy/rakefile:96:in `block (3 levels) in <top (required)>'
/srv/whimsy/rakefile:84:in `chdir'
/srv/whimsy/rakefile:84:in `block (2 levels) in <top (required)>'
/srv/whimsy/rakefile:83:in `each'
/srv/whimsy/rakefile:83:in `block in <top (required)>'
/var/lib/gems/2.7.0/gems/rake-13.2.1/exe/rake:27:in `<top (required)>'
Tasks: TOP => update
(See full trace by running task with --trace)
rake aborted!
Command failed with status (1): [docker compose run  --entrypoint 'bash -c "rake update"' web]
/private/var/whimsy/whimsy/Rakefile:464:in `block (2 levels) in <top (required)>'
/Library/Ruby/Gems/2.6.0/gems/rake-13.2.1/exe/rake:27:in `<top (required)>'
Tasks: TOP => docker:update
(See full trace by running task with --trace)
chrisdutz commented 4 months ago

Possibly might be related to me running things on an M2 Mac ...

sebbASF commented 4 months ago

I've not tried using setupmymac with Docker; I just followed the "Installation instructions" in Docker.md

chrisdutz commented 4 months ago

Hmmm ... well ... unfortunately - technology-wise - I have to start at absolute 0 for every bit of tech used in whimsy and even if I manage to chew through it, this new knowledge will have absolutely no benefit for my future work.

So I'll continue, but at a much slower pace and I'll keep on looking into things every time I have nothing else to do that's more pressing ...

jvz commented 4 months ago

Do you have Xcode installed? That's usually required.

chrisdutz commented 4 months ago

Well I got things working at that part ... seems the gem lock files all contained a footer indicating bundler 1.17.2, so I manually updated that version to the version installed by the script. Now the setupmymac --docker script finishes correctly. However when starting things, I get an error :

cdutz@MacBook-Pro-von-Christofer whimsy % rake docker:up
rake aborted!
ERROR: Must provide whimsy_dn value in .whimsy
/private/var/whimsy/whimsy/Rakefile:398:in `ldap_init'
/private/var/whimsy/whimsy/Rakefile:470:in `block (2 levels) in <top (required)>'
/Library/Ruby/Gems/2.6.0/gems/rake-13.2.1/exe/rake:27:in `<top (required)>'
Tasks: TOP => docker:up
(See full trace by running task with --trace)

Not quite sure what to do now, and I couldn't directly find anything in the documentaiton.

jvz commented 4 months ago

I'm not sure on the exact config here, but it sounds like you need to add your LDAP username to a config file for authentication.

chrisdutz commented 4 months ago

Yeah ... I did that and then I got further and then it failed with the next problem ... admittedly I've given up on this thing :-/