first cobald tardis
This commit is contained in:
37
roles/cobald/files/cobald.Dockerfile
Normal file
37
roles/cobald/files/cobald.Dockerfile
Normal file
@@ -0,0 +1,37 @@
|
||||
FROM docker.io/library/centos:7
|
||||
|
||||
RUN yum update -y && \
|
||||
yum install -y python3 git && pip3 install --upgrade pip && \
|
||||
yum clean all && rm -rf /var/cache/yum
|
||||
|
||||
ARG REPOCOBALD=https://github.com/MatterMiners/cobald
|
||||
ARG REPOTARDIS=https://github.com/MatterMiners/tardis
|
||||
|
||||
RUN git clone $REPOCOBALD /usr/local/src/cobald && \
|
||||
git clone $REPOTARDIS /usr/local/src/tardis
|
||||
|
||||
#RUN mkdir /cobald && python3 -m venv /cobald && source /cobald/bin/activate &&\
|
||||
# pip3 install --upgrade pip && pip3 install cobald
|
||||
|
||||
# FIXME: run this as user!
|
||||
|
||||
RUN pip3 install --editable /usr/local/src/cobald && \
|
||||
pip3 install --editable /usr/local/src/cobald[contrib]
|
||||
|
||||
RUN pip3 install --editable /tardis&& \
|
||||
pip3 install --editable /tardis[contrib]
|
||||
|
||||
RUN mkdir /etc/cobald /var/log/cobald && \
|
||||
useradd -m -d /var/lib/cobald --no-log-init --system cobald
|
||||
|
||||
VOLUME /etc/cobald
|
||||
|
||||
USER cobald
|
||||
|
||||
ENV PYTHONPATH=/etc/cobald/modules
|
||||
|
||||
# pip3 install --editable .
|
||||
# pip3 install --editable .[contrib]
|
||||
# pip3 install --upgrade --editable /etc/cobald/modules/
|
||||
# su cobald -c "python3 -m cobald.daemon /etc/cobald/config.yaml"
|
||||
CMD python3 -m cobald.daemon /etc/cobald/config.yaml
|
Reference in New Issue
Block a user