Skip to content
This repository has been archived by the owner on Mar 29, 2023. It is now read-only.

Using one Dockerfile for Linux and Mac #37

Open
ritik-malik opened this issue Aug 24, 2021 · 0 comments
Open

Using one Dockerfile for Linux and Mac #37

ritik-malik opened this issue Aug 24, 2021 · 0 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@ritik-malik
Copy link
Member

Currently MARS uses separate Dockerfile for Linux and Mac. They can be found here:

The idea of 2 Dockerfile is being used because in Linux the files created inside the Docker container are owned by root. So the normal user will face permission issue on the PDF and log files. However, in Mac, no such problem is encountered and the files are owned by the logged in user.

In Linux we need to create a user in the container with the same permissions as of logged in user. This allows the files to be owned by that user. This step forced us to create a separate Dockerfile which is platform dependent. The automation script detects the platform and proceeds with the correct Dockerfile accordingly.

However, this is not an ideal case solution. We would like to have only 1 Dockerfile. Any new approach to resolve this issue is welcome!

@ritik-malik ritik-malik added enhancement New feature or request help wanted Extra attention is needed labels Aug 24, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant