-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
Docker Hub Sample images #50046
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
Docker Hub Sample images #50046
Changes from 5 commits
5ab51d1
e48ced4
335a884
17a56c8
2044ddf
ec6484c
555df08
1a5a835
efb44b1
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
FROM python:3.10.8-alpine | ||
|
||
RUN apk update & apk upgrade | ||
RUN apk add build-base | ||
|
||
RUN python -m pip install \ | ||
cython \ | ||
hypothesis \ | ||
numpy \ | ||
pytest \ | ||
pytest-asyncio \ | ||
pytz \ | ||
python-dateutil \ | ||
versioneer | ||
|
||
WORKDIR /home/pandas | ||
CMD ["/bin/sh"] |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
FROM quay.io/condaforge/mambaforge | ||
|
||
RUN apt update && apt upgrade -y | ||
RUN DEBIAN_FRONTEND=noninteractive apt install -y tzdata | ||
|
||
RUN mamba env create -f \ | ||
https://raw.githubusercontent.com/pandas-dev/pandas/main/environment.yml | ||
|
||
RUN mamba init | ||
RUN echo "\nmamba activate pandas-dev" >> ~/.bashrc | ||
RUN mamba clean --all -qy | ||
|
||
WORKDIR /home/pandas |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
FROM quay.io/condaforge/mambaforge | ||
|
||
RUN apt update && apt upgrade -y | ||
RUN DEBIAN_FRONTEND=noninteractive apt install -y tzdata | ||
|
||
RUN mamba create -n pandas-dev \ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is disconnected from requirements-minimal.txt at the moment. Could create a separate env file, break this up into two steps with a pip install, or leave as is |
||
cython \ | ||
hypothesis \ | ||
numpy \ | ||
pytest \ | ||
pytest-asyncio \ | ||
python=3.10.8 \ | ||
pytz \ | ||
python-dateutil \ | ||
versioneer | ||
|
||
RUN mamba init | ||
RUN echo "\nmamba activate pandas-dev" >> ~/.bashrc | ||
RUN mamba clean --all -qy | ||
|
||
WORKDIR /home/pandas |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,12 @@ | ||
FROM python:3.10.8 | ||
WORKDIR /home/pandas | ||
|
||
RUN apt-get update && apt-get -y upgrade | ||
RUN apt-get install -y build-essential | ||
RUN apt update && apt -y upgrade | ||
|
||
# hdf5 needed for pytables installation | ||
RUN apt-get install -y libhdf5-dev | ||
|
||
RUN python -m pip install --upgrade pip | ||
RUN python -m pip install --use-deprecated=legacy-resolver \ | ||
-r https://raw.githubusercontent.com/pandas-dev/pandas/main/requirements-dev.txt | ||
|
||
WORKDIR /home/pandas | ||
CMD ["/bin/bash"] |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
FROM python:3.10.8 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Could we use slim? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Oh nice idea. Would have to do a bit more research though - the slim packages don't include compilers. Could get them with There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. OK this was an awesome idea. So if you just install gcc and g++ you get from the current 1.06 GB image size down to 475 MB |
||
|
||
RUN apt update && apt upgrade -y | ||
|
||
RUN python -m pip install \ | ||
cython \ | ||
hypothesis \ | ||
numpy \ | ||
pytest \ | ||
pytest-asyncio \ | ||
pytz \ | ||
python-dateutil \ | ||
versioneer | ||
|
||
WORKDIR /home/pandas | ||
CMD ["/bin/bash"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we maintain the minimal set with files?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Absolutely. One option is to create a
requirements-dev-minimal.txt
file in this CI folder, then can just execute aCOPY
command within the Dockerfile and install from that