Apply file permissions after copying files to workspace

This commit is contained in:
Sebastian Serth
2020-04-17 23:51:13 +02:00
parent 8fd81fb05e
commit 0a989e31ae

View File

@ -162,6 +162,7 @@ class DockerClient
create_workspace_file(container: container, file: file) create_workspace_file(container: container, file: file)
end end
end end
FileUtils.chmod_R('+rwX', self.class.local_workspace_path(container))
rescue Docker::Error::NotFoundError => error rescue Docker::Error::NotFoundError => error
Rails.logger.info('create_workspace_files: Rescued from Docker::Error::NotFoundError: ' + error.to_s) Rails.logger.info('create_workspace_files: Rescued from Docker::Error::NotFoundError: ' + error.to_s)
end end