codewars / codewars-runner-cli

Old CodeRunner project. See https://github.com/codewars/runner instead.
GNU Affero General Public License v3.0
400 stars 141 forks source link

Ruby file permissions #102

Closed jhoffner closed 10 years ago

jhoffner commented 10 years ago
require 'yaml/store'
store = YAML::Store.new 'candy.yml'

is failing due to file access error.

xcthulhu commented 10 years ago

This appears to be due to the fact that in the Dockerfile, we have WORKDIR /codewars but codewarrior doesn't have permission to write there (it's owned by root).

I would suggest the following fix:

require 'yaml/store'
store = YAML::Store.new '/tmp/candy.yml'
xcthulhu commented 10 years ago

I'm going to close this, if that's alright.