Commit 00904a2e authored by Phyks's avatar Phyks

Fix somme encoding issues in Dockerfile

parent 571b42f5
Pipeline #33883 failed with stage
in 22 minutes and 48 seconds
......@@ -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`!
FROM python:2
MAINTAINER Benjamin Bouvier <public@benj.me>
MAINTAINER Phyks <phyks@phyks.me>
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
......
Markdown is supported
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