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

Splitting up some of the Docker build steps #8775

Merged
merged 2 commits into from
Dec 6, 2019

Conversation

craig-rueda
Copy link
Member

CATEGORY

Choose one

  • Bug Fix
  • Enhancement (new features, refinement)
  • Refactor
  • Add tests
  • Build / Development Environment
  • Documentation

SUMMARY

Some folks were seeing errors when building the updated Dockerfile due to the fact that we were bundling several NPM commands in a single RUN

Fixes #8762 ??

  • Splits up several install commands
  • Improves caching behavior by moving superset copy to final stage
  • Improves docker-compose init script

REVIEWERS

@dpgaspar

@codecov-io
Copy link

codecov-io commented Dec 5, 2019

Codecov Report

Merging #8775 into master will decrease coverage by 6.23%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #8775      +/-   ##
==========================================
- Coverage   72.07%   65.83%   -6.24%     
==========================================
  Files         123      482     +359     
  Lines       12844    24155   +11311     
  Branches        0     2770    +2770     
==========================================
+ Hits         9257    15903    +6646     
- Misses       3587     8074    +4487     
- Partials        0      178     +178
Impacted Files Coverage Δ
superset/assets/src/components/Checkbox.jsx 100% <0%> (ø)
.../assets/src/dashboard/reducers/dashboardFilters.js 88.46% <0%> (ø)
...ets/src/dashboard/components/dnd/DragDroppable.jsx 94.59% <0%> (ø)
superset/assets/src/components/EditableTitle.jsx 80.28% <0%> (ø)
...src/explore/components/controls/VizTypeControl.jsx 76.92% <0%> (ø)
...t/assets/src/components/InfoTooltipWithTrigger.jsx 38.46% <0%> (ø)
.../src/dashboard/components/UndoRedoKeylisteners.jsx 9.52% <0%> (ø)
...ts/src/explore/components/ExploreActionButtons.jsx 100% <0%> (ø)
.../src/dashboard/components/FilterTooltipWrapper.jsx 100% <0%> (ø)
...sets/src/dashboard/components/DashboardBuilder.jsx 79.68% <0%> (ø)
... and 349 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 665e947...837bd0b. Read the comment docs.

Dockerfile Outdated
COPY superset /app/superset

# First, we just wanna install requirements, which will allow us to utilize the cache
# in order to only build iff requirements change
Copy link
Member

Choose a reason for hiding this comment

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

NIT: iff typo

Copy link
Member Author

Choose a reason for hiding this comment

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

Fixed iff -> if and only if

Dockerfile Outdated Show resolved Hide resolved
@mistercrunch mistercrunch merged commit a44635e into apache:master Dec 6, 2019
@craig-rueda craig-rueda deleted the dockerfile_tweaks branch December 6, 2019 16:55
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 0.36.0 labels Feb 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels size/M 🚢 0.36.0
Projects
None yet
3 participants