Last active
November 12, 2019 13:23
-
-
Save skrzyneckik/fcec7548f2d9484497cfd6a40bdd610f to your computer and use it in GitHub Desktop.
Docker for slack-export to generate zip for slack-export-viewer
This file contains hidden or 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
#issue token from https://api.slack.com/custom-integrations/legacy-tokens | |
docker build -t slack-export . | |
docker run -it --rm -e "TOKEN=your_token" -v ${PWD}:/opt/slack-export slack-export |
This file contains hidden or 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
FROM python:3.8-alpine | |
ENV TOKEN "" | |
RUN pip install slacker # https://github.com/os/slacker | |
RUN pip install pick # https://github.com/wong2/pick | |
#clone https://github.com/zach-snell/slack-export and place Dockerfile at the same location as slack-export.py | |
COPY . /opt/slack-export/ | |
WORKDIR /opt/slack-export | |
ENTRYPOINT python slack_export.py --token ${TOKEN} --zip your_file_name |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment