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

use lts-slim instead of lts-alpine #36

Merged
merged 37 commits into from Jan 10, 2022
Merged

use lts-slim instead of lts-alpine #36

merged 37 commits into from Jan 10, 2022

Conversation

larshp
Copy link
Member

@larshp larshp commented Jan 9, 2022

there is something strange happening in lts-alpine when running "npm link", which makes it take 10seconds

this changes to use the lts-slim docker image instead, which dramatically reduces runtime(9+ seconds reduction)

@larshp larshp requested a review from a team as a code owner January 9, 2022 18:43
@larshp larshp marked this pull request as draft January 9, 2022 19:12
@larshp
Copy link
Member Author

larshp commented Jan 9, 2022

@larshp larshp changed the title disable npm update check wip Jan 10, 2022
@ErikSchierboom
Copy link
Member

@larshp Let me know when you want me to review!

@larshp larshp changed the title wip use lts-slim instead of lts-alpine Jan 10, 2022
@larshp larshp marked this pull request as ready for review January 10, 2022 09:50
@larshp
Copy link
Member Author

larshp commented Jan 10, 2022

ready for review

Copy link
Member

@ErikSchierboom ErikSchierboom left a comment

Choose a reason for hiding this comment

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

Too bad that Alpine is so slow, but the speedup is remarkable.

RUN apk add --no-cache git
RUN apt-get -y update
RUN apt-get -y upgrade
RUN apt-get -y install git
Copy link
Member

Choose a reason for hiding this comment

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

Completely optional: I think there's also a command you can run to cleanup things a bit to reduce the size of the image slightly: https://github.com/exercism/prolog-test-runner/blob/main/Dockerfile#L8

Copy link
Member Author

@larshp larshp Jan 10, 2022

Choose a reason for hiding this comment

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

added, f3b6c1f

there is something wrong with "npm link" in alpine or this setup somewhere, its beyond me, just needed an easy fix 😄

@larshp larshp merged commit 588218c into main Jan 10, 2022
@larshp larshp deleted the hvam/npm0901 branch January 11, 2022 09:39
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.

None yet

2 participants