-
Notifications
You must be signed in to change notification settings - Fork 615
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: remove built-in slack backend (#1581)
* refactor: remove slack backend * refactor: remove slack-rtm backend * test: remove slack tests * docs: remove slack and use slackv3 * chore: add slackv3 build to Dockerfile * feat: enable backend plugins directory on --init * chore: add slackv3 repo to backend image * refactor: simplify the final image * docs: fix slack refs in README * docs: add info to CHANGES
- Loading branch information
Showing
15 changed files
with
36 additions
and
3,207 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,30 @@ | ||
FROM python:3.9-slim as BUILD | ||
FROM python:3.9-slim as build | ||
WORKDIR /wheel | ||
COPY . . | ||
RUN apt update && apt install build-essential -y | ||
RUN apt update && apt install -y build-essential git | ||
RUN cd /tmp && \ | ||
git clone https://github.com/errbotio/err-backend-slackv3 slackv3 | ||
RUN pip3 wheel --wheel-dir=/wheel . \ | ||
errbot errbot[irc] errbot[slack] errbot[XMPP] errbot[telegram] | ||
-r /tmp/slackv3/requirements.txt wheel \ | ||
errbot errbot[irc] errbot[XMPP] errbot[telegram] && \ | ||
cp /tmp/slackv3/requirements.txt /wheel/slackv3-requirements.txt | ||
|
||
FROM python:3.9-slim | ||
COPY --from=BUILD /wheel /wheel | ||
FROM python:3.9-slim as base | ||
COPY --from=build /wheel /wheel | ||
RUN apt update && \ | ||
apt install -y git && \ | ||
cd /wheel && \ | ||
pip3 -vv install --no-cache-dir --no-index --find-links /wheel . \ | ||
errbot errbot[irc] errbot[slack] errbot[XMPP] errbot[telegram] && \ | ||
-r /wheel/slackv3-requirements.txt \ | ||
errbot errbot[irc] errbot[XMPP] errbot[telegram] && \ | ||
rm -rf /wheel /var/lib/apt/lists/* | ||
|
||
RUN useradd -m errbot | ||
|
||
FROM base | ||
EXPOSE 3141 3142 | ||
VOLUME /home/errbot | ||
WORKDIR /home/errbot | ||
USER errbot | ||
RUN errbot --init | ||
EXPOSE 3141 3142 | ||
VOLUME /home/errbot | ||
RUN git clone https://github.com/errbotio/err-backend-slackv3 backend-plugins/slackv3 | ||
ENTRYPOINT [ "/usr/local/bin/errbot" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.