Skip to content

Commit

Permalink
[docs/chore]: docker-compose added and read-me updated
Browse files Browse the repository at this point in the history
  • Loading branch information
keenborder786 committed May 25, 2023
1 parent d3b4e7c commit f20825a
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 3 deletions.
12 changes: 11 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
# Upwork SlackBot

## TO-DO
## Get SLACK_BOT_TOKEN and SLACK_APP_TOKEN


## Update the ENV variables in docker-compose


## Run the Bot

```
docker-compose up
```
14 changes: 14 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
version: '3'
services:
upwork_slackbot:
image: upwork_slackbot:1.0
build:
context: .
dockerfile: Dockerfile
environment:
- CONSUMER_KEY=""
- CONSUMER_SECRET=""
- QUERY=Python
- SLACK_BOT_TOKEN=""
- SLACK_APP_TOKEN=""
- CHANNEL_ID=C05856EUC8L
5 changes: 3 additions & 2 deletions dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,14 @@ RUN echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/so

# Install Chrome
RUN wget -q https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
RUN apt-get install ./google-chrome-stable_current_amd64.deb
RUN apt-get update
RUN apt-get -y install ./google-chrome-stable_current_amd64.deb

# Copy all the relevant Files
COPY slack_bot/ /opt/upwork_slackbot/slack_bot/
COPY upwork_bot/ /opt/upwork_slackbot/upwork_bot/
COPY config.py /opt/upwork_slackbot/config.py
COPY main.py /opt/upwork_slackbot/main.py

ENTRYPOINT ["/opt/conda/envs/upwork_scrapper/bin/python","-u", "/opt/upwork_scrapper/main.py"]
ENTRYPOINT ["/opt/conda/envs/upwork_scrapper/bin/python","-u", "/opt/upwork_slackbot/main.py"]

0 comments on commit f20825a

Please sign in to comment.