Skip to content

Commit 7954ecb

Browse files
committed
Cleanup constraint.txt file from datascience image and use index instead
1 parent e4f0a2c commit 7954ecb

File tree

5 files changed

+48
-204
lines changed

5 files changed

+48
-204
lines changed

ir/ir-base/readme.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Quick reference
2+
* Mantained by: [Deepnote](https://deepnote.com/)
3+
4+
5+
## IR tags
6+
[`4.0.3`, `4.2.0`]
7+
8+
9+
## What is Deepnote IR ?
10+
11+
This repository contains official Deepnote IR images that are ready to use in deepnote.com. The image is composed of the R installation in the correct version and the installed R Jupyter kernel https://github.com/IRkernel/IRkernel.
12+
13+
If you are missing something in this image, feel free to build your own on top of this and customize it to your needs.
14+
15+
## Create your own on top of our base
16+
17+
```
18+
FROM deepnote/ir:4.2.0
19+
20+
RUN R -e "install.packages('tidyverse', repos='https://cloud.r-project.org', dependencies=TRUE)"
21+
22+
```
23+
24+
## Image Variants
25+

python/datascience/Dockerfile.datascience

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@ ARG PYTHON_VERSION=3.8
22
ARG CIRCLE_PULL_REQUEST
33
FROM deepnote/python:${PYTHON_VERSION}${CIRCLE_PULL_REQUEST:+-ra-${CIRCLE_PULL_REQUEST##*/}}
44

5-
RUN pip install --upgrade pip
6-
7-
85
# Add the requirements files
96
ADD requirements-3.11+.txt /requirements-3.11+.txt
107
ADD requirements-below-3.11.txt /requirements-below-3.11.txt
@@ -13,8 +10,6 @@ ADD constraints.txt /constraints.txt
1310
#Determine the Python version and set the version-specifications file
1411
ARG PYTHON_VERSION
1512

16-
RUN python -m pip install --upgrade setuptools pip
17-
1813
RUN if [ "$(printf '%s\n' "$PYTHON_VERSION" "3.11" | sort -V | head -n1)" = "3.11" ]; then \
1914
mv "requirements-3.11+.txt" "requirements.txt" \
2015
; else \
@@ -25,8 +20,9 @@ RUN if [ "$(printf '%s\n' "$PYTHON_VERSION" "3.11" | sort -V | head -n1)" = "3.1
2520
# Combine all RUN commands into one to minimize the number of layers
2621
RUN apt-get update \
2722
&& apt-get install -y --no-install-recommends gcc \
28-
&& pip install --no-cache-dir -r requirements.txt -c constraints.txt \
23+
&& pip install --no-cache-dir -r requirements.txt -c tk.deepnote.com/constraints${PYTHON_VERSION}.txt \
2924
&& apt-get purge -y gcc \
3025
&& apt-get autoremove -y \
3126
&& apt-get clean \
3227
&& rm -rf /var/lib/apt/lists/* /root/.cache
28+

python/datascience/constraints.txt

Lines changed: 0 additions & 147 deletions
This file was deleted.

python/readme.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Quick reference
2+
* Maintained by: [Deepnote](https://deepnote.com/)
3+
4+
## Python image
5+
* [`3.8`, `3.9`, `3.10`, `3.11`](https://github.com/deepnote/environments/tree/main/python/python)
6+
7+
8+
## How to use this image
9+
10+
### Create a Dockerfile in your Deepnote project
11+
12+
13+
```
14+
FROM deepnote/python:3.9
15+
16+
WORKDIR /usr/src/app
17+
18+
COPY requirements.txt ./
19+
RUN pip install --no-cache-dir -r requirements.txt
20+
21+
```

readme.md

Lines changed: 0 additions & 51 deletions
This file was deleted.

0 commit comments

Comments
 (0)