From 00904a2e6e28d07715fdc774dd12c6982635c8c6 Mon Sep 17 00:00:00 2001 From: "Phyks (Lucas Verney)" Date: Sun, 26 Nov 2017 21:53:59 +0100 Subject: [PATCH] Fix somme encoding issues in Dockerfile --- doc/2.docker.md | 14 +++++++------- docker/Dockerfile | 13 ++++++------- 2 files changed, 13 insertions(+), 14 deletions(-) diff --git a/doc/2.docker.md b/doc/2.docker.md index 83b5206..a7adde2 100644 --- a/doc/2.docker.md +++ b/doc/2.docker.md @@ -5,14 +5,14 @@ A basic `Dockerfile` is available for rapid testing. It is still really hacky and should not be used in production. -1. First, build the docker image: +1\. First, build the docker image: ``` cd docker -docker build -t bnjbvr/flatisfy . +docker build -t phyks/flatisfy . ``` -2. Then, create some folder to store your Flatisfy data in a permanent way (it +2\. Then, create some folder to store your Flatisfy data in a permanent way (it will be mount as a Docker volume in next steps), and initialize an empty config: @@ -20,19 +20,19 @@ docker build -t bnjbvr/flatisfy . mkdir flatisfy cd flatisfy FLATISFY_VOLUME=$(pwd) -docker run -P -v $FLATISFY_VOLUME:/flatisfy -p 8080:8080 bnjbvr/flatisfy sh -c "cd /home/user/app && python -m flatisfy init-config > /flatisfy/config.json" +docker run -P -v $FLATISFY_VOLUME:/flatisfy -p 8080:8080 phyks/flatisfy sh -c "cd /home/user/app && python -m flatisfy init-config > /flatisfy/config.json" ``` -3. Then, edit the generated `config.json` file according to your needs. See +3\. Then, edit the generated `config.json` file according to your needs. See [0.getting_started.md](0.getting_started.md) for more infos on the configuration file format. -4. Finally, run the docker image to fetch flats and serve the web UI: +4\. Finally, run the docker image to fetch flats and serve the web UI: ``` -docker run -P -v $FLATISFY_VOLUME:/flatisfy -p 8080:8080 bnjbvr/flatisfy +docker run -P -v $FLATISFY_VOLUME:/flatisfy -p 8080:8080 phyks/flatisfy ``` Your Flatisfy instance is now available at `localhost:8080`! diff --git a/docker/Dockerfile b/docker/Dockerfile index 7a69efa..d8811ca 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -1,20 +1,19 @@ FROM python:2 -MAINTAINER Benjamin Bouvier +MAINTAINER Phyks + +ENV LANG C.UTF-8 # Setup layout. RUN useradd -d /home/user -m -s /bin/bash -U user # Install OS dependencies. RUN apt-get update && \ - apt-get install -y git python python-dev libffi-dev \ + apt-get install -y git libffi-dev \ libxml2-dev libxslt-dev libyaml-dev libtiff-dev libjpeg-dev zlib1g-dev \ libfreetype6-dev libwebp-dev build-essential gcc g++ wget; # Install latest pip and python dependencies. -RUN cd /tmp && \ - wget https://bootstrap.pypa.io/get-pip.py && \ - python ./get-pip.py && \ - pip install -U setuptools && \ +RUN pip install -U setuptools && \ pip install html2text simplejson BeautifulSoup # Install node.js. @@ -24,7 +23,7 @@ RUN curl -sL https://deb.nodesource.com/setup_8.x | bash - \ # Install weboob's code itself. RUN git clone https://git.weboob.org/weboob/devel /home/user/weboob \ && cd /home/user/weboob \ - && python ./setup.py install + && pip install . RUN mkdir -p /flatisfy/data VOLUME /flatisfy