-
Notifications
You must be signed in to change notification settings - Fork 62
Deploying on Elastic Beanstalk #305
-
Hi there, I have a Rails 6.1 app I am developing I have successfully used the ruby-vips gem to generate a dzi image using the "dzsave" method. It is for use in openseadragon. Works great in development.
I have now spent two days trying to get it to deploy to an AWS Elastic Beanstalk Instance.
At first it appeared that I needed to install vips on the server which I was able to do using this .ebextensions.config script
"/opt/elasticbeanstalk/hooks/appdeploy/pre/10_libvip_installer.sh" :
mode: "000775"
owner: root
group: users
content: |
#!/usr/bin/env bash
sudo yum update -y \
&& sudo yum groupinstall -y "Development Tools" \
&& sudo yum install -y wget tar
sudo yum install -y \
libpng-devel \
glib2-devel \
libjpeg-devel \
expat-devel \
zlib-devel \
giflib-devel
sudo yum install -y gcc64
echo "Installing VIPS"
VIPS_VERSION=8.9.0
VIPS_URL=https://github.com/libvips/libvips/releases/download
sudo ln -s /usr/lib/gcc/x86_64-amazon-linux/6.4.1/libgomp.spec /usr/lib64/libgomp.spec
sudo ln -s /usr/lib/gcc/x86_64-amazon-linux/6.4.1/libgomp.a /usr/lib64/libgomp.a
sudo ln -s /usr/lib64/libgomp.so.1.0.0 /usr/lib64/libgomp.so
wget ${VIPS_URL}/v${VIPS_VERSION}/vips-${VIPS_VERSION}.tar.gz \
&& tar xzf vips-${VIPS_VERSION}.tar.gz \
&& cd vips-${VIPS_VERSION} \
&& ./configure \
&& sudo make \
&& sudo make install
This succesfully installs vips but dzsave will not work without the 'libgsf-1' library. I have tried for hours to get that installed on the Beanstalk instance with no luck. I have tried SSHing into the instance and manually installing it but I end up in an endless loop of dependency requirements. There must be an easier way...
Do any of you have any experience with this?
Beta Was this translation helpful? Give feedback.