Skip to content
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

Binary File Access #20

Open
lapplislazuli opened this issue Jul 8, 2021 · 2 comments
Open

Binary File Access #20

lapplislazuli opened this issue Jul 8, 2021 · 2 comments

Comments

@lapplislazuli
Copy link
Collaborator

When I started to play with the docker-compose in #17,
I first added the volume in read only like such:

version: '3.8'

services:
  ThreeFixes_Example:
    image: tritlo/endemic:latest
    volumes:
      - ./:/input:ro
    environment:
      REPAIR_TARGET: /input/ThreeFixes.hs
      LOG_LEVEL: "DEBUG"
    oom_kill_disable: true

That gives the following (interesting) Error

Attaching to examples_ThreeFixes_Example_1
ThreeFixes_Example_1  | Up to date
ThreeFixes_Example_1  | endemic: /input/ThreeFixes.hi: openBinaryFile: permission denied (Read-only file system)
examples_ThreeFixes_Example_1 exited with code 1

Which is weird to me.
Can we use a Read-Only-BinaryFile ?

@Tritlo
Copy link
Owner

Tritlo commented Jul 8, 2021

Hey Leo! We need write access as well, since we actually compile the programs. So when you run it on ThreeFixes.hs, it generates the ThreeFixes.hi as output, which has to be stored somewhere!

@lapplislazuli
Copy link
Collaborator Author

Ah this makes sense, so it is file-read-only but directory-read-write?

This was referenced Jul 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants