From 9a192676ec85835e273316cc5274d29bff0c006c Mon Sep 17 00:00:00 2001 From: Vitaly Slobodin Date: Wed, 24 Nov 2021 13:52:23 +0300 Subject: [PATCH] Add docker container with Apollo --- .gitlab-ci.yml | 5 +++++ Dockerfile.apollo | 9 +++++++++ 2 files changed, 14 insertions(+) create mode 100644 Dockerfile.apollo diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index bb20873..efe5943 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -180,6 +180,9 @@ gitlab-operator-build-base test: *test_build alpine-bash-jq-curl-git test: *test_build +# Used by frontend related tasks for linting GraphQL +apollo test: *test_build + # Builds # Used by Gitaly: https://gitlab.com/gitlab-org/gitaly/blob/master/.gitlab-ci.yml @@ -282,6 +285,8 @@ terraform push: *build_and_deploy golangci-lint-alpine push: *build_and_deploy # Used by gitlab-operator: https://gitlab.com/gitlab-org/gl-openshift/gitlab-operator gitlab-operator-build-base push: *build_and_deploy +# Used by frontend related tasks for linting GraphQL +apollo push: *build_and_deploy alpine-bash-jq-curl-git push: *build_and_deploy cache-google-chrome: diff --git a/Dockerfile.apollo b/Dockerfile.apollo new file mode 100644 index 0000000..22f338c --- /dev/null +++ b/Dockerfile.apollo @@ -0,0 +1,9 @@ +FROM node:14.18-alpine3.14 + +RUN apk update \ + && apk add --no-cache git + +RUN yarn global add apollo@2.33.9 + +ENTRYPOINT ["apollo"] +CMD ["--help"]