surzycki / picobox

Sane Docker development environment for humans.
MIT License
21 stars 0 forks source link

support /usr/local/bin/bash? #2

Open tomichj opened 7 years ago

tomichj commented 7 years ago

Hello, I tried to give picobox a whirl and it failed during picobox install:

INSTALL PICOBOX
-------------------------------
Docker version 17.09.0-ce, build afdb6d4 present
Setting up Config
Setting up Shell
     error  shell not supported /usr/local/bin/bash:darwin

I'm using Bash via homebrew, i.e. brew install bash on Mac OS.

Thanks!

surzycki commented 7 years ago

Hi Justin,

If I am not mistaken, the only difference in using brew installed bash is that the location of bash is different (/usr/local/bin/bash).

Are you still using the .profile to configure your shell (and not .bashrc for instance)?

tomichj commented 7 years ago

Hello!

Both the location and version of bash are different. Homebrew generally provides the latest: bash 4.4.12(1)-release at the moment, while (on Sierra, haven't upgraded) Apple provides 3.2.57(1)-release.

I use .bashrc, with a .bash_profile that just sources .bashrc. My dotfiles are published on github, you can see them here if you're interested:

https://github.com/tomichj/dotfiles

Thank you!

surzycki commented 6 years ago

Thanks!

Then newest version should work 0.3.41, let me know if there are any other issues

Stefan

tomichj commented 6 years ago

Thanks! I updated to the newest gem, and gave it a whirl. I get farther... picobox install no longer fails. But unfortunately picobox init rails fails. It may well be something wrong with my docker installation... I did a fresh docker install, with restarts, but I get an error when attempting to init a picobox:

% picobox init rails
  Initializing Project
   identical  /Users/tomichj/Projects/picobox-test-rails/.picobox/project.ini
  Project Initialized
  Adding rails box
   identical  /Users/tomichj/Projects/picobox-test-rails/.picobox/start
       chmod  /Users/tomichj/Projects/picobox-test-rails/.picobox/start
   identical  /Users/tomichj/Projects/picobox-test-rails/docker-compose.yml
   identical  /Users/tomichj/Projects/picobox-test-rails/Dockerfile
  Service built
  Picobox starting [-]  Docker gave an error
  Check to see if docker is running
  Try running 'docker ps'

Another side effect: there's some aliasing of rails that breaks rails invocations outside of an existing rails project. Example:

tomichj@lard:~/Projects% which rails
/Users/tomichj/.rbenv/shims/rails
tomichj@lard:~/Projects% rails new test-rails-new
Could not locate Gemfile or .bundle/ directory

Using rbenv 1.1.1.

Thanks! Let me know if I can pitch in.