Added admin interface to manage channels and enabled plugins (#9)
* Added base admin login/logout flows * Ignore local database * Channel model * Admin interface for channels and plugins * Added database tests along with workflows * Added some docstrings * Ignore .coverage file * Creating plugins docs WIP * Documentation * Black everything * Some documentation * Coverage for the plugins package as well * DB Fixes * Absolute FROM in Dockerfile * Database and logging fixes * Slack: Support private channels * Added pre-commit * black'd * Fixed UserQuery.create * Fixed ChannelPluginQuery.create exists call * Added ChannelPlugin menu for debugging * Ignore sqlite databases * Updated contributing docs
This commit is contained in:
parent
456d144a7d
commit
57b413dd1b
45 changed files with 2210 additions and 421 deletions
|
@ -1,20 +1,26 @@
|
|||
FROM alpine:3.11
|
||||
FROM docker.io/library/alpine:3.11
|
||||
|
||||
ENV PYTHON_VERSION=3.8.2-r1
|
||||
ENV APP_PORT 8080
|
||||
ENV BUILD_DIR /tmp/build
|
||||
ENV APP_PATH /etc/butterrobot
|
||||
|
||||
WORKDIR ${BUILD_DIR}
|
||||
COPY README.md ${BUILD_DIR}/README.md
|
||||
COPY poetry.lock ${BUILD_DIR}/poetry.lock
|
||||
COPY pyproject.toml ${BUILD_DIR}/pyproject.toml
|
||||
COPY ./butterrobot ${BUILD_DIR}/butterrobot
|
||||
COPY ./butterrobot_plugins_contrib ${BUILD_DIR}/butterrobot_plugins_contrib
|
||||
COPY ./butterrobot ${BUILD_DIR}/butterrobot
|
||||
RUN apk --update add curl python3-dev==${PYTHON_VERSION} gcc musl-dev libffi-dev openssl-dev && \
|
||||
pip3 install poetry && \
|
||||
poetry build && \
|
||||
pip3 install ${BUILD_DIR}/dist/butterrobot-*.tar.gz && \
|
||||
rm -rf ${BUILD_DIR}
|
||||
rm -rf ${BUILD_DIR} && \
|
||||
mkdir ${APP_PATH} && \
|
||||
chown -R 1000:1000 ${APP_PATH}
|
||||
|
||||
USER 1000
|
||||
WORKDIR ${APP_PATH}
|
||||
COPY ./docker/bin/start-server.sh /usr/local/bin/start-server
|
||||
|
||||
CMD ["/usr/local/bin/start-server"]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue