forked from lithops-cloud/lithops
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsingularity-template.def
More file actions
46 lines (36 loc) · 841 Bytes
/
singularity-template.def
File metadata and controls
46 lines (36 loc) · 841 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
Bootstrap: docker
# Python 3.7
#FROM python:3.7-slim-buster
# Python 3.8
#FROM python:3.8-slim-buster
# Python 3.9
#FROM python:3.9-slim-buster
# Python 3.10
#FROM: python:3.10-slim-buster
# Python 3.11
FROM: python:3.11-slim-buster
%post
apt-get update && apt-get install -y \
zip \
&& rm -rf /var/lib/apt/lists/*
pip install --upgrade setuptools six pip \
&& pip install --no-cache-dir \
boto3 \
pika \
flask \
gevent \
redis \
requests \
PyYAML \
numpy \
cloudpickle \
ps-mem \
tblib \
psutil
%files
lithops_singularity.zip /lithops/lithops_singularity.zip
%post
cd /lithops
unzip lithops_singularity.zip && rm lithops_singularity.zip
%runscript
python3 /lithops/lithopsentry.py $AMQP_URL