What happened:
Build failed with permission error when running "make build-run". Added --trace to the build option in the Dockerfile to display the error. Full transcript:
[bryon@Bryons-MacBook-Pro aroworkshop]$ make build-run
docker build -t azch/aro-site:latest -f Dockerfile .
Sending build context to Docker daemon 45.82MB
Step 1/8 : FROM jekyll/builder AS build
---> d92f7574c8c5
Step 2/8 : WORKDIR /src/app
---> Using cache
---> 4aaca41da8f0
Step 3/8 : COPY . .
---> 39235f15f555
Step 4/8 : RUN mkdir _site && jekyll build --future --trace
---> Running in ecdaa9570df0
ruby 2.6.5p114 (2019-10-01 revision 67812) [x86_64-linux-musl]
Configuration file: /src/app/_config.yml
/usr/local/lib/ruby/2.6.0/fileutils.rb:239:in `mkdir': Permission denied @ dir_s_mkdir - /src/app/.jekyll-cache (Errno::EACCES)
from /usr/local/lib/ruby/2.6.0/fileutils.rb:239:in `fu_mkdir'
from /usr/local/lib/ruby/2.6.0/fileutils.rb:217:in `block (2 levels) in mkdir_p'
from /usr/local/lib/ruby/2.6.0/fileutils.rb:215:in `reverse_each'
from /usr/local/lib/ruby/2.6.0/fileutils.rb:215:in `block in mkdir_p'
from /usr/local/lib/ruby/2.6.0/fileutils.rb:200:in `each'
from /usr/local/lib/ruby/2.6.0/fileutils.rb:200:in `mkdir_p'
from /usr/gem/gems/jekyll-4.0.0/lib/jekyll/cache.rb:184:in `dump'
from /usr/gem/gems/jekyll-4.0.0/lib/jekyll/cache.rb:101:in `[]='
from /usr/gem/gems/jekyll-4.0.0/lib/jekyll/cache.rb:45:in `clear_if_config_changed'
from /usr/gem/gems/jekyll-4.0.0/lib/jekyll/site.rb:113:in `reset'
from /usr/gem/gems/jekyll-4.0.0/lib/jekyll/site.rb:33:in `initialize'
from /usr/gem/gems/jekyll-4.0.0/lib/jekyll/commands/build.rb:30:in `new'
from /usr/gem/gems/jekyll-4.0.0/lib/jekyll/commands/build.rb:30:in `process'
from /usr/gem/gems/jekyll-4.0.0/lib/jekyll/command.rb:89:in `block in process_with_graceful_fail'
from /usr/gem/gems/jekyll-4.0.0/lib/jekyll/command.rb:89:in `each'
from /usr/gem/gems/jekyll-4.0.0/lib/jekyll/command.rb:89:in `process_with_graceful_fail'
from /usr/gem/gems/jekyll-4.0.0/lib/jekyll/commands/build.rb:18:in `block (2 levels) in init_with_program'
from /usr/gem/gems/mercenary-0.3.6/lib/mercenary/command.rb:220:in `block in execute'
from /usr/gem/gems/mercenary-0.3.6/lib/mercenary/command.rb:220:in `each'
from /usr/gem/gems/mercenary-0.3.6/lib/mercenary/command.rb:220:in `execute'
from /usr/gem/gems/mercenary-0.3.6/lib/mercenary/program.rb:42:in `go'
from /usr/gem/gems/mercenary-0.3.6/lib/mercenary.rb:19:in `program'
from /usr/gem/gems/jekyll-4.0.0/exe/jekyll:15:in `<top (required)>'
from /usr/gem/bin/jekyll:23:in `load'
from /usr/gem/bin/jekyll:23:in `<main>'
The command '/bin/sh -c mkdir _site && jekyll build --future --trace' returned a non-zero code: 1
What you expected to happen:
Build should have completed without error
How to reproduce it (as minimally and precisely as possible):
Clone the aroworkshop repo
run make build-run
What happened: Build failed with permission error when running "make build-run". Added --trace to the build option in the Dockerfile to display the error. Full transcript:
What you expected to happen: Build should have completed without error
How to reproduce it (as minimally and precisely as possible): Clone the aroworkshop repo run make build-run
Anything else we need to know?:
Environment: