added docker builder
This commit is contained in:
12
src/zeo/Dockerfile
Normal file
12
src/zeo/Dockerfile
Normal file
@@ -0,0 +1,12 @@
|
||||
FROM python:3.9-slim
|
||||
RUN apt-get update && apt-get install -y \
|
||||
gcc \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
RUN pip install ZODB==5.6.0
|
||||
RUN pip install ZEO==5.2.1
|
||||
ADD ./zeo.conf /etc/zeo.conf
|
||||
ADD ./run.sh /run.sh
|
||||
RUN chmod +x /run.sh
|
||||
VOLUME ["/var/zeo/fs", "/var/zeo/blobs"]
|
||||
EXPOSE 8100
|
||||
CMD /run.sh
|
||||
9
src/zeo/run.sh
Normal file
9
src/zeo/run.sh
Normal file
@@ -0,0 +1,9 @@
|
||||
#!/bin/sh
|
||||
|
||||
# We need to add a empty Data.fs if it does not exist
|
||||
# as zeo will not start without on.
|
||||
if [ ! -f /var/zeo/fs/Data.fs ]; then
|
||||
touch /var/zeo/fs/Data.fs
|
||||
fi
|
||||
|
||||
exec /usr/local/bin/runzeo -a 8100 -C /etc/zeo.conf
|
||||
9
src/zeo/zeo.conf
Normal file
9
src/zeo/zeo.conf
Normal file
@@ -0,0 +1,9 @@
|
||||
<zeo>
|
||||
address 8100
|
||||
read-only false
|
||||
</zeo>
|
||||
|
||||
<filestorage>
|
||||
path /var/zeo/fs/Data.fs
|
||||
blob-dir /var/zeo/blobs
|
||||
</filestorage>
|
||||
Reference in New Issue
Block a user