Docker: Add s6-overlay documentation links #4767

Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
Michael Mayer 2025-02-04 20:01:21 +01:00
parent ae5f35259c
commit 83c039dd9a
23 changed files with 35 additions and 29 deletions

View file

@ -84,14 +84,14 @@ RUN echo 'APT::Acquire::Retries "3";' > /etc/apt/apt.conf.d/80retries && \
/photoprism/storage/cache && \
/scripts/cleanup.sh
# Download models and testdata.
# Download machine learning models and test data.
RUN mkdir /tmp/photoprism && \
wget "https://dl.photoprism.app/tensorflow/nsfw.zip?${BUILD_TAG}" -O /tmp/photoprism/nsfw.zip && \
wget "https://dl.photoprism.app/tensorflow/nasnet.zip?${BUILD_TAG}" -O /tmp/photoprism/nasnet.zip && \
wget "https://dl.photoprism.app/tensorflow/facenet.zip?${BUILD_TAG}" -O /tmp/photoprism/facenet.zip && \
wget "https://dl.photoprism.app/qa/testdata.zip?${BUILD_TAG}" -O /tmp/photoprism/testdata.zip
# Default working directory.
# Set default working directory.
WORKDIR "/go/src/github.com/photoprism/photoprism"
# Expose the following container ports:

View file

@ -70,7 +70,7 @@ RUN echo 'APT::Acquire::Retries "3";' > /etc/apt/apt.conf.d/80retries && \
/photoprism/storage/cache && \
/scripts/cleanup.sh
# Default working directory.
# Set default working directory.
WORKDIR /photoprism
# Expose HTTP and HTTPS ports.

View file

@ -93,14 +93,14 @@ RUN echo 'APT::Acquire::Retries "3";' > /etc/apt/apt.conf.d/80retries && \
/photoprism/storage/cache && \
/scripts/cleanup.sh
# Download models and testdata.
# Download machine learning models and test data.
RUN mkdir /tmp/photoprism && \
wget "https://dl.photoprism.app/tensorflow/nsfw.zip?${BUILD_TAG}" -O /tmp/photoprism/nsfw.zip && \
wget "https://dl.photoprism.app/tensorflow/nasnet.zip?${BUILD_TAG}" -O /tmp/photoprism/nasnet.zip && \
wget "https://dl.photoprism.app/tensorflow/facenet.zip?${BUILD_TAG}" -O /tmp/photoprism/facenet.zip && \
wget "https://dl.photoprism.app/qa/testdata.zip?${BUILD_TAG}" -O /tmp/photoprism/testdata.zip
# Default working directory.
# Set default working directory.
WORKDIR "/go/src/github.com/photoprism/photoprism"
# Expose the following container ports:

View file

@ -70,7 +70,7 @@ RUN echo 'APT::Acquire::Retries "3";' > /etc/apt/apt.conf.d/80retries && \
/photoprism/storage/cache && \
/scripts/cleanup.sh
# Default working directory.
# Set default working directory.
WORKDIR /photoprism
# Expose HTTP and HTTPS ports.

View file

@ -94,14 +94,14 @@ RUN echo 'APT::Acquire::Retries "3";' > /etc/apt/apt.conf.d/80retries && \
/photoprism/storage/cache && \
/scripts/cleanup.sh
# Download models and testdata.
# Download machine learning models and test data.
RUN mkdir /tmp/photoprism && \
wget "https://dl.photoprism.app/tensorflow/nsfw.zip?${BUILD_TAG}" -O /tmp/photoprism/nsfw.zip && \
wget "https://dl.photoprism.app/tensorflow/nasnet.zip?${BUILD_TAG}" -O /tmp/photoprism/nasnet.zip && \
wget "https://dl.photoprism.app/tensorflow/facenet.zip?${BUILD_TAG}" -O /tmp/photoprism/facenet.zip && \
wget "https://dl.photoprism.app/qa/testdata.zip?${BUILD_TAG}" -O /tmp/photoprism/testdata.zip
# Default working directory.
# Set default working directory.
WORKDIR "/go/src/github.com/photoprism/photoprism"
# Expose the following container ports:

View file

@ -69,7 +69,7 @@ RUN echo 'APT::Acquire::Retries "3";' > /etc/apt/apt.conf.d/80retries && \
/photoprism/storage/cache && \
/scripts/cleanup.sh
# Default working directory.
# Set default working directory.
WORKDIR /photoprism
# Expose HTTP and HTTPS ports.

View file

@ -90,14 +90,14 @@ RUN echo 'APT::Acquire::Retries "3";' > /etc/apt/apt.conf.d/80retries && \
/photoprism/storage/cache && \
/scripts/cleanup.sh
# Download models and testdata.
# Download machine learning models and test data.
RUN mkdir /tmp/photoprism && \
wget "https://dl.photoprism.app/tensorflow/nsfw.zip?${BUILD_TAG}" -O /tmp/photoprism/nsfw.zip && \
wget "https://dl.photoprism.app/tensorflow/nasnet.zip?${BUILD_TAG}" -O /tmp/photoprism/nasnet.zip && \
wget "https://dl.photoprism.app/tensorflow/facenet.zip?${BUILD_TAG}" -O /tmp/photoprism/facenet.zip && \
wget "https://dl.photoprism.app/qa/testdata.zip?${BUILD_TAG}" -O /tmp/photoprism/testdata.zip
# Default working directory.
# Set default working directory.
WORKDIR "/go/src/github.com/photoprism/photoprism"
# Expose the following container ports:

View file

@ -69,7 +69,7 @@ RUN echo 'APT::Acquire::Retries "3";' > /etc/apt/apt.conf.d/80retries && \
/photoprism/storage/cache && \
/scripts/cleanup.sh
# Default working directory.
# Set default working directory.
WORKDIR /photoprism
# Expose HTTP and HTTPS ports.

View file

@ -90,14 +90,14 @@ RUN echo 'APT::Acquire::Retries "3";' > /etc/apt/apt.conf.d/80retries && \
/photoprism/storage/cache && \
/scripts/cleanup.sh
# Download models and testdata.
# Download machine learning models and test data.
RUN mkdir /tmp/photoprism && \
wget "https://dl.photoprism.app/tensorflow/nsfw.zip?${BUILD_TAG}" -O /tmp/photoprism/nsfw.zip && \
wget "https://dl.photoprism.app/tensorflow/nasnet.zip?${BUILD_TAG}" -O /tmp/photoprism/nasnet.zip && \
wget "https://dl.photoprism.app/tensorflow/facenet.zip?${BUILD_TAG}" -O /tmp/photoprism/facenet.zip && \
wget "https://dl.photoprism.app/qa/testdata.zip?${BUILD_TAG}" -O /tmp/photoprism/testdata.zip
# Default working directory.
# Set default working directory.
WORKDIR "/go/src/github.com/photoprism/photoprism"
# Expose the following container ports:

View file

@ -71,7 +71,7 @@ RUN echo 'APT::Acquire::Retries "3";' > /etc/apt/apt.conf.d/80retries && \
/photoprism/storage/cache && \
/scripts/cleanup.sh
# Default working directory.
# Set default working directory.
WORKDIR /photoprism
# Expose HTTP and HTTPS ports.

View file

@ -95,14 +95,14 @@ RUN echo 'APT::Acquire::Retries "3";' > /etc/apt/apt.conf.d/80retries && \
/photoprism/storage/cache && \
/scripts/cleanup.sh
# Download models and testdata.
# Download machine learning models and test data.
RUN mkdir /tmp/photoprism && \
wget "https://dl.photoprism.app/tensorflow/nsfw.zip?${BUILD_TAG}" -O /tmp/photoprism/nsfw.zip && \
wget "https://dl.photoprism.app/tensorflow/nasnet.zip?${BUILD_TAG}" -O /tmp/photoprism/nasnet.zip && \
wget "https://dl.photoprism.app/tensorflow/facenet.zip?${BUILD_TAG}" -O /tmp/photoprism/facenet.zip && \
wget "https://dl.photoprism.app/qa/testdata.zip?${BUILD_TAG}" -O /tmp/photoprism/testdata.zip
# Default working directory.
# Set default working directory.
WORKDIR "/go/src/github.com/photoprism/photoprism"
# Expose the following container ports:

View file

@ -82,4 +82,4 @@ EXPOSE 2342 2442 2443
# Set default entrypoint and command.
ENTRYPOINT ["/init"]
CMD ["tail", "-f", "/dev/null"]
CMD ["/scripts/cmd.sh", "tail", "-f", "/dev/null"]

View file

@ -129,7 +129,7 @@ RUN echo 'APT::Acquire::Retries "3";' > /etc/apt/apt.conf.d/80retries && \
/photoprism/storage/cache && \
/scripts/cleanup.sh
# Default working directory.
# Set default working directory.
WORKDIR /photoprism
# Expose HTTP(S) ports.

View file

@ -91,7 +91,7 @@ RUN apt-get update && \
apt-get -qq dist-upgrade && \
/scripts/cleanup.sh
# Default working directory.
# Set default working directory.
WORKDIR /photoprism
# Expose HTTP(S) ports.

View file

@ -91,7 +91,7 @@ RUN apt-get update && \
apt-get -qq dist-upgrade && \
/scripts/cleanup.sh
# Default working directory.
# Set default working directory.
WORKDIR /photoprism
# Expose HTTP(S) ports.

View file

@ -136,7 +136,7 @@ RUN echo 'APT::Acquire::Retries "3";' > /etc/apt/apt.conf.d/80retries && \
/photoprism/storage/cache && \
/scripts/cleanup.sh
# Default working directory.
# Set default working directory.
WORKDIR /photoprism
# Expose HTTP(S) ports.

View file

@ -135,7 +135,7 @@ RUN echo 'APT::Acquire::Retries "3";' > /etc/apt/apt.conf.d/80retries && \
/photoprism/storage/cache && \
/scripts/cleanup.sh
# Default working directory.
# Set default working directory.
WORKDIR /photoprism
# Expose HTTP(S) ports.

View file

@ -92,7 +92,7 @@ RUN apt-get update && \
apt-get -qq dist-upgrade && \
/scripts/cleanup.sh
# Default working directory.
# Set default working directory.
WORKDIR /photoprism
# Expose HTTP(S) ports.

View file

@ -92,7 +92,7 @@ RUN apt-get update && \
apt-get -qq dist-upgrade && \
/scripts/cleanup.sh
# Default working directory.
# Set default working directory.
WORKDIR /photoprism
# Expose HTTP(S) ports.

View file

@ -92,7 +92,7 @@ RUN apt-get update && \
apt-get -qq dist-upgrade && \
/scripts/cleanup.sh
# Default working directory.
# Set default working directory.
WORKDIR /photoprism
# Expose HTTP(S) ports.

View file

@ -92,7 +92,7 @@ RUN apt-get update && \
apt-get -qq dist-upgrade && \
/scripts/cleanup.sh
# Default working directory.
# Set default working directory.
WORKDIR /photoprism
# Expose HTTP(S) ports.

View file

@ -92,7 +92,7 @@ RUN apt-get update && \
apt-get -qq dist-upgrade && \
/scripts/cleanup.sh
# Default working directory.
# Set default working directory.
WORKDIR /photoprism
# Expose HTTP(S) ports.

View file

@ -1,7 +1,13 @@
#!/usr/bin/env bash
# This downloads and installs the s6-overlay binaries and noarch files from GitHub.
# This downloads and installs the s6-overlay binaries and noarch files from GitHub:
# - https://github.com/just-containers/s6-overlay
#
# s6 is a suite of utilities for UNIX that provides process supervision, e.g. for use with Docker:
# - https://github.com/skarnet/s6
# - https://skarnet.org/software/s6/
# - https://ahmet.im/blog/minimal-init-process-for-containers/
# Show usage information if first argument is --help.
if [[ ${1} == "--help" ]]; then
echo "Usage: ${0##*/} [version] [dir]" 1>&2