graphql-engine-builder
GraphQL-engine server构建器,支持amd64&arm
203
# 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
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
Content type
Image
Digest
Size
425.5 MB
Last updated
over 5 years ago
docker pull hanlyjiang/graphql-engine-builder:20201111