Skip to content
Snippets Groups Projects
Commit e27ae8df authored by David Schmitz's avatar David Schmitz
Browse files

add Dockerfile.debian.supervisord; fix install-debian.sh

parent 506bb381
No related branches found
No related tags found
No related merge requests found
FROM debian:buster
ENV LC_ALL en_US.utf8
RUN apt-get update
RUN echo "Set up container's locales"
RUN echo -e 'LANG="en_US.UTF-8"\nLANGUAGE="en_US"\n' > /etc/default/locale
RUN echo "en_US.utf8 UTF-8" >> /etc/locale.gen
RUN apt-get -qqy install locales
RUN id fod || useradd -m fod
RUN mkdir -p /var/log/fod /srv
COPY . /srv/flowspy
RUN apt-get -qqy install patch
RUN (cd /srv/flowspy/flowspy && cp -f settings.py.dist settings.py && patch settings.py < settings.py.patch && touch settings_local.py;)
RUN (cd /srv/flowspy; bash ./install-debian.sh;)
EXPOSE 8000
WORKDIR /srv/flowspy
RUN apt-get -qqy install supervisor
#CMD [ "/srv/flowspy/runfod.sh" ]
CMD [ "/srv/flowspy/runfod-supervisord.sh" ]
...@@ -170,6 +170,12 @@ else ...@@ -170,6 +170,12 @@ else
sed -i "s#/srv/flowspy#$fod_dir#" "settings.py" sed -i "s#/srv/flowspy#$fod_dir#" "settings.py"
fi fi
) )
if [ "$install_basesw" = 1 ]; then #are we running in --both mode, i.e. for the venv init is run for the first time, i.e. the problematic package having issues with to new setuptools is not yet installed?
# fix
pip install setuptools==57.5.0
fi
pip install -r requirements.txt pip install -r requirements.txt
if [ ! -e "flowspy/settings_local.py" ]; then if [ ! -e "flowspy/settings_local.py" ]; then
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment