From f36827f9cc27a1b4615dc111a359dbe5407e036e Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Wed, 26 Feb 2020 01:04:57 +0200 Subject: [PATCH] Add simple mbc script for docker --- Dockerfile | 1 + Dockerfile.ci | 1 + docker/mbc.sh | 3 +++ 3 files changed, 5 insertions(+) create mode 100755 docker/mbc.sh diff --git a/Dockerfile b/Dockerfile index 9a9e023..aee0608 100644 --- a/Dockerfile +++ b/Dockerfile @@ -33,6 +33,7 @@ RUN apk add --no-cache --virtual .build-deps \ # TODO remove pillow, magic and feedparser when maubot supports installing dependencies COPY . /opt/maubot +COPY ./docker/mbc.sh /usr/local/bin/mbc COPY --from=frontend-builder /frontend/build /opt/maubot/frontend ENV UID=1337 GID=1337 XDG_CONFIG_HOME=/data VOLUME /data diff --git a/Dockerfile.ci b/Dockerfile.ci index 58a91f2..76f3e1c 100644 --- a/Dockerfile.ci +++ b/Dockerfile.ci @@ -28,6 +28,7 @@ RUN apk add --no-cache --virtual .build-deps \ # TODO remove pillow, magic and feedparser when maubot supports installing dependencies COPY . /opt/maubot +COPY ./docker/mbc.sh /usr/local/bin/mbc ENV UID=1337 GID=1337 XDG_CONFIG_HOME=/data VOLUME /data diff --git a/docker/mbc.sh b/docker/mbc.sh new file mode 100755 index 0000000..bffbd5e --- /dev/null +++ b/docker/mbc.sh @@ -0,0 +1,3 @@ +#!/bin/sh +cd /opt/maubot +python3 -m maubot.cli "$@"