File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -15,4 +15,11 @@ COPY --chmod=755 common/ /
1515
1616EXPOSE 22
1717
18+ HEALTHCHECK \
19+ --interval=15s \
20+ --timeout=5s \
21+ --start-period=15s \
22+ --retries=2 \
23+ CMD [ "/usr/local/bin/healthcheck.sh" ]
24+
1825ENTRYPOINT ["docker-sftp-entrypoint" ]
Original file line number Diff line number Diff line change 11#! /bin/bash
2- # set -Eeo pipefail
2+
3+ set -Eeo pipefail
34
45# shellcheck disable=2154
56trap ' s=$?; echo "$0: Error on line "$LINENO": $BASH_COMMAND"; exit $s' ERR
Original file line number Diff line number Diff line change 1+ #! /bin/sh
2+
3+ set -eu
4+
5+ AWS_S3_ROOTDIR=${AWS_S3_ROOTDIR:- " /opt/s3fs" }
6+
7+ # Where are we going to mount the remote bucket resource in our container.
8+ AWS_S3_MOUNT=${AWS_S3_MOUNT:- " ${AWS_S3_ROOTDIR%/ } /bucket" }
9+
10+ if [ " $ENABLE_S3FS " = " true" ] || [ " $ENABLE_S3FS " = " 1" ]; then
11+ grep fuse.s3fs /proc/mounts | grep -q " ${AWS_S3_MOUNT} " || exit 1
12+ else
13+ pgrep /usr/sbin/sshd > /dev/null || exit 1
14+ fi
15+
16+ exit 0
You can’t perform that action at this time.
0 commit comments