You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you need any python packages installed you will need to create file called requiremenets.txt. If this file exists
225
232
the docker build process will use `pip install -r requirements.txt` to install these packages.
226
233
234
+
To use the latest version of pyClowder we recommend choosing a base image of your choice and install pyClowder by adding it to the requirements.txt file. An example Dockerfile is below:
235
+
236
+
```
237
+
# Base image
238
+
FROM ubuntu:20.04
239
+
240
+
# Creating workdir
241
+
WORKDIR /home/clowder
242
+
243
+
# Adding necessary code to container under workdir
# Install pyClowder and any other python dependencies
251
+
COPY requirements.txt .
252
+
RUN pip3 install -r requirements.txt
253
+
254
+
# Command to be run when container is run
255
+
CMD python3 <MY.CODE>.py
256
+
```
227
257
## SimpleExtractor
228
258
Motivation: design and implement a simple extractor to bridge Python developer and knowledge of PyClowder library. It requires little effort for Python developers to wrap their python code into Clowder's extractors.
0 commit comments