From 1355e993dd8ddc3831304423fd7c8d2f63d5c4cb Mon Sep 17 00:00:00 2001 From: Joshua Hesketh Date: Fri, 15 Feb 2019 17:04:53 +1100 Subject: [PATCH] Fix building solr I kept hitting an error when building solr `/bin/sh: /docker-entrypoint.sh: Text file busy`, this is caused where the script is attempted to be ran before the previous `chmod` command has properly sync'd to disk. Adding in a sync fixes this trouble for me. --- data/Dockerfiles/solr/Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/data/Dockerfiles/solr/Dockerfile b/data/Dockerfiles/solr/Dockerfile index 67cd3384..8f2a873e 100644 --- a/data/Dockerfiles/solr/Dockerfile +++ b/data/Dockerfiles/solr/Dockerfile @@ -4,6 +4,7 @@ COPY docker-entrypoint.sh / RUN apk --no-cache add su-exec curl tzdata \ && chmod +x /docker-entrypoint.sh \ + && sync \ && /docker-entrypoint.sh --bootstrap ENTRYPOINT ["/docker-entrypoint.sh"]