From 0d2599fb822b4a6aa8594794a3b9beb9d8f3538c Mon Sep 17 00:00:00 2001 From: krateng Date: Thu, 23 Dec 2021 07:34:51 +0100 Subject: [PATCH] Factored out alpine installation steps --- install/alpine_requirements_build.sh | 1 + install/alpine_requirements_build_volatile.sh | 1 + install/alpine_requirements_run.sh | 1 + install_alpine.sh | 5 +++-- install_ubuntu.sh | 1 - 5 files changed, 6 insertions(+), 3 deletions(-) create mode 100644 install/alpine_requirements_build.sh create mode 100644 install/alpine_requirements_build_volatile.sh create mode 100644 install/alpine_requirements_run.sh diff --git a/install/alpine_requirements_build.sh b/install/alpine_requirements_build.sh new file mode 100644 index 0000000..ad26928 --- /dev/null +++ b/install/alpine_requirements_build.sh @@ -0,0 +1 @@ +apk add gcc libxml2-dev libxslt-dev py3-pip libc-dev linux-headers diff --git a/install/alpine_requirements_build_volatile.sh b/install/alpine_requirements_build_volatile.sh new file mode 100644 index 0000000..2248e34 --- /dev/null +++ b/install/alpine_requirements_build_volatile.sh @@ -0,0 +1 @@ +apk add --no-cache --virtual .build-deps gcc libxml2-dev libxslt-dev py3-pip libc-dev linux-headers diff --git a/install/alpine_requirements_run.sh b/install/alpine_requirements_run.sh new file mode 100644 index 0000000..4704349 --- /dev/null +++ b/install/alpine_requirements_run.sh @@ -0,0 +1 @@ +apk add python3 python3-dev imagemagick tzdata diff --git a/install_alpine.sh b/install_alpine.sh index 9f8a867..bcc56e9 100644 --- a/install_alpine.sh +++ b/install_alpine.sh @@ -1,4 +1,5 @@ #!/usr/bin/env bash -apk add python3 python3-dev gcc libxml2-dev libxslt-dev py3-pip libc-dev linux-headers -pip3 install psutil wheel +sh ./install/alpine_requirements_run.sh +sh ./install/alpine_requirements_build.sh +pip3 install wheel pip3 install malojaserver diff --git a/install_ubuntu.sh b/install_ubuntu.sh index d30bd7b..ff0bd66 100644 --- a/install_ubuntu.sh +++ b/install_ubuntu.sh @@ -1,5 +1,4 @@ #!/usr/bin/env bash apt update apt install python3 python3-pip -pip3 install psutil pip3 install malojaserver