Add Dockerfile and instructions;
This commit is contained in:
parent
416bda36e0
commit
e15e43e885
18
Dockerfile
Normal file
18
Dockerfile
Normal 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
|
@ -11,6 +11,14 @@ how-to
|
||||
- run `node ./index.js` from anywhere.
|
||||
- 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
|
||||
===
|
||||
|
||||
|
8
run-docker.sh
Executable file
8
run-docker.sh
Executable 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
|
||||
|
Loading…
Reference in New Issue
Block a user