Skip to content
Snippets Groups Projects

Declare an objstorage replayer image

Merged Vincent Sellier requested to merge objstorage-replayer into master
All threads resolved!
3 files
+ 60
0
Compare changes
  • Side-by-side
  • Inline
Files
3
+ 30
0
FROM python:3.10-bullseye
RUN apt-get -y update && \
apt-get -y upgrade && \
apt clean && \
addgroup --gid 1000 swh && \
useradd --gid 1000 --uid 1000 -m -d /opt/swh swh && \
mkdir /etc/swh
USER swh
WORKDIR /opt/swh
COPY --chown=swh:swh requirements-frozen.txt /opt/swh
ENV PYTHONPATH=/opt/swh
ENV PATH=/opt/swh/.local/bin:$PATH
RUN /usr/local/bin/python -m pip install --upgrade pip && \
pip install --no-cache-dir -r requirements-frozen.txt && \
pip install gunicorn
COPY --chown=swh:swh entrypoint.sh /opt/swh
RUN chmod u+x /opt/swh/entrypoint.sh
ENV SWH_CONFIG_FILENAME=/etc/swh/config.yml
ENV LOG_LEVEL INFO
ENV STATSD_PORT=9125
ENV STATSD_HOST=prometheus-statsd-exporter
ENTRYPOINT "/opt/swh/entrypoint.sh"
Loading