pacificclimate / pdp

The PCIC Data Portal - Server software to run the entire web application
GNU General Public License v3.0
1 stars 2 forks source link

Add dockerignore #186

Closed nikola-rados closed 3 years ago

nikola-rados commented 3 years ago

There is a small issue with get_commitish() when we apply a .dockerignore file. Since we remove the .git from the build context there is no git info for the method to pull. I have put a bandaid on it for the moment, but I would like to discuss other options.

Resolves #185.

rod-glover commented 3 years ago

I see what you're doing, and it seems reasonable enough, but maybe unnecessary?

What are your concerns with the gitpython solution? My own would be:

But a bigger question is:

Asides:

rod-glover commented 3 years ago

@nikola-rados : Not a big deal, but I have an interest in PDP: What do you make of the alternative (maybe cleaner) method that I noted is used in P2A and elsewehere?

rod-glover commented 3 years ago

@nikola-rados , it looks like this PR was never merged. I think whatever else is done we still need a .dockerignore, but we don't have one in the master branch.

nikola-rados commented 3 years ago

Oh sorry, I lost your comments in my ocean of emails.

I think the alternative is the way to go. I'll restore the branch and see if I can get things working.