Skip to content

Commit 393beb5

Browse files
authored
Merge pull request #888 from Kaggle/quick-iteration-kaggle-libs-dev
Allow quick iteration when developing kaggle librairies.
2 parents 90cb774 + 50e7b4a commit 393beb5

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

dev.Dockerfile

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# This Dockerfile builds an image to quickly iterate on the kaggle libraries.
2+
#
3+
# Create a new image with the latest kaggle librairies using the latest image
4+
# built by CI with a successful test run as the base.
5+
#
6+
# Usage:
7+
# cd path/to/docker-python
8+
# docker build -t kaggle/python-dev -f dev.Dockerfile .
9+
#
10+
# # you can run a container using the image using:
11+
# docker run -it --rm kaggle/python-dev /bin/bash
12+
#
13+
# # you can run the tests against this new image using:
14+
# ./test -i kaggle/python-dev -p test_user_secrets.py
15+
#
16+
FROM gcr.io/kaggle-images/python:staging
17+
18+
ADD patches/kaggle_gcp.py /root/.local/lib/python3.7/site-packages/kaggle_gcp.py
19+
ADD patches/kaggle_secrets.py /root/.local/lib/python3.7/site-packages/kaggle_secrets.py
20+
ADD patches/kaggle_session.py /root/.local/lib/python3.7/site-packages/kaggle_session.py
21+
ADD patches/kaggle_web_client.py /root/.local/lib/python3.7/site-packages/kaggle_web_client.py
22+
ADD patches/kaggle_datasets.py /root/.local/lib/python3.7/site-packages/kaggle_datasets.py

0 commit comments

Comments
 (0)