add install-plugin script,

add project name env
This commit is contained in:
Arthur de Moulins
2020-03-12 19:24:41 +01:00
parent c13232a001
commit 19e6ba689c
6 changed files with 109 additions and 0 deletions

View File

@@ -86,6 +86,7 @@ RUN curl -sL https://deb.nodesource.com/setup_10.x | bash - \
vim \
iputils-ping \
zsh \
ssh \
telnet \
autoconf \
libtool \
@@ -112,6 +113,21 @@ RUN make install
ADD ./docker/builder/root /
# SSH Private repo
ARG SSH_PRIVATE_KEY
ARG PHRASEANET_PLUGINS
RUN ( \
test ! -z "${SSH_PRIVATE_KEY}" \
&& mkdir -p ~/.ssh \
&& echo "${SSH_PRIVATE_KEY}" > ~/.ssh/id_rsa \
# make sure github domain.com is accepted
&& ssh-keyscan -H github.com >> ~/.ssh/known_hosts \
&& chmod 600 ~/.ssh/id_rsa \
) || echo "Skip SSH key"
RUN ./docker/phraseanet/install-plugins
ENTRYPOINT ["/bootstrap/entrypoint.sh"]
CMD []