aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--irc-slack/Dockerfile18
-rw-r--r--irc-slack/docker-compose.yaml21
2 files changed, 39 insertions, 0 deletions
diff --git a/irc-slack/Dockerfile b/irc-slack/Dockerfile
new file mode 100644
index 0000000..d65cb21
--- /dev/null
+++ b/irc-slack/Dockerfile
@@ -0,0 +1,18 @@
+FROM alpine:3.15 as builder
+RUN apk update && apk upgrade
+RUN apk add go git make
+ENV GOPROXY=https://goproxy.io
+RUN git clone https://github.com/insomniacslk/irc-slack
+WORKDIR irc-slack
+RUN go mod download
+RUN cd /irc-slack/cmd/irc-slack && make
+
+FROM alpine:3.15 as certbuilder
+RUN apk add openssl
+WORKDIR /certs
+RUN openssl req -nodes -new -x509 -subj="/C=US/ST=Denial/L=springfield/O=Dis/CN=ircslack.terminaldweller.com" -keyout server.key -out server.cert
+
+FROM alpine:3.13
+COPY --from=certbuilder /certs /certs
+COPY --from=builder /irc-slack/cmd/irc-slack/irc-slack /irc-slack/
+# /irc-slack/irc-slack --port 6667 --host 0.0.0.0 --cert ../../certs/server.cert --key ../../certs/server.key
diff --git a/irc-slack/docker-compose.yaml b/irc-slack/docker-compose.yaml
new file mode 100644
index 0000000..20e794f
--- /dev/null
+++ b/irc-slack/docker-compose.yaml
@@ -0,0 +1,21 @@
+version: "3"
+services:
+ ircslack:
+ image: ircslack
+ build:
+ context: .
+ networks:
+ - ircslacknet
+ restart: unless-stopped
+ ports:
+ - "6667:6667"
+ depends_on:
+ - redis
+ - telebot
+ entrypoint: ["/irc-slack/irc-slack"]
+ command: ["--port", "6667", "--host", "0.0.0.0", "--cert", "/certs/server.cert", "--key", "/certs/server.key"]
+ cap_drop:
+ - ALL
+networks:
+ ircslacknet:
+ driver: bridge