mirror of
https://ops.gitlab.net/gitlab-org/gitlab-build-images.git
synced 2025-12-09 10:02:56 +01:00
Add graphicsmagick versioned feature
This commit is contained in:
parent
9dadb28021
commit
72747ef3ca
5 changed files with 73 additions and 9 deletions
|
|
@ -118,6 +118,19 @@ function print_terraform_args() {
|
|||
printf -- "--build-arg TERRAFORM_DOWNLOAD_SHA256=%s " "$TERRAFORM_DOWNLOAD_SHA256"
|
||||
}
|
||||
|
||||
function print_graphicsmagick_args() {
|
||||
case "$1" in
|
||||
1.3.29)
|
||||
GRAPHISMAGICK_VERSION=1.3.29
|
||||
GRAPHISMAGICK_DOWNLOAD_SHA256=de820cd10597205941a7e9d02c2e679231e92e8e769c204ef09034d2279ad453
|
||||
;;
|
||||
*) echo "Unknown graphicsmagick version $1"; exit 1;
|
||||
esac
|
||||
|
||||
printf -- "--build-arg GRAPHISMAGICK_VERSION=%s " "$GRAPHISMAGICK_VERSION"
|
||||
printf -- "--build-arg GRAPHISMAGICK_DOWNLOAD_SHA256=%s " "$GRAPHISMAGICK_DOWNLOAD_SHA256"
|
||||
}
|
||||
|
||||
function parse_arguments() {
|
||||
read base
|
||||
read base_version
|
||||
|
|
@ -141,6 +154,7 @@ function parse_arguments() {
|
|||
postgresql) print_postgres_args $version ;;
|
||||
ansible) print_ansible_args $version ;;
|
||||
terraform) print_terraform_args $version ;;
|
||||
graphicsmagick) print_graphicsmagick_args $version ;;
|
||||
*) exit 1;;
|
||||
esac
|
||||
done
|
||||
|
|
|
|||
41
scripts/install-graphicsmagick
Executable file
41
scripts/install-graphicsmagick
Executable file
|
|
@ -0,0 +1,41 @@
|
|||
#!/bin/bash
|
||||
|
||||
set -xeuo pipefail
|
||||
IFS=$'\n\t'
|
||||
|
||||
mkdir build \
|
||||
&& curl -fsSL "$GRAPHISMAGICK_DOWNLOAD_URL" -o graphicsmagick.tar.gz \
|
||||
&& echo "$GRAPHISMAGICK_DOWNLOAD_SHA256 graphicsmagick.tar.gz" | sha256sum -c - \
|
||||
&& tar -C build -xzf graphicsmagick.tar.gz \
|
||||
&& cd build/GraphicsMagick-$GRAPHISMAGICK_VERSION \
|
||||
&& chmod +x configure \
|
||||
&& ./configure \
|
||||
--prefix=/usr/local \
|
||||
--disable-openmp \
|
||||
--without-magick-plus-plus \
|
||||
--with-perl=no \
|
||||
--without-bzlib \
|
||||
--without-dps \
|
||||
--without-fpx \
|
||||
--without-gslib \
|
||||
--without-jbig \
|
||||
--without-webp \
|
||||
--without-jpeg \
|
||||
--without-jp2 \
|
||||
--without-lcms2 \
|
||||
--without-lzma \
|
||||
--with-png \
|
||||
--with-sysroot=/usr/local \
|
||||
--without-tiff \
|
||||
--without-trio \
|
||||
--without-ttf \
|
||||
--without-umem \
|
||||
--without-wmf \
|
||||
--without-xml \
|
||||
--with-zlib \
|
||||
--without-x \
|
||||
&& make \
|
||||
&& make install \
|
||||
&& cd ../.. \
|
||||
&& rm -rf build \
|
||||
&& rm graphicsmagick.tar.gz
|
||||
Loading…
Add table
Add a link
Reference in a new issue