Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Zusel committed May 22, 2024
1 parent fe1f4fe commit 33bf7f4
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 4 deletions.
15 changes: 11 additions & 4 deletions actionfiles/build_and_push_docker_image/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,18 @@ RUN set -ex && \
# Define working directory for the following commands
WORKDIR ${MW_ROOT}

# Copy Tweeki skin to skins/
COPY ./skins/Tweeki skins/Tweeki
#install skins
COPY actionfiles/build_and_push_docker_image/setup/install_skins.sh .
RUN chmod +x install_skins.sh
RUN ./install_skins.sh
RUN rm ./install_skins.sh

#install plugins
COPY actionfiles/build_and_push_docker_image/setup/install_plugins.sh .
RUN chmod +x install_plugins.sh
RUN ./install_plugins.sh
RUN rm ./install_plugins.sh

# Copy extensions
COPY ./extensions extensions

# Copy the php.ini with desired upload_max_filesize into the php directory.
COPY ./resources/php.ini /usr/local/etc/php/php.ini
Expand Down
10 changes: 10 additions & 0 deletions actionfiles/build_and_push_docker_image/setup/install_plugins.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#versions
pdfembed_version=2.0.2

# https://www.mediawiki.org/wiki/Extension:PDFEmbed
if [ ! -d extensions/PDFEmbed ]; then
echo "Downloading PDFEmbed"
wget https://gitlab.com/hydrawiki/extensions/PDFEmbed/-/archive/${pdfembed_version}/PDFEmbed-${pdfembed_version}.zip
unzip PDFEmbed-${pdfembed_version}.zip
mv PDFEmbed-${pdfembed_version}/ extensions/PDFEmbed
fi
10 changes: 10 additions & 0 deletions actionfiles/build_and_push_docker_image/setup/install_skins.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#versions
tweeki_version=2.0.1


if [ ! -d skins/Tweeki ]; then
echo "Downloading Tweeki skin"
wget https://github.com/thaider/Tweeki/archive/refs/tags/v${tweeki_version}.tar.gz
tar xf v${tweeki_version}.tar.gz
mv Tweeki-* skins/Tweeki
fi

0 comments on commit 33bf7f4

Please sign in to comment.