Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Deploying on Elastic Beanstalk #305

Unanswered
candersson1 asked this question in Q&A
Discussion options

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?

You must be logged in to vote

Replies: 0 comments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant

AltStyle によって変換されたページ (->オリジナル) /