Add Dockerfile and instructions;

This commit is contained in:
Benjamin Bouvier 2016-08-28 15:04:05 +02:00
parent 416bda36e0
commit e15e43e885
3 changed files with 34 additions and 0 deletions

18
Dockerfile Normal file
View File

@ -0,0 +1,18 @@
FROM node:4
RUN apt update && \
apt dist-upgrade -y;
RUN apt install -y git;
RUN mkdir -p /opt/gitlab-to-irc
WORKDIR /opt
RUN git clone https://framagit.org/bnjbvr/gitlab-to-irc
WORKDIR /opt/gitlab-to-irc
COPY ./config.js /opt/gitlab-to-irc/config.js
RUN npm install
CMD node ./index.js

View File

@ -11,6 +11,14 @@ how-to
- run `node ./index.js` from anywhere. - run `node ./index.js` from anywhere.
- fun and profit. - fun and profit.
how-to (Docker)
===
- Rename `config.example.js` to `config.js` and change the values there.
- Modify the port mapping in `docker-run.sh`.
- `./run-docker.sh`
- fun and profit.
but this doesn't implement what i want but this doesn't implement what i want
=== ===

8
run-docker.sh Executable file
View File

@ -0,0 +1,8 @@
#!/bin/bash
docker build -t bnjbvr/gitlab-to-irc .
docker run --name gitlab-to-irc \
-p 1337:1337 \
-d -ti bnjbvr/gitlab-to-irc