Skip to content

Conversation

@QSparks
Copy link

@QSparks QSparks commented Aug 1, 2025

Changes

  • Remove .git from .dockerignore
  • Remove .git after docker build

Versions now show up correctly:
PCIC Data Portal version 4.4.1 (i242.fix.version.filling:fb956e)

Demo on orca-pdp:
https://beehive.pacificclimate.org/orca-pdp/portal/gridded_observations/map/

Resolves #242

@QSparks QSparks self-assigned this Aug 1, 2025
Copy link
Contributor

@corviday corviday left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice detective work! Makes sense, and I have verified that the demo now displays a version.

@Nospamas
Copy link

Nospamas commented Aug 1, 2025

I think that you include .git at any point it'll be included as a layer within the image and therefore you won't get the space saving benefit of not including it in the first place. Doesn't look like this effects image size too much however: historic image sizes and where this image's size comes from

Though 500MB images are a little concerning in themselves, we'll have to take that into another issue 🛩️

Copy link

@Nospamas Nospamas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@QSparks QSparks merged commit 29b2dd5 into py3 Aug 1, 2025
5 checks passed
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

Successfully merging this pull request may close these issues.

3 participants