-
Notifications
You must be signed in to change notification settings - Fork 492
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
Docker? Running the course-in-a-box on my (local) box #146
Comments
Hi @Newman5 I think docker is creating the
should sort the problem out. |
This is how I run it: docker run -i -t --rm -u 1000:1000 \
-p 4000:4000 -v $(pwd):/opt/app \
-v $(pwd)/.bundler/:/opt/bundler \
-e BUNDLE_PATH=/opt/bundler \
-w /opt/app ruby:2.7 bash \
-c "bundle install && bundle exec jekyll serve --watch -H 0.0.0.0" This maps the bundler path to a local folder called .bundler and solves the ownership issue. |
Apologies, there is an error in my example above... I think it only worked because on that machine I was user 1000. This works, without any chowns etc. if [ ! -d .bundler ] ; then mkdir .bundler ; fi
docker run -i -t --rm -u $(id -u):$(id -g) \
-p 4000:4000 -v $(pwd):/opt/app \
-v $(pwd)/.bundler/:/opt/bundler \
-e BUNDLE_PATH=/opt/bundler \
-w /opt/app ruby:2.7 bash \
-c "bundle install && bundle exec jekyll serve --watch -H 0.0.0.0" @Newman5: on your command line you had |
Hey Gang! I know that this hasn't been updated recently. But here is my issue.
I'd like to create a tutorial (that could become a course) using the course-in-a-box. I figure I'd like to get it running locally.
When following the instructions for Local from the readme,
I run this code:
I get this error:
/
is not writable.Bundler will use
/tmp/bundler20231120-7-lprlp17' as your home directory temporarily. There was an error while trying to write to
/home/nsl/opt/bundler/ruby/2.7.0`. It is likely that you need to grant writepermissions for that path.
Any help would be great!
The text was updated successfully, but these errors were encountered: