gitlab

89 readers
2 users here now

Discussion surrounding the Gitlab product (both CE and EE.)

founded 1 year ago
MODERATORS
1
5
submitted 1 month ago by bluey to c/gitlab
2
3
4
submitted 2 months ago by bluey to c/gitlab
4
 
 

works like a charm

5
16
submitted 6 months ago by bluey to c/gitlab
 
 

Crafting pipeline configurations with YAML can be intricate and challenging because YAML isn't a programming language, Developers may find themselves reinventing the wheel each time they try to create new configurations because they don't have visibility into existing configurations and work that others may have already done, resulting in inefficiency.

GitLab 16.7 introduces the CI/CD Catalog (Beta), with the goal of enhancing developer efficiency

6
2
submitted 11 months ago by Luckyfriend222 to c/gitlab
 
 

Hi everyone

I have read through the documentation now several times, and I just want to soundboard something with someone. Regarding the environments we can set up. Is this meant for example as a production cluster and a dev cluster? And if so, is it possible to put a docker swarm cluster in there? I don't see how gitlab will 'know' how to deploy an application to docker swarm? What am I missing? Or am I better off just deploying "manually" via the CI/CD pipeline like I am doing now?

TIA

7
4
submitted 11 months ago* (last edited 11 months ago) by Luckyfriend222 to c/gitlab
 
 

Hi community

I have a pipeline where a stack (service) is deployed to my docker swarm. I want to use $CI_PROJECT_NAME in my docker service definition file to define the docker service name. But it seems the variable is not being expanded, or something else is wrong. I need to have a generic yml so I can distribute this to all devs and they don't have to change anything.

Example of what I am trying to achieve:

version: '3.9'
services:
  $CI_PROJECT_NAME:
    image: myregistry/devops1/$CI_PROJECT_NAME/$CI_PROJECT_NAME:latest
    deploy:
      replicas: 3
      endpoint_mode: dnsrr
      update_config:
        parallelism: 1
        delay: 3s
        order: start-first
        failure_action: rollback
        monitor: 1m
      restart_policy:
        max_attempts: 3
      placement:
        max_replicas_per_node: 1
    networks:
      - microservices
    volumes:
      - apache-logs:/var/log/

networks:
  microservices:
    external: true


volumes:
  apache-logs:
    driver: local
    driver_opts:
      o: bind
      device: /mnt/swarm_shared/services/$CI_PROJECT_NAME
      type: none

I know this is not a docker forum, but was thinking the issue is with my pipeline rather than my docker compose file. I would appreciate any help I can get. TIA

EDIT: As per this community post I used a sed replacement command to solve my problem. Ugly, but functional.

Thanks for the input!

8
6
GitLab outage (status.gitlab.com)
submitted 1 year ago by bluey to c/gitlab
 
 

[Investigating] Our investigation into the root cause of the issue is still underway. Once availability has been restored, full details regarding the incident will be posted in the incident issue here: gitlab.com/gitlab-com/gl-infra/production/-/issues/15997

9
 
 

If you have lost both your normal 2FA method and your 10 backup codes, you can retrieve new ones if you can authenticate via SSH.

ssh [email protected] 2fa_recovery_codes

https://docs.gitlab.com/ee/user/profile/account/two_factor_authentication.html#generate-new-recovery-codes-using-ssh