-
-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
19 changed files
with
153 additions
and
109 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,7 @@ | ||
FROM microsoft/dotnet:2.2-sdk | ||
LABEL maintainer "[email protected]" | ||
WORKDIR /app | ||
|
||
RUN apt-get update && \ | ||
DEBIAN_FRONTEND=noninteractive apt-get install -y \ | ||
automake build-essential curl \ | ||
cdbs debhelper dh-autoreconf flex bison \ | ||
libjpeg-dev libtiff-dev libpng-dev libgif-dev librsvg2-dev libpoppler-glib-dev zlib1g-dev fftw3-dev liblcms2-dev \ | ||
libmagickwand-dev libfreetype6-dev libpango1.0-dev libfontconfig1-dev libglib2.0-dev libice-dev \ | ||
gettext pkg-config libxml-parser-perl libexif-gtk-dev liborc-0.4-dev libopenexr-dev libmatio-dev libxml2-dev \ | ||
libcfitsio-dev libopenslide-dev libwebp-dev libgsf-1-dev libgirepository1.0-dev gtk-doc-tools | ||
|
||
ENV LIBVIPS_VERSION_MAJOR 8 | ||
ENV LIBVIPS_VERSION_MINOR 7 | ||
ENV LIBVIPS_VERSION_PATCH 4 | ||
ENV LIBVIPS_VERSION $LIBVIPS_VERSION_MAJOR.$LIBVIPS_VERSION_MINOR.$LIBVIPS_VERSION_PATCH | ||
# FROM mcr.microsoft.com/dotnet/core/sdk:2.2-alpine3.9 AS build | ||
FROM mcr.microsoft.com/dotnet/core/sdk:2.2-stretch AS build | ||
LABEL maintainer "Kleis Auke Wolthuizen <[email protected]>" | ||
|
||
RUN \ | ||
# Build libvips | ||
cd /tmp && \ | ||
curl -L -O https://github.com/libvips/libvips/releases/download/v$LIBVIPS_VERSION/vips-$LIBVIPS_VERSION.tar.gz && \ | ||
tar zxvf vips-$LIBVIPS_VERSION.tar.gz && \ | ||
cd /tmp/vips-$LIBVIPS_VERSION && \ | ||
./configure --enable-debug=no --without-python $1 && \ | ||
make && \ | ||
make install && \ | ||
ldconfig | ||
|
||
# Clean up | ||
RUN rm -rf /tmp/* | ||
WORKDIR /app | ||
|
||
ENTRYPOINT ["./build.sh"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,64 @@ | ||
#!/usr/bin/env bash | ||
|
||
# Define default arguments | ||
from_source=false | ||
use_cache=true | ||
configure_args=() | ||
|
||
# Parse arguments | ||
for i in "$@"; do | ||
case $1 in | ||
--from-source) from_source=true ;; | ||
--skip-cache) use_cache=false ;; | ||
--) shift; configure_args+=("$@"); break ;; | ||
*) configure_args+=("$1") ;; | ||
esac | ||
shift | ||
done | ||
|
||
# Define variables | ||
version=${VIPS_VERSION} | ||
pre_version=${VIPS_PRE_VERSION} | ||
tar_version=${VIPS_TAR_VERSION} | ||
vips_tarball=https://github.com/libvips/libvips/releases/download/v${version}${pre_version:+-$pre_version}/vips-${tar_version}.tar.gz | ||
vips_tarball=https://github.com/libvips/libvips/releases/download/v${version}${pre_version:+-$pre_version}/vips-${tar_version:-$version}.tar.gz | ||
|
||
# Exit immediately if a command exits with a non-zero status | ||
set -e | ||
|
||
# Do we already have the correct vips built? | ||
if [ -d "$HOME/vips/bin" ]; then | ||
if [[ -d "$HOME/vips/bin" ]]; then | ||
installed_version=$($HOME/vips/bin/vips --version | awk -F- '{print $2}') | ||
echo "Need vips $version" | ||
echo "Found vips $installed_version" | ||
|
||
if [[ "$installed_version" == "$version" ]]; then | ||
if [[ "$installed_version" == "$version" ]] && [[ "$use_cache" = true ]]; then | ||
echo "Using cached vips directory" | ||
exit 0 | ||
fi | ||
fi | ||
|
||
echo "Installing vips $version" | ||
# Make sure the vips folder exist | ||
if [[ ! -d "$HOME/vips" ]]; then | ||
mkdir "$HOME/vips" | ||
fi | ||
|
||
rm -rf $HOME/vips | ||
mkdir $HOME/vips | ||
# Do we need to install vips from source? | ||
if [[ "$from_source" = true ]]; then | ||
echo "Installing vips from source" | ||
|
||
curl -L ${vips_tarball} | tar xz | ||
cd vips-${version} | ||
CXXFLAGS=-D_GLIBCXX_USE_CXX11_ABI=0 ./configure --prefix="$HOME/vips" $* | ||
make -j${JOBS} && make install | ||
git clone -b master --single-branch https://github.com/libvips/libvips.git vips-${version} | ||
cd vips-${version} | ||
./autogen.sh --prefix="$HOME/vips" "${configure_args[@]}" | ||
make -j${JOBS} && make install | ||
else | ||
echo "Installing vips $version" | ||
|
||
curl -L ${vips_tarball} | tar xz | ||
cd vips-${version} | ||
./configure --prefix="$HOME/vips" "${configure_args[@]}" | ||
make -j${JOBS} && make install | ||
fi | ||
|
||
# Clean-up build directory | ||
cd ../ | ||
rm -rf vips-${version} | ||
rm -rf vips-${version} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Weavers xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
VerifyAssembly="true" | ||
VerifyIgnoreCodes="0x80131869,0x80131252" | ||
VerifyIgnoreCodes="0x80131869" | ||
GenerateXsd="false"> | ||
<!-- ignore 0x80131869 and 0x80131252 since it throws on netstandard --> | ||
<!-- ignore 0x80131869 since it throws on netstandard --> | ||
<ModuleInit /> | ||
</Weavers> |
Oops, something went wrong.