Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Jan
kresus
Commits
46c21f21
Commit
46c21f21
authored
Sep 05, 2016
by
Benjamin Bouvier
Browse files
Provide a Dockerfile for Janitor;
parent
093d3f13
Changes
2
Hide whitespace changes
Inline
Side-by-side
scripts/janitor/Dockerfile
0 → 100644
View file @
46c21f21
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
scripts/janitor/run.sh
0 → 100644
View file @
46c21f21
#!/bin/bash
docker build
-t
bnjbvr/kresus-janitor
.
docker run
\
-p
9876
-p
22
\
-d
\
bnjbvr/kresus-janitor
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment