Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Teams translation #222

Open
wants to merge 15 commits into
base: discordpy-v1
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

*~
*.bat
config.json
/config
data/serverdict_backup
data/serverdict

Expand All @@ -9,3 +9,5 @@ __pychache__/
*.py[cod]

data/gym_data.json
venv/
.idea
40 changes: 40 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
FROM python:3.6-alpine

ENV MEOWTH_INSTALLDIR="/opt/meowth"
ENV MEOWTH_CONFIG=$MEOWTH_INSTALLDIR/config/config.json

RUN addgroup -g 1000 meowth && adduser -u 1000 -S -G meowth meowth

RUN mkdir -p $MEOWTH_INSTALLDIR
COPY requirements.txt $MEOWTH_INSTALLDIR/requirements.txt

RUN apk add --update build-base git && \
python3 -m pip install -r $MEOWTH_INSTALLDIR/requirements.txt

RUN python3 -m pip install -U git+https://github.com/Rapptz/discord.py@rewrite && \
apk del build-base git make gcc g++

COPY ./pokegifs $MEOWTH_INSTALLDIR/pokegifs
COPY ./meowth $MEOWTH_INSTALLDIR/meowth
COPY ./locale $MEOWTH_INSTALLDIR/locale
COPY ./images $MEOWTH_INSTALLDIR/images
COPY ./data $MEOWTH_INSTALLDIR/data
COPY ./config $MEOWTH_INSTALLDIR/config
COPY launcher.py LICENSE emoji.rar $MEOWTH_INSTALLDIR/


RUN mkdir $MEOWTH_INSTALLDIR/logs && \
chown meowth:meowth -R $MEOWTH_INSTALLDIR/config $MEOWTH_INSTALLDIR/logs

RUN apk del build-base git make gcc g++ && \
rm -rf /var/cache/apk/* /root/* /root/.cache


USER meowth

VOLUME [ "$MEOWTH_INSTALLDIR/logs","$MEOWTH_INSTALLDIR/config" ]

WORKDIR $MEOWTH_INSTALLDIR

ENTRYPOINT ["python3", "launcher.py"]

24 changes: 23 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,29 @@ https://discord.gg/hhVjAN8

# Install your own Meowth

## Dependancies
## Using [docker](https://docs.docker.com/)

1. Install [Docker CE](https://docs.docker.com/install/) on your server.

1. Create a configuration directory where your configuration and all your generated files will reside.
Let's assume it's in the current directory : `config`

1. Optionally create a logs directory, if you want to easily have access to your logging files.
Let's assume it's in the current directory : `logs`

1. Now build your docker image. Place yourself in the sources directory you retreived via GIT:

`docker build . --tag meowth2`

1. Run the docker image:
```
docker run -d --restart unless-stopped --name meowth2 \
-v $PWD/config:/opt/meowth/config \
-v $PWD/logs:/opt/meowth/logs \
meowth2
```

## \[Non Docker\] Dependancies

## **`Python 3.6.1+`**

Expand Down
Loading