GitLab Notes

1. Install

  1. Create the Podman compose file

    Click to expand for compose file
    podman compose file
    services:
    
      # https://www.howtogeek.com/devops/how-to-deploy-a-gitlab-server-with-docker/
      # For initial log in, extract root password via:
      #   podman exec -it GitLab-Server grep 'Password:' /etc/gitlab/initial_root_password
      gitlab:
        container_name: GitLab-Server
        image: docker.io/gitlab/gitlab-ce:latest
        hostname: sourcecontrol.xackleystudio.com
        privileged: true
        ports:
          - '2224:22'
          - '8929:80'
          - '8447:443'
        environment:
          - TZ=America/New_York
          #- GITLAB_OMNIBUS_CONFIG="external_url 'http://sourcecontrol.xackleystudio.com'"
          - PUID=1000
          - PGID=1000
        volumes:
          - ./GitLab-data/config:/etc/gitlab:Z
          - ./GitLab-data/logs:/var/log/gitlab:Z
          - ./GitLab-data/data:/var/opt/gitlab:Z
        shm_size: '256m'
        restart: unless-stopped
        #restart: 'no'
        #entrypoint: ["echo", "Service disabled"]
    
    
      gitlab-ai-gateway:
        container_name: GitLab-AI-Gateway-Server
        image: registry.gitlab.com/gitlab-org/modelops/applied-ml/code-suggestions/ai-assist/model-gateway:latest
        privileged: true
        ports:
          - 5052:5052
        environment:
          - AIGW_GITLAB_URL=sourcecontrol.xackleystudio.com
          - AIGW_GITLAB_API_URL=https://sourcecontrol.xackleystudio.com/api/v4/
        restart: unless-stopped

2. Start Pod

  1. Launch like any other pod

    podman-compose up -d
    This take a few minutes.

3. Initial GitLab Setup

3.1. Open Ports

  1. Open the following Ports

    1. 2224

    2. 8929

    3. 8447

3.2. Login as Administrator

  1. Get the root password

    Extract from the log file
    podman exec -it GitLab-Server grep 'Password:' /etc/gitlab/initial_root_password
    Example
    podman exec -it GitLab-Server grep 'Password:' /etc/gitlab/initial_root_password
    Password: 0Q/EEgkjMAHrbpHcT6ZsqPj9N7IsIuZ/Q+dX45dFUas=
  2. Launch the site in a web browser

    http://<ip address>:8929
  3. Log in as an administrator with user=root and the previously retrieved password.

    GitLab Initial root login

3.3. Appearance

  1. Click on the Admin button in the upper right-hand corner.

  2. Select the Settings  Appearance

  3. Set the Site name

  4. On the bottom of the window, click the Update appearance settings

3.4. Create Users

  1. In the left pane, click on the Overview  Users menu item.

  2. Click the New user button.

  3. Fill in the user details and click the Create user button.

3.5. Additional Setup

  • Refer here for additional setup.

4. Maintenance

4.1. Users

4.1.1. Approve Users

  1. Click on the Admin button in the upper right-hand corner.

  2. Select Overview  Users

  3. Find the user’s row and select the vertical ellipsis and select Approve.