picobox
picobox copied to clipboard
support /usr/local/bin/bash?
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!
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)?
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!
Thanks!
Then newest version should work 0.3.41, let me know if there are any other issues
Stefan
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.