Hasura GRAPHQL Server Integration Gitlab

Source: Internet
Author: User

The default is to provide the Gitlab integrated demo, but because Gitlab some version of the problem,
It's always a problem to run, so finding relevant data tests a version that works.

Project use Docker-compose Run reference https://github.com/Trantect/docker-compose.yamls

Environment preparation
    • Docker-compose file
Version: ' 2 ' services:redis:image:sameersbn/redis:4.0.9-1 command:---loglevel warning Volumes:-./srv /docker/gitlab/redis:/var/lib/redis:z Graphql-engine:image:hasura/graphql-engine:v1.0.0-alpha24 Ports:-"8080       : 8080 "depends_on:-PostgreSQL Environment:-" Postgres_password:password "command: >/bin/sh-c" Graphql-engine--database-url postgres://postgres:[email protected]:5432/gitlabhq_production Serve--      Enable-console;    "Postgresql:image:sameersbn/postgresql:10 volumes:-./srv/docker/gitlab/postgresql:/var/lib/postgresql:z Ports:-"5432:5432" Environment:-db_user=gitlab-db_pass=password-pg_password=password-db_name=g ITLABHQ_PRODUCTION-DB_EXTENSION=PG_TRGM gitlab:image:sameersbn/gitlab:11.3.4 depends_on:-Redis-pos Tgresql ports:-"10080:80"-"10022:22" volumes:-./srv/docker/gitlab/gitlab:/home/git/data:z environm ENT:-DEBUg=false-db_adapter=postgresql-db_host=postgresql-db_port=5432-db_user=gitlab-db_pass=password -Db_name=gitlabhq_production-redis_host=redis-redis_port=6379-tz=asia/kolkata-gitlab_timezone=kolkat A-gitlab_https=false-ssl_self_signed=false-gitlab_host=localhost-gitlab_port=10080-gitlab_ssh_por T=10022-gitlab_relative_url_root=-Gitlab_secrets_db_key_base=long-and-random-alphanumeric-string-gitlab_sec Rets_secret_key_base=long-and-random-alphanumeric-string-gitlab_secrets_otp_key_base= Long-and-random-alphanumeric-string-gitlab_root_password=-gitlab_root_email=-GITLAB_NOTIFY_ON_BROKEN_BUILDS =true-gitlab_notify_pusher=false-[email protected]-gitlab_email_reply_t[email protected]-[EM Ail protected]-Gitlab_backup_schedule=daily-gitlab_backup_time=01:00-smtp_enabled=false-smtp_doma In=www.example.com-smtp_host=smtp.gmail.com-smtp_port=587-[email protected]-Smtp_pass=password-smtp_starttls=true-smtp_authentication=login    -imap_enabled=false-imap_host=imap.gmail.com-imap_port=993-[email protected]-IMAP_PASS=password -Imap_ssl=true-imap_starttls=false-oauth_enabled=false-oauth_auto_sign_in_with_provider=-OAUTH_ALL     Ow_sso=-Oauth_block_auto_created_users=true-oauth_auto_link_ldap_user=false-oauth_auto_link_saml_user=false -oauth_external_providers=-oauth_cas3_label=cas3-oauth_cas3_server=-Oauth_cas3_disable_ssl_verificatio N=false-oauth_cas3_login_url=/cas/login-oauth_cas3_validate_url=/cas/p3/servicevalidate-oauth_cas3_logout_u rl=/cas/logout-oauth_google_api_key=-oauth_google_app_secret=-oauth_google_restrict_domain=-OAUTH_FACE book_api_key=-oauth_facebook_app_secret=-oauth_twitter_api_key=-oauth_twitter_app_secret=-OAUTH_GITHUB _api_key=-Oauth_github_app_secret=-Oauth_github_url=-oauth_github_verify_ssl=-oauth_gitlab_api_key=-OAUTH_GITLAB_APP_SECR et=-oauth_bitbucket_api_key=-oauth_bitbucket_app_secret=-oauth_saml_assertion_consumer_service_url=-OA  Uth_saml_idp_cert_fingerprint=-Oauth_saml_idp_sso_target_url=-oauth_saml_issuer=-OAUTH_SAML_LABEL= "Our SAML Provider "-Oauth_saml_name_identifier_format=urn:oasis:names:tc:saml:2.0:nameid-format:transient-oauth_saml_gro Ups_attribute=-oauth_saml_external_groups=-oauth_saml_attribute_statements_email=-OAUTH_SAML_ATTRIBUTE_STAT Ements_name=-Oauth_saml_attribute_statements_first_name=-oauth_saml_attribute_statements_last_name=-OAUTH_C Rowd_server_url=-Oauth_crowd_app_name=-oauth_crowd_app_password=-oauth_auth0_client_id=-OAUTH_AUTH0_CL ient_secret=-oauth_auth0_domain=-oauth_azure_api_key=-oauth_azure_api_secret=-oauth_azure_tenant_id=
Start && test
    • Start

      May need to be started multiple times, service dependent, some services may not yet run

docker-compose up -d
    • Effect

    • Add engine-managed tables
    • Inquire
query {  projects {    id    ci_id    created_at    creator_id    archived    star_count    storage_version    description    updated_at    namespace_id  }}

Description

Easy to integrate, easy to develop CI/CD related functions, including quick API access

Resources

Https://github.com/rongfengliang/graphql-engine-gitlab
Https://docs.hasura.io/1.0/graphql/manual/index.html
Https://github.com/Trantect/docker-compose.yamls

Hasura GRAPHQL Server Integration Gitlab

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.