mirror of
https://ops.gitlab.net/gitlab-org/gitlab-build-images.git
synced 2025-12-13 03:52:55 +01:00
Add exiftool to images used for CE/EE tests
Signed-off-by: Balasankar "Balu" C <balasankar@gitlab.com>
This commit is contained in:
parent
132bafc2ff
commit
7a9dd56386
5 changed files with 39 additions and 0 deletions
|
|
@ -192,6 +192,19 @@ function print_graphicsmagick_args() {
|
|||
printf -- "--build-arg GRAPHISMAGICK_DOWNLOAD_SHA256=%s " "$GRAPHISMAGICK_DOWNLOAD_SHA256"
|
||||
}
|
||||
|
||||
function print_exiftool_args() {
|
||||
case "$1" in
|
||||
11.32)
|
||||
EXIFTOOL_VERSION=11.32
|
||||
EXIFTOOL_DOWNLOAD_SHA256=c6cc7d2232df9161d4e0d9af4ebc50a82dcbff8e4adeb6b4833376c228d2972e
|
||||
;;
|
||||
*) echo "Unknown exiftool version $1"; exit 1;
|
||||
esac
|
||||
|
||||
printf -- "--build-arg EXIFTOOL_VERSION=%s " "$EXIFTOOL_VERSION"
|
||||
printf -- "--build-arg EXIFTOOL_DOWNLOAD_SHA256=%s " "$EXIFTOOL_DOWNLOAD_SHA256"
|
||||
}
|
||||
|
||||
function parse_arguments() {
|
||||
read base
|
||||
read base_version
|
||||
|
|
@ -217,6 +230,7 @@ function parse_arguments() {
|
|||
ansible) print_ansible_args $version ;;
|
||||
terraform) print_terraform_args $version ;;
|
||||
graphicsmagick) print_graphicsmagick_args $version ;;
|
||||
exiftool) print_exiftool_args $version ;;
|
||||
*) exit 1;;
|
||||
esac
|
||||
done
|
||||
|
|
|
|||
15
scripts/install-exiftool
Executable file
15
scripts/install-exiftool
Executable file
|
|
@ -0,0 +1,15 @@
|
|||
#!/bin/bash
|
||||
|
||||
set -xeuo pipefail
|
||||
IFS=$'\n\t'
|
||||
|
||||
mkdir build \
|
||||
&& curl -fsSL "$EXIFTOOL_DOWNLOAD_URL" -o exiftool.tar.gz \
|
||||
&& echo "$EXIFTOOL_DOWNLOAD_SHA256 exiftool.tar.gz" | sha256sum -c - \
|
||||
&& tar -C build -xzf exiftool.tar.gz \
|
||||
&& cd build/Image-ExifTool-$EXIFTOOL_VERSION \
|
||||
&& perl Makefile.PL \
|
||||
&& make install \
|
||||
&& cd ../.. \
|
||||
&& rm -rf build \
|
||||
&& rm exiftool.tar.gz
|
||||
Loading…
Add table
Add a link
Reference in a new issue