hanlyjiang/graphql-engine-builder

By hanlyjiang

Updated over 5 years ago

GraphQL-engine server构建器,支持amd64&arm

Image
1

203

hanlyjiang/graphql-engine-builder repository overview

Image Description:

ARM:
  • ghc 8.6.5 + ghc 8.10.1 + cabal 3.2.0.0
  • llvm6.0+llvm9
  • postgressql and other libs for graphql-engine build
amd64:
  • from haskell/ghc:8.10.1 ,add some libs for graphql-engine build

Usage:

Host:
# for arm : docker pull hanlyjiang/graphql-engine-builder:arm-latest 
docker pull hanlyjiang/graphql-engine-builder

git clone -b v1.2.2  https://github.com/hasura/graphql-engine.git graphql-engine

cd graphql-engine

docker run -it --name graphql-engine-builder -p 8080:8080 -v $PWD/graphql-engine:/build/graphql-engine hanlyjiang/graphql-engine-builder  bash
Container:
cd /build/graphql-engine/server

cabal new-update

# Ctrl+C 
sed -i 's/hackage.haskell.org/mirrors.tuna.tsinghua.edu.cn/g' /root/.cabal/config
sed -i 's/mirrors.tuna.tsinghua.edu.cn\//mirrors.tuna.tsinghua.edu.cn\/hackage/g' /root/.cabal/config
cabal new-update

# build 
cabal new-build

Test graphql-engine build success :

exec_glob=`find /build/graphql-engine/server/dist-newstyle/ -type f -name "graphql-engine"`
# output version info 
$exec_glob version
# test graphql-engine(need a postgres db connection)
$exec_glob  --database-url='postgres://postgres:postgres@localhost:5433/hasura' serve --enable-console

Tag summary

Content type

Image

Digest

Size

425.5 MB

Last updated

over 5 years ago

docker pull hanlyjiang/graphql-engine-builder:20201111