Commit 46c21f21 authored by Benjamin Bouvier's avatar Benjamin Bouvier
Browse files

Provide a Dockerfile for Janitor;

parent 093d3f13
FROM janx/ubuntu-dev
MAINTAINER Benjamin Bouvier <public@benj.me>
# Weboob and its dependencies.
RUN apt-get update && \
apt-get install -y python python-setuptools python-dev libffi-dev \
libxml2-dev libxslt-dev libyaml-dev libtiff-dev libjpeg-dev zlib1g-dev \
libfreetype6-dev libwebp-dev build-essential gcc g++;
# Global install of weboob.
USER root
RUN git clone git://git.symlink.me/pub/weboob/devel.git /tmp/weboob \
&& cd /tmp/weboob \
&& python ./setup.py install \
&& rm -rf /tmp weboob
# Setup kresus layout.
USER user
RUN mkdir -p /home/user/kresus/data
# Install app and dependencies.
WORKDIR /home/user/kresus
RUN git clone https://framagit.org/bnjbvr/kresus app
WORKDIR /home/user/kresus/app
RUN npm install
# Useful environment variables.
ENV HOST 0.0.0.0
ENV PORT 9876
ENV KRESUS_DIR /home/user/kresus/data
# Expose the port on which Kresus is running.
EXPOSE 9876
# Become root again so that supervisord is run with the right permissions.
USER root
#!/bin/bash
docker build -t bnjbvr/kresus-janitor .
docker run \
-p 9876 -p 22 \
-d \
bnjbvr/kresus-janitor
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