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

Problems running setupmymac --docker #225

Open
chrisdutz opened this issue Apr 21, 2024 · 7 comments
Open

Problems running setupmymac --docker #225

chrisdutz opened this issue Apr 21, 2024 · 7 comments

Comments

@chrisdutz
Copy link

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
Copy link
Author

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

@sebbASF
Copy link
Contributor

sebbASF commented Apr 21, 2024

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

@chrisdutz
Copy link
Author

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
Copy link
Member

jvz commented Apr 22, 2024

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

@chrisdutz
Copy link
Author

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
Copy link
Member

jvz commented Apr 25, 2024

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
Copy link
Author

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 :-/

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

3 participants