add docker info in readme, add CMD to dockerfile
This commit is contained in:
parent
46c6d31c7d
commit
1327bf6f88
3 changed files with 30 additions and 12 deletions
|
|
@ -5,3 +5,5 @@ WORKDIR /urbridge
|
||||||
COPY package.json .
|
COPY package.json .
|
||||||
RUN npm install
|
RUN npm install
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
|
CMD ["node", "index.js"]
|
||||||
21
README.md
21
README.md
|
|
@ -4,4 +4,23 @@ This is a Bridge made to tie Discord Channels and IRC Channels. It works by usin
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
/!\\ CURRENTLY UNDER DEVELOPMENT
|
### docker
|
||||||
|
|
||||||
|
build l'image:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
docker build -t urbridge:latest .
|
||||||
|
```
|
||||||
|
|
||||||
|
run un container temporaire (pour l'instant le bot ne sauve aucune data, donc il n'y a pas d'inconvénient à le recréer à chaque démarrage et delete quand il est arêté):
|
||||||
|
|
||||||
|
```bash
|
||||||
|
docker run -t urlab_viaduk --rm --env-file .env urbridge:latest
|
||||||
|
```
|
||||||
|
|
||||||
|
il faut un fichier .env spécifiant les variables suivantes:
|
||||||
|
|
||||||
|
- DISCORD_TOKEN,
|
||||||
|
- IRC_HOST, l'adresse du serveur irc
|
||||||
|
- IRC_PORT, le port
|
||||||
|
- NICKNAME, le nom du bridge sur irc
|
||||||
19
config.json
19
config.json
|
|
@ -1,12 +1,9 @@
|
||||||
{
|
{
|
||||||
"verbose": true,
|
"verbose": true,
|
||||||
"discordChannels": [
|
"discordChannels": [
|
||||||
"1161739009614151751",
|
"1161739009614151751",
|
||||||
"727212463988146206",
|
"727212463988146206",
|
||||||
"1207060538341720104"
|
"1207060538341720104"
|
||||||
|
],
|
||||||
],
|
"ircChannels": ["#f2ville.dev"]
|
||||||
"ircChannels": [
|
}
|
||||||
"#f2ville.dev"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue