Skip to content

Commit

Permalink
update supervisord to run on pyhton3 (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sida Say authored Mar 26, 2021
1 parent e69eee8 commit 8eefedb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
9 changes: 5 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,17 +26,18 @@ COPY ./configs/uwsgi.ini /etc/uwsgi/

# Install Supervisord
RUN set -xe; \
apt-get update && apt-get install -y supervisor ca-certificates gosu; \
apt-get update && apt-get install -y ca-certificates gosu; \
gosu nobody true; \
rm -rf /var/lib/apt/lists/*
# Custom Supervisord config
COPY ./configs/supervisord-debian.conf /etc/supervisor/conf.d/supervisord.conf

# Install uWSGI and PrivacyIdea
RUN pip install uwsgi pymysql-sa PyMySQL;\
RUN pip install supervisor uwsgi pymysql-sa PyMySQL;\
pip install -r https://raw.githubusercontent.com/privacyidea/privacyidea/v${PI_VERSION}/requirements.txt; \
pip install git+https://github.com/privacyidea/privacyidea.git@v${PI_VERSION}

# Custom Supervisord config
COPY ./configs/supervisord-debian.conf /etc/supervisor/supervisord.conf

# Which uWSGI .ini file should be used, to make it customizable
ENV UWSGI_INI /app/uwsgi.ini

Expand Down
2 changes: 1 addition & 1 deletion configs/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ else
fi

# Start Supervisor, with Nginx and uWSGI
exec /usr/bin/supervisord
exec /usr/local/bin/supervisord

0 comments on commit 8eefedb

Please sign in to comment.