Commit 16663fd5 authored by Zach van Rijn's avatar Zach van Rijn
Browse files

Emily: new containerized service

parent a731cfb5
FROM alpine:3.14
MAINTAINER Zach van Rijn <me@zv.io>
RUN apk update && apk upgrade && apk add \
gcc git py3-pip python3-dev musl-dev
RUN git clone https://git.adelielinux.org/z/emily-ng.git \
&& cd emily-ng \
&& git checkout a808f56d9984e5b5358b94b302144be436db6635 \
&& pip3 install -r requirements.txt \
&& git clone https://git.adelielinux.org/z/pyirc.git \
&& cd pyirc \
&& git checkout 0abe11f7d389d9b0f1a28843c1a4da902bdd53fd
COPY emily.cfg emily-ng/emily.cfg
WORKDIR /emily-ng
ENV PYTHONPATH=./pyirc
ENTRYPOINT python3 test.py
building
--------
To build the container image:
$ docker-compose build
Configuration files (e.g. 'emily.cfg') must exist before build:
copy/edit the template; please rebuild and respawn if updated.
running
-------
To spawn a container from the image, or to take it down:
$ docker-compose up -d
$ docker-compose down
As configured, this will serve HTTP on port 9030. This should be
subsequently proxied to the outside world, not exposed directly.
maintenance
-----------
Upstream project commit hashes are defined in the 'Dockerfile'.
Please remember to clean up old images.
Debug logs can be viewed at:
$ docker-compose logs
license
-------
MIT
version: "3.6"
services:
emily:
build: .
[irc]
networks = interlinked
interlinked_server = irc.interlinked.me
interlinked_port = 6697
interlinked_ssl = true
interlinked_nick = Emily
interlinked_gecos = https://git.adelielinux.org/z/emily-ng
interlinked_username = EmilyBot
interlinked_password = ################
interlinked_channels = Adelie,horizon
interlinked_Adelie_projects = adelie/*,
#interlinked_code_projects = */*
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment