| Server IP : 188.151.22.197 / Your IP : 216.73.217.74 Web Server : Apache/2.4.62 (Rocky Linux) OpenSSL/3.5.5 System : Linux wsten.se 5.14.0-687.30.1.el9_8.x86_64 #1 SMP PREEMPT_DYNAMIC Mon Jul 27 13:09:21 UTC 2026 x86_64 User : apache ( 48) PHP Version : 8.1.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /opt/gitlab/embedded/service/gitlab-rails/scripts/ |
Upload File : |
#!/usr/bin/env bash
GITLAB_DIR="$(cd "$(dirname "$0")/.." || exit ; pwd -P)"
DOCKER_IMAGE="registry.gitlab.com/gitlab-org/gitlab-build-images:apollo"
CONFIG_FILE="config/apollo.config.js"
SCHEMA_DUMP_PATH="tmp/tests/graphql/gitlab_schema_apollo.graphql"
if [ "$CI" = true ]; then
echo "Not dumping the GraphQL schema in CI"
else
echo "Dumping GraphQL schema"
cd "$GITLAB_DIR" || exit 1
if command -v docker >/dev/null; then
bundle exec rake gitlab:graphql:schema:dump &&
docker run --rm -it \
-v "$GITLAB_DIR/config":/config \
-v "$GITLAB_DIR/tmp":/tmp \
-v "$GITLAB_DIR/app":/app \
-v "$GITLAB_DIR/ee":/ee \
"$DOCKER_IMAGE" client:download-schema --config="$CONFIG_FILE" "$SCHEMA_DUMP_PATH"
else
echo "Docker must be installed to run this script."
exit 1
fi
fi