Choosing AMI for haskell application deployment?

I am working on a haskell web application using yesod, which ultimately wants to deploy to EC2, can someone recommend an AMI that has the latest haskell platform and git client installed using repositories from repositories?

+6
source share
2 answers

If you look at the Michael Snoyan script setup here, it contains the steps that he used to get an EC2 instance running on Ubuntu AMI.

https://github.com/yesodweb/benchmarks/blob/master/setup.sh

I also have Yesod running on source on Amazon Linux. It takes several hours to create just a few hours, but I think that any of the standard boxes with at least 8 GB of memory should do this (otherwise GHC will not be able to connect). Here is how I did it:

# install what packages are available sudo yum --enablerepo=epel install haskell-platform git make ncurses-devel patch # make and install ghc wget http://www.haskell.org/ghc/dist/7.0.4/ghc-7.0.4-src.tar.bz2 tar jxf ghc-7.0.4-src.tar.bz2 rm ghc-7.0.4-src.tar.bz2 cd ghc-7.0.4 ./configure make -j 4 # wait a few hours sudo make install cd rm -rf ghc-7.0.4 # make and install haskell-platform wget http://lambda.haskell.org/platform/download/2011.4.0.0/haskell-platform-2011.4.0.0.tar.gz tar zxf haskell-platform-2011.4.0.0.tar.gz cd haskell-platform-2011.4.0.0 ./configure make -j 4 sudo make install cd rm -rf haskell-platform-2011.4.0.0 
+3
source

An EC2 instance should not be compiled. Select a generic AMI such as Ubuntu and compile on your local computer, then load the static binary into EC2.

+1
source

Source: https://habr.com/ru/post/905035/


All Articles