ci: exits in case of an error in Makefile, refactor cli-migrations-v2 image in accordance with hge base image

Co-authored-by: Aravind K P <8335904+scriptonist@users.noreply.github.com>
GitOrigin-RevId: 484147cb31becf6742620219d1c2b96a66bdb667
This commit is contained in:
Vishnu Bharathi 2021-03-02 12:55:32 +05:30 committed by hasura-bot
parent e4c8d560c5
commit bf76de3ab6
3 changed files with 6 additions and 10 deletions

View File

@ -6,6 +6,8 @@ BINARY ?= $(BUILD_DIR)/_cli_output/binaries/cli-hasura-linux-amd64
IMAGE_TAG ?= cli-migrations
BUILD_OUTPUT ?= $(BUILD_DIR)/_cli_migrations_output
SERVER_BUILD_OUTPUT := $(BUILD_DIR)/_server_output
SHELL := /bin/bash
.SHELLFLAGS := -ce
.PHONY: load-server-image
load-server-image:

View File

@ -1,13 +1,6 @@
FROM hasura/haskell-docker-packager:20190731 as packager
WORKDIR /tmp
RUN apt-get update && apt-get download libstdc++6
FROM hasura/graphql-engine:v2.0.0-alpha.2
FROM hasura/graphql-engine:v1.4.0-alpha.1
# install libstdc++6 from .deb file
COPY --from=packager /tmp/libstdc++6* .
RUN busybox dpkg-deb -x libstdc++6*.deb / \
&& rm libstdc++6*.deb
RUN apt-get update && apt-get install -y netcat
# set an env var to let the cli know that
# update notification is disabled
@ -26,4 +19,4 @@ ENV HASURA_GRAPHQL_CLI_ENVIRONMENT=server-on-docker
ENTRYPOINT ["docker-entrypoint.sh"]
CMD ["graphql-engine", "serve"]
CMD ["graphql-engine", "serve"]

View File

@ -3,6 +3,7 @@
"sources": [
{
"name": "default",
"kind": "postgres",
"tables": [],
"configuration": {
"connection_info": {