AcademySoftwareFoundation / rawtoaces

RAW to ACES Utility
141 stars 47 forks source link

PR: Add "Dockerfile". #118

Closed KelSolaar closed 10 months ago

KelSolaar commented 4 years ago

This PR adds a Dockerfile to run rawtoaces in a container with Docker:

Assuming that you have Docker and this PR pulled:

Building the Container

Note that the compilation of ceres-solver requires a significant amount of memory, well over the 2Go that Docker allocates by default. Thus you will need to increase the memory in Docker preferences: Preferences --> Resources --> Advanced, 8Go should be enough.

docker build -f "Dockerfile" -t rawtoaces:latest "."

Running the Container

docker run -it --rm -v $PWD:/tmp -w /tmp rawtoaces:latest rawtoaces IMG_1234.CR2
notwa commented 2 years ago

as a bit of an aside, I've tweaked your dockerfile to make it a little more robust, and shrunk the final image by not including developer tools. note, however, that my version isn't suitable as a pull request since I've hardcoded certain commits to checkout (including those that come from a fork (#108)), but I welcome anyone to adapt it. https://gist.github.com/notwa/89e05a60ea5923114d28302e17bd3295

antond-weta commented 11 months ago

@KelSolaar could you please resolve the conflicts there?

linux-foundation-easycla[bot] commented 10 months ago

CLA Signed

The committers listed above are authorized under a signed CLA.

KelSolaar commented 10 months ago

Should be good @antond-weta! I will work on the ASWF based container in another PR.