This commit is contained in:
Anatolii Zimovskii 2022-03-21 22:05:56 +03:00
parent 4fa3a5966e
commit 0efc1ea61a
Signed by: stam
GPG Key ID: AA3A575AB99E8469
14 changed files with 103 additions and 24 deletions

View File

@ -0,0 +1,11 @@
#!/bin/bash
echo "============================================="
echo node $(node --version)
echo npm $(npm --version)
echo yarn $(yarn --version)
echo "============================================="
echo "[nodejs] Electron Release Server isStarting up"
echo "============================================="
npm start

View File

@ -52,9 +52,15 @@ ENV PGDATA /var/lib/postgresql/data
VOLUME /var/lib/postgresql/data VOLUME /var/lib/postgresql/data
WORKDIR /var/lib/postgresql/data WORKDIR /var/lib/postgresql/data
COPY ./docker-entrypoint.sh / #healthcheck. good practice
HEALTHCHECK --interval=2m --timeout=3s CMD pg_isready -h localhost -p 5433 || exit 1
ENTRYPOINT ["/docker-entrypoint.sh"] # Add image configuration and scripts
COPY docker-entrypoint.sh /usr/bin/docker-entrypoint.sh
RUN chmod 755 /usr/bin/docker-entrypoint.sh
ENTRYPOINT ["tini", "-s", "--", "docker-entrypoint.sh"]
CMD ["docker-entrypoint.sh"]
# We set the default STOPSIGNAL to SIGINT, which corresponds to what PostgreSQL # We set the default STOPSIGNAL to SIGINT, which corresponds to what PostgreSQL
# calls "Fast Shutdown mode" wherein new connections are disallowed and any # calls "Fast Shutdown mode" wherein new connections are disallowed and any

View File

@ -52,9 +52,15 @@ ENV PGDATA /var/lib/postgresql/data
VOLUME /var/lib/postgresql/data VOLUME /var/lib/postgresql/data
WORKDIR /var/lib/postgresql/data WORKDIR /var/lib/postgresql/data
COPY ./docker-entrypoint.sh / #healthcheck. good practice
HEALTHCHECK --interval=2m --timeout=3s CMD pg_isready -h localhost -p 5433 || exit 1
ENTRYPOINT ["/docker-entrypoint.sh"] # Add image configuration and scripts
COPY docker-entrypoint.sh /usr/bin/docker-entrypoint.sh
RUN chmod 755 /usr/bin/docker-entrypoint.sh
ENTRYPOINT ["tini", "-s", "--", "docker-entrypoint.sh"]
CMD ["docker-entrypoint.sh"]
# We set the default STOPSIGNAL to SIGINT, which corresponds to what PostgreSQL # We set the default STOPSIGNAL to SIGINT, which corresponds to what PostgreSQL
# calls "Fast Shutdown mode" wherein new connections are disallowed and any # calls "Fast Shutdown mode" wherein new connections are disallowed and any

View File

@ -52,9 +52,15 @@ ENV PGDATA /var/lib/postgresql/data
VOLUME /var/lib/postgresql/data VOLUME /var/lib/postgresql/data
WORKDIR /var/lib/postgresql/data WORKDIR /var/lib/postgresql/data
COPY ./docker-entrypoint.sh / #healthcheck. good practice
HEALTHCHECK --interval=2m --timeout=3s CMD pg_isready -h localhost -p 5433 || exit 1
ENTRYPOINT ["/docker-entrypoint.sh"] # Add image configuration and scripts
COPY docker-entrypoint.sh /usr/bin/docker-entrypoint.sh
RUN chmod 755 /usr/bin/docker-entrypoint.sh
ENTRYPOINT ["tini", "-s", "--", "docker-entrypoint.sh"]
CMD ["docker-entrypoint.sh"]
# We set the default STOPSIGNAL to SIGINT, which corresponds to what PostgreSQL # We set the default STOPSIGNAL to SIGINT, which corresponds to what PostgreSQL
# calls "Fast Shutdown mode" wherein new connections are disallowed and any # calls "Fast Shutdown mode" wherein new connections are disallowed and any

View File

@ -52,9 +52,15 @@ ENV PGDATA /var/lib/postgresql/data
VOLUME /var/lib/postgresql/data VOLUME /var/lib/postgresql/data
WORKDIR /var/lib/postgresql/data WORKDIR /var/lib/postgresql/data
COPY ./docker-entrypoint.sh / #healthcheck. good practice
HEALTHCHECK --interval=2m --timeout=3s CMD pg_isready -h localhost -p 5433 || exit 1
ENTRYPOINT ["/docker-entrypoint.sh"] # Add image configuration and scripts
COPY docker-entrypoint.sh /usr/bin/docker-entrypoint.sh
RUN chmod 755 /usr/bin/docker-entrypoint.sh
ENTRYPOINT ["tini", "-s", "--", "docker-entrypoint.sh"]
CMD ["docker-entrypoint.sh"]
# We set the default STOPSIGNAL to SIGINT, which corresponds to what PostgreSQL # We set the default STOPSIGNAL to SIGINT, which corresponds to what PostgreSQL
# calls "Fast Shutdown mode" wherein new connections are disallowed and any # calls "Fast Shutdown mode" wherein new connections are disallowed and any

View File

@ -52,9 +52,15 @@ ENV PGDATA /var/lib/postgresql/data
VOLUME /var/lib/postgresql/data VOLUME /var/lib/postgresql/data
WORKDIR /var/lib/postgresql/data WORKDIR /var/lib/postgresql/data
COPY ./docker-entrypoint.sh / #healthcheck. good practice
HEALTHCHECK --interval=2m --timeout=3s CMD pg_isready -h localhost -p 5433 || exit 1
ENTRYPOINT ["/docker-entrypoint.sh"] # Add image configuration and scripts
COPY docker-entrypoint.sh /usr/bin/docker-entrypoint.sh
RUN chmod 755 /usr/bin/docker-entrypoint.sh
ENTRYPOINT ["tini", "-s", "--", "docker-entrypoint.sh"]
CMD ["docker-entrypoint.sh"]
# We set the default STOPSIGNAL to SIGINT, which corresponds to what PostgreSQL # We set the default STOPSIGNAL to SIGINT, which corresponds to what PostgreSQL
# calls "Fast Shutdown mode" wherein new connections are disallowed and any # calls "Fast Shutdown mode" wherein new connections are disallowed and any

View File

@ -52,9 +52,15 @@ ENV PGDATA /var/lib/postgresql/data
VOLUME /var/lib/postgresql/data VOLUME /var/lib/postgresql/data
WORKDIR /var/lib/postgresql/data WORKDIR /var/lib/postgresql/data
COPY ./docker-entrypoint.sh / #healthcheck. good practice
HEALTHCHECK --interval=2m --timeout=3s CMD pg_isready -h localhost -p 5433 || exit 1
ENTRYPOINT ["/docker-entrypoint.sh"] # Add image configuration and scripts
COPY docker-entrypoint.sh /usr/bin/docker-entrypoint.sh
RUN chmod 755 /usr/bin/docker-entrypoint.sh
ENTRYPOINT ["tini", "-s", "--", "docker-entrypoint.sh"]
CMD ["docker-entrypoint.sh"]
# We set the default STOPSIGNAL to SIGINT, which corresponds to what PostgreSQL # We set the default STOPSIGNAL to SIGINT, which corresponds to what PostgreSQL
# calls "Fast Shutdown mode" wherein new connections are disallowed and any # calls "Fast Shutdown mode" wherein new connections are disallowed and any

View File

@ -53,9 +53,15 @@ ENV PGDATA /var/lib/postgresql/data
VOLUME /var/lib/postgresql/data VOLUME /var/lib/postgresql/data
WORKDIR /var/lib/postgresql/data WORKDIR /var/lib/postgresql/data
COPY ./docker-entrypoint.sh / #healthcheck. good practice
HEALTHCHECK --interval=2m --timeout=3s CMD pg_isready -h localhost -p 5433 || exit 1
ENTRYPOINT ["/docker-entrypoint.sh"] # Add image configuration and scripts
COPY docker-entrypoint.sh /usr/bin/docker-entrypoint.sh
RUN chmod 755 /usr/bin/docker-entrypoint.sh
ENTRYPOINT ["tini", "-s", "--", "docker-entrypoint.sh"]
CMD ["docker-entrypoint.sh"]
# We set the default STOPSIGNAL to SIGINT, which corresponds to what PostgreSQL # We set the default STOPSIGNAL to SIGINT, which corresponds to what PostgreSQL
# calls "Fast Shutdown mode" wherein new connections are disallowed and any # calls "Fast Shutdown mode" wherein new connections are disallowed and any

View File

@ -52,9 +52,15 @@ ENV PGDATA /var/lib/postgresql/data
VOLUME /var/lib/postgresql/data VOLUME /var/lib/postgresql/data
WORKDIR /var/lib/postgresql/data WORKDIR /var/lib/postgresql/data
COPY ./docker-entrypoint.sh / #healthcheck. good practice
HEALTHCHECK --interval=2m --timeout=3s CMD pg_isready -h localhost -p 5433 || exit 1
ENTRYPOINT ["/docker-entrypoint.sh"] # Add image configuration and scripts
COPY docker-entrypoint.sh /usr/bin/docker-entrypoint.sh
RUN chmod 755 /usr/bin/docker-entrypoint.sh
ENTRYPOINT ["tini", "-s", "--", "docker-entrypoint.sh"]
CMD ["docker-entrypoint.sh"]
# We set the default STOPSIGNAL to SIGINT, which corresponds to what PostgreSQL # We set the default STOPSIGNAL to SIGINT, which corresponds to what PostgreSQL
# calls "Fast Shutdown mode" wherein new connections are disallowed and any # calls "Fast Shutdown mode" wherein new connections are disallowed and any

View File

@ -52,9 +52,15 @@ ENV PGDATA /var/lib/postgresql/data
VOLUME /var/lib/postgresql/data VOLUME /var/lib/postgresql/data
WORKDIR /var/lib/postgresql/data WORKDIR /var/lib/postgresql/data
COPY ./docker-entrypoint.sh / #healthcheck. good practice
HEALTHCHECK --interval=2m --timeout=3s CMD pg_isready -h localhost -p 5433 || exit 1
ENTRYPOINT ["/docker-entrypoint.sh"] # Add image configuration and scripts
COPY docker-entrypoint.sh /usr/bin/docker-entrypoint.sh
RUN chmod 755 /usr/bin/docker-entrypoint.sh
ENTRYPOINT ["tini", "-s", "--", "docker-entrypoint.sh"]
CMD ["docker-entrypoint.sh"]
# We set the default STOPSIGNAL to SIGINT, which corresponds to what PostgreSQL # We set the default STOPSIGNAL to SIGINT, which corresponds to what PostgreSQL
# calls "Fast Shutdown mode" wherein new connections are disallowed and any # calls "Fast Shutdown mode" wherein new connections are disallowed and any

View File

@ -26,7 +26,6 @@ RUN apt-get update && \
apt install -y --allow-unauthenticated --allow-downgrades \ apt install -y --allow-unauthenticated --allow-downgrades \
qbittorrent-nox qbittorrent-nox
################################################################## ##################################################################
# other customisations # other customisations
################################################################## ##################################################################
@ -44,7 +43,15 @@ RUN apt clean -y && \
VOLUME ${QBT_DIR} VOLUME ${QBT_DIR}
#healthcheck. good practice
HEALTHCHECK --interval=2m --timeout=3s CMD curl -f http://localhost:8282/ || exit 1
# Add image configuration and scripts
COPY docker-entrypoint.sh /usr/bin/docker-entrypoint.sh
RUN chmod 755 /usr/bin/docker-entrypoint.sh
#Final config
EXPOSE 8282 EXPOSE 8282
COPY entrypoint.sh /entrypoint.sh ENTRYPOINT ["tini", "-s", "--", "docker-entrypoint.sh"]
ENTRYPOINT /entrypoint.sh CMD ["docker-entrypoint.sh"]

View File

@ -26,7 +26,6 @@ RUN apt-get update && \
apt install -y --allow-unauthenticated --allow-downgrades \ apt install -y --allow-unauthenticated --allow-downgrades \
qbittorrent-nox qbittorrent-nox
################################################################## ##################################################################
# other customisations # other customisations
################################################################## ##################################################################
@ -44,7 +43,15 @@ RUN apt clean -y && \
VOLUME ${QBT_DIR} VOLUME ${QBT_DIR}
#healthcheck. good practice
HEALTHCHECK --interval=2m --timeout=3s CMD curl -f http://localhost:8282/ || exit 1
# Add image configuration and scripts
COPY docker-entrypoint.sh /usr/bin/docker-entrypoint.sh
RUN chmod 755 /usr/bin/docker-entrypoint.sh
#Final config
EXPOSE 8282 EXPOSE 8282
COPY entrypoint.sh /entrypoint.sh ENTRYPOINT ["tini", "-s", "--", "docker-entrypoint.sh"]
ENTRYPOINT /entrypoint.sh CMD ["docker-entrypoint.sh"]