diff --git a/docker/Dockerfile b/docker/Dockerfile index 471270da..c22cbd51 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -3,7 +3,7 @@ FROM debian:bookworm ADD etc/apt /etc/apt/ -RUN apt-get update && apt-get -y install vitastor qemu-system-x86 qemu-system-common qemu-block-extra qemu-utils jq nfs-common && apt-get clean +RUN apt-get update && apt-get -y install vitastor udev systemd qemu-system-x86 qemu-system-common qemu-block-extra qemu-utils jq nfs-common && apt-get clean ADD sleep.sh /usr/bin/ ADD install.sh /usr/bin/ ADD scripts /opt/scripts/ diff --git a/docker/etc/systemd/system/vitastor-host.service b/docker/etc/systemd/system/vitastor-host.service index b02c71ac..56f4cf8f 100644 --- a/docker/etc/systemd/system/vitastor-host.service +++ b/docker/etc/systemd/system/vitastor-host.service @@ -7,7 +7,7 @@ PartOf=vitastor.target [Service] Restart=always EnvironmentFile=/etc/vitastor/docker.conf -ExecStart=bash -c 'docker run --rm -i -v /etc/vitastor:/etc/vitastor -v /dev:/dev \ +ExecStart=bash -c 'docker run --rm -i -v /etc/vitastor:/etc/vitastor -v /dev:/dev -v /run:/run \ --privileged --log-driver none --network host --name vitastor vitastor:$VITASTOR_VERSION \ sleep.sh' ExecStartPost=udevadm trigger