Copy updated healthcheck scripts, set Python script as executable
This commit is contained in:
@@ -31,6 +31,14 @@ LABEL maintainer="flow.gunso@gmail.com" \
|
|||||||
org.label-schema.version=$VERSION \
|
org.label-schema.version=$VERSION \
|
||||||
org.label-schema.schema-version="1.0"
|
org.label-schema.schema-version="1.0"
|
||||||
|
|
||||||
|
# Copy over the assets.
|
||||||
|
COPY docker-entrypoint.sh /entrypoint.sh
|
||||||
|
COPY docker-healthcheck.sh /healthcheck.sh
|
||||||
|
COPY seafile-entrypoint.sh /home/seafuser/entrypoint.sh
|
||||||
|
COPY seafile-healthcheck.sh /home/seafuser/healthcheck.sh
|
||||||
|
COPY seafile-healthcheck.py /home/seafuser/healthcheck.py
|
||||||
|
COPY tests /tests
|
||||||
|
|
||||||
# Install seaf-cli and oathtool, prepare the user.
|
# Install seaf-cli and oathtool, prepare the user.
|
||||||
ENV DEBIAN_FRONTEND=noninteractive
|
ENV DEBIAN_FRONTEND=noninteractive
|
||||||
ENV UNAME=seafuser UID=1000 GID=1000
|
ENV UNAME=seafuser UID=1000 GID=1000
|
||||||
@@ -56,14 +64,8 @@ RUN apt-get update && apt-get install -y gnupg && \
|
|||||||
groupadd -g $GID -o $UNAME && \
|
groupadd -g $GID -o $UNAME && \
|
||||||
useradd -m -u $UID -g $GID -o -s /bin/bash $UNAME && \
|
useradd -m -u $UID -g $GID -o -s /bin/bash $UNAME && \
|
||||||
mkdir /home/$UNAME/.seafile && \
|
mkdir /home/$UNAME/.seafile && \
|
||||||
chown $UNAME:$GID /home/$UNAME/.seafile
|
chown $UNAME:$GID /home/$UNAME/.seafile && \
|
||||||
|
chmod +x /home/$UNAME/healthcheck.py
|
||||||
# Copy over the assets.
|
|
||||||
COPY docker-entrypoint.sh /entrypoint.sh
|
|
||||||
COPY docker-healthcheck.sh /healthcheck.sh
|
|
||||||
COPY seafile-entrypoint.sh /home/seafuser/entrypoint.sh
|
|
||||||
#COPY seafile-healthcheck.sh /home/seafuser/healthcheck.sh
|
|
||||||
COPY tests /tests
|
|
||||||
|
|
||||||
ENTRYPOINT ["/bin/bash", "--"]
|
ENTRYPOINT ["/bin/bash", "--"]
|
||||||
CMD ["/entrypoint.sh"]
|
CMD ["/entrypoint.sh"]
|
||||||
|
|||||||
Reference in New Issue
Block a user