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

chore: a bunch of dependency updates #544

Merged
merged 13 commits into from
Feb 11, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 4 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
FROM python:3.7-alpine
Copy link
Member

Choose a reason for hiding this comment

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

why this change?

Copy link
Member

Choose a reason for hiding this comment

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

@ableuler why are we changing the base image? Was this also a security vulnerability?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Dependabot upgraded the cryptography package which doesn't play well with the alpine based image (we'd have to add a rust compiler). After switching to the debian based python image the package is pip-installable again. But I quickly wanted to try with the -slim base image and compare sizes, should have labeled it as WIP.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The slim image is actually smaller than the resulting alpine image with the necessary installs.

Copy link
Member

Choose a reason for hiding this comment

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

double win 🥇

FROM python:3.7-slim

LABEL maintainer="info@datascience.ch"

RUN apk update && \
apk add --no-cache curl build-base libffi-dev openssl-dev && \
pip install --no-cache-dir --disable-pip-version-check -U pip && \
RUN pip install --no-cache-dir --disable-pip-version-check -U pip && \
pip install --no-cache-dir --disable-pip-version-check pipenv && \
addgroup -g 1000 kyaku && \
adduser -S -u 1000 -G kyaku kyaku
groupadd -g 1000 kyaku && \
useradd -u 1000 -g kyaku kyaku

# Install all packages
COPY Pipfile Pipfile.lock /renku-notebooks/
Expand Down
Loading