Skip to content

Latest commit

 

History

History
60 lines (43 loc) · 1.13 KB

gitlab.md

File metadata and controls

60 lines (43 loc) · 1.13 KB

GitLab (Omnibus)

Edit Configuration

vi /etc/gitlab/gitlab.rb
gitlab-ctl reconfigure

GitLab Backup

Create new backup:

gitlab-backup create

Delete backup:

cd /var/opt/gitlab/backups
rm <backup-name>.tar

Projects Failed Their Last Repository Check

E-Mail message to GitLab administrator:

3 projects failed their last repository check.
See the affected projects in the GitLab admin panel

Fix:

docker exec -it <gitlab-container> bash
cd /var/opt/gitlab/git-data/repositories/

# see gitlab admin ui for path: https://example.com/admin/projects/
cd @hashed/c8/37/<uid>.git

git gc
chown git: . -R

GitLab CI

  • Build and push a image with Kaniko
  • Kaniko is a tool to build container images from a Dockerfile, inside a container or Kubernetes cluster
build:
  image:
    name: gcr.io/kaniko-project/executor:debug
    entrypoint: [""]
  script:
    - /kaniko/executor
      --context "${CI_PROJECT_DIR}"
      --dockerfile "${CI_PROJECT_DIR}/Dockerfile"
      --destination "${CI_REGISTRY_IMAGE}:${CI_COMMIT_TAG}"