History

Upgrade Alpine from 3.13 to 3.15 (#18050)

* Upgrade alpine to 3.15 * Add executability test to entrypoint for too old dockers Signed-off-by: Andrew Thornton <art27@cantab.net> * Update docker/rootless/usr/local/bin/docker-entrypoint.sh

Grzegorz Alibożek committed 4 years ago

Commit 45631481 parent b7c64574 files · +18 −10Browse files

Showing the changes to docker/rootless/usr (1 of 4 files). Show all

Unified · Split

docker/rootless/usr/local/bin/docker-entrypoint.sh+6−0
@@ -1,5 +1,11 @@
11 #!/bin/sh
22
3+# Protect against buggy runc in docker <20.10.6 causing problems in with Alpine >= 3.14
4+if [ ! -x /bin/sh ]; then
5+ echo "Executable test for /bin/sh failed. Your Docker version is too old to run Alpine 3.14+ and Gitea. You must upgrade Docker.";
6+ exit 1;
7+fi
8+
39 if [ -x /usr/local/bin/docker-setup.sh ]; then
410 /usr/local/bin/docker-setup.sh || { echo 'docker setup failed' ; exit 1; }
511 fi