Browse Source
Merge pull request #1048 from jjlin/init
Add startup script to support init operations
pull/1049/head
Daniel García
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
14 changed files with
41 additions and
13 deletions
-
docker/Dockerfile.j2
-
docker/aarch64/mysql/Dockerfile
-
docker/aarch64/sqlite/Dockerfile
-
docker/amd64/mysql/Dockerfile
-
docker/amd64/mysql/Dockerfile.alpine
-
docker/amd64/postgresql/Dockerfile
-
docker/amd64/postgresql/Dockerfile.alpine
-
docker/amd64/sqlite/Dockerfile
-
docker/amd64/sqlite/Dockerfile.alpine
-
docker/armv6/mysql/Dockerfile
-
docker/armv6/sqlite/Dockerfile
-
docker/armv7/mysql/Dockerfile
-
docker/armv7/sqlite/Dockerfile
-
docker/start.sh
|
|
@ -288,9 +288,10 @@ COPY --from=build app/target/release/bitwarden_rs . |
|
|
|
{% endif %} |
|
|
|
|
|
|
|
COPY docker/healthcheck.sh /healthcheck.sh |
|
|
|
COPY docker/start.sh /start.sh |
|
|
|
|
|
|
|
HEALTHCHECK --interval=60s --timeout=10s CMD ["/healthcheck.sh"] |
|
|
|
|
|
|
|
# Configures the startup! |
|
|
|
WORKDIR / |
|
|
|
CMD ["/bitwarden_rs"] |
|
|
|
CMD ["/start.sh"] |
|
|
|
|
|
@ -125,9 +125,10 @@ COPY --from=vault /web-vault ./web-vault |
|
|
|
COPY --from=build /app/target/aarch64-unknown-linux-gnu/release/bitwarden_rs . |
|
|
|
|
|
|
|
COPY docker/healthcheck.sh /healthcheck.sh |
|
|
|
COPY docker/start.sh /start.sh |
|
|
|
|
|
|
|
HEALTHCHECK --interval=60s --timeout=10s CMD ["/healthcheck.sh"] |
|
|
|
|
|
|
|
# Configures the startup! |
|
|
|
WORKDIR / |
|
|
|
CMD ["/bitwarden_rs"] |
|
|
|
CMD ["/start.sh"] |
|
|
|
|
|
@ -119,9 +119,10 @@ COPY --from=vault /web-vault ./web-vault |
|
|
|
COPY --from=build /app/target/aarch64-unknown-linux-gnu/release/bitwarden_rs . |
|
|
|
|
|
|
|
COPY docker/healthcheck.sh /healthcheck.sh |
|
|
|
COPY docker/start.sh /start.sh |
|
|
|
|
|
|
|
HEALTHCHECK --interval=60s --timeout=10s CMD ["/healthcheck.sh"] |
|
|
|
|
|
|
|
# Configures the startup! |
|
|
|
WORKDIR / |
|
|
|
CMD ["/bitwarden_rs"] |
|
|
|
CMD ["/start.sh"] |
|
|
|
|
|
@ -93,9 +93,10 @@ COPY --from=vault /web-vault ./web-vault |
|
|
|
COPY --from=build app/target/release/bitwarden_rs . |
|
|
|
|
|
|
|
COPY docker/healthcheck.sh /healthcheck.sh |
|
|
|
COPY docker/start.sh /start.sh |
|
|
|
|
|
|
|
HEALTHCHECK --interval=60s --timeout=10s CMD ["/healthcheck.sh"] |
|
|
|
|
|
|
|
# Configures the startup! |
|
|
|
WORKDIR / |
|
|
|
CMD ["/bitwarden_rs"] |
|
|
|
CMD ["/start.sh"] |
|
|
|
|
|
@ -96,9 +96,10 @@ COPY --from=vault /web-vault ./web-vault |
|
|
|
COPY --from=build /app/target/x86_64-unknown-linux-musl/release/bitwarden_rs . |
|
|
|
|
|
|
|
COPY docker/healthcheck.sh /healthcheck.sh |
|
|
|
COPY docker/start.sh /start.sh |
|
|
|
|
|
|
|
HEALTHCHECK --interval=60s --timeout=10s CMD ["/healthcheck.sh"] |
|
|
|
|
|
|
|
# Configures the startup! |
|
|
|
WORKDIR / |
|
|
|
CMD ["/bitwarden_rs"] |
|
|
|
CMD ["/start.sh"] |
|
|
|
|
|
@ -93,9 +93,10 @@ COPY --from=vault /web-vault ./web-vault |
|
|
|
COPY --from=build app/target/release/bitwarden_rs . |
|
|
|
|
|
|
|
COPY docker/healthcheck.sh /healthcheck.sh |
|
|
|
COPY docker/start.sh /start.sh |
|
|
|
|
|
|
|
HEALTHCHECK --interval=60s --timeout=10s CMD ["/healthcheck.sh"] |
|
|
|
|
|
|
|
# Configures the startup! |
|
|
|
WORKDIR / |
|
|
|
CMD ["/bitwarden_rs"] |
|
|
|
CMD ["/start.sh"] |
|
|
|
|
|
@ -96,9 +96,10 @@ COPY --from=vault /web-vault ./web-vault |
|
|
|
COPY --from=build /app/target/x86_64-unknown-linux-musl/release/bitwarden_rs . |
|
|
|
|
|
|
|
COPY docker/healthcheck.sh /healthcheck.sh |
|
|
|
COPY docker/start.sh /start.sh |
|
|
|
|
|
|
|
HEALTHCHECK --interval=60s --timeout=10s CMD ["/healthcheck.sh"] |
|
|
|
|
|
|
|
# Configures the startup! |
|
|
|
WORKDIR / |
|
|
|
CMD ["/bitwarden_rs"] |
|
|
|
CMD ["/start.sh"] |
|
|
|
|
|
@ -87,9 +87,10 @@ COPY --from=vault /web-vault ./web-vault |
|
|
|
COPY --from=build app/target/release/bitwarden_rs . |
|
|
|
|
|
|
|
COPY docker/healthcheck.sh /healthcheck.sh |
|
|
|
COPY docker/start.sh /start.sh |
|
|
|
|
|
|
|
HEALTHCHECK --interval=60s --timeout=10s CMD ["/healthcheck.sh"] |
|
|
|
|
|
|
|
# Configures the startup! |
|
|
|
WORKDIR / |
|
|
|
CMD ["/bitwarden_rs"] |
|
|
|
CMD ["/start.sh"] |
|
|
|
|
|
@ -90,9 +90,10 @@ COPY --from=vault /web-vault ./web-vault |
|
|
|
COPY --from=build /app/target/x86_64-unknown-linux-musl/release/bitwarden_rs . |
|
|
|
|
|
|
|
COPY docker/healthcheck.sh /healthcheck.sh |
|
|
|
COPY docker/start.sh /start.sh |
|
|
|
|
|
|
|
HEALTHCHECK --interval=60s --timeout=10s CMD ["/healthcheck.sh"] |
|
|
|
|
|
|
|
# Configures the startup! |
|
|
|
WORKDIR / |
|
|
|
CMD ["/bitwarden_rs"] |
|
|
|
CMD ["/start.sh"] |
|
|
|
|
|
@ -125,9 +125,10 @@ COPY --from=vault /web-vault ./web-vault |
|
|
|
COPY --from=build /app/target/arm-unknown-linux-gnueabi/release/bitwarden_rs . |
|
|
|
|
|
|
|
COPY docker/healthcheck.sh /healthcheck.sh |
|
|
|
COPY docker/start.sh /start.sh |
|
|
|
|
|
|
|
HEALTHCHECK --interval=60s --timeout=10s CMD ["/healthcheck.sh"] |
|
|
|
|
|
|
|
# Configures the startup! |
|
|
|
WORKDIR / |
|
|
|
CMD ["/bitwarden_rs"] |
|
|
|
CMD ["/start.sh"] |
|
|
|
|
|
@ -119,9 +119,10 @@ COPY --from=vault /web-vault ./web-vault |
|
|
|
COPY --from=build /app/target/arm-unknown-linux-gnueabi/release/bitwarden_rs . |
|
|
|
|
|
|
|
COPY docker/healthcheck.sh /healthcheck.sh |
|
|
|
COPY docker/start.sh /start.sh |
|
|
|
|
|
|
|
HEALTHCHECK --interval=60s --timeout=10s CMD ["/healthcheck.sh"] |
|
|
|
|
|
|
|
# Configures the startup! |
|
|
|
WORKDIR / |
|
|
|
CMD ["/bitwarden_rs"] |
|
|
|
CMD ["/start.sh"] |
|
|
|
|
|
@ -124,9 +124,10 @@ COPY --from=vault /web-vault ./web-vault |
|
|
|
COPY --from=build /app/target/armv7-unknown-linux-gnueabihf/release/bitwarden_rs . |
|
|
|
|
|
|
|
COPY docker/healthcheck.sh /healthcheck.sh |
|
|
|
COPY docker/start.sh /start.sh |
|
|
|
|
|
|
|
HEALTHCHECK --interval=60s --timeout=10s CMD ["/healthcheck.sh"] |
|
|
|
|
|
|
|
# Configures the startup! |
|
|
|
WORKDIR / |
|
|
|
CMD ["/bitwarden_rs"] |
|
|
|
CMD ["/start.sh"] |
|
|
|
|
|
@ -118,9 +118,10 @@ COPY --from=vault /web-vault ./web-vault |
|
|
|
COPY --from=build /app/target/armv7-unknown-linux-gnueabihf/release/bitwarden_rs . |
|
|
|
|
|
|
|
COPY docker/healthcheck.sh /healthcheck.sh |
|
|
|
COPY docker/start.sh /start.sh |
|
|
|
|
|
|
|
HEALTHCHECK --interval=60s --timeout=10s CMD ["/healthcheck.sh"] |
|
|
|
|
|
|
|
# Configures the startup! |
|
|
|
WORKDIR / |
|
|
|
CMD ["/bitwarden_rs"] |
|
|
|
CMD ["/start.sh"] |
|
|
|
|
|
@ -0,0 +1,15 @@ |
|
|
|
#!/bin/sh |
|
|
|
|
|
|
|
if [ -r /etc/bitwarden_rs.sh ]; then |
|
|
|
. /etc/bitwarden_rs.sh |
|
|
|
fi |
|
|
|
|
|
|
|
if [ -d /etc/bitwarden_rs.d ]; then |
|
|
|
for f in /etc/bitwarden_rs.d/*.sh; do |
|
|
|
if [ -r $f ]; then |
|
|
|
. $f |
|
|
|
fi |
|
|
|
done |
|
|
|
fi |
|
|
|
|
|
|
|
exec /bitwarden_rs "${@}" |