From c33d4a1f50ed4ed04f21f45328f55513622c512d Mon Sep 17 00:00:00 2001 From: Adrian Malacoda Date: Sun, 16 Jun 2019 14:45:09 -0500 Subject: [PATCH] add wait-for-it and get-variable, these will be used to determine the proper address of the database and wait for it to connect --- Dockerfile | 4 +++- get-variable | 10 ++++++++++ setup.sh | 2 ++ 3 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 get-variable diff --git a/Dockerfile b/Dockerfile index 8ffb52c..1dc8d32 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,6 +12,8 @@ RUN chmod +x add_extension.sh RUN ./add_extension.sh Scribunto $MEDIAWIKI_BRANCH && \ ./add_extension.sh VisualEditor $MEDIAWIKI_BRANCH +ADD https://raw.githubusercontent.com/vishnubob/wait-for-it/master/wait-for-it.sh /wait-for-it ADD setup.sh /setup.sh -RUN chmod +x /setup.sh +ADD get-variable /get-variable +RUN chmod +x setup.sh && chmod +x wait-for-it && chmod +x get-variable CMD ["/setup.sh"] diff --git a/get-variable b/get-variable new file mode 100644 index 0000000..c426aa0 --- /dev/null +++ b/get-variable @@ -0,0 +1,10 @@ +#!/usr/bin/env php +