{"id":18192027,"url":"https://github.com/codekow/container-gitlab","last_synced_at":"2025-04-07T16:28:40.959Z","repository":{"id":131119509,"uuid":"408909976","full_name":"codekow/container-gitlab","owner":"codekow","description":null,"archived":false,"fork":false,"pushed_at":"2021-09-22T02:03:14.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-13T18:49:39.447Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/codekow.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-09-21T17:18:27.000Z","updated_at":"2021-09-22T02:04:29.000Z","dependencies_parsed_at":"2024-01-17T19:18:30.627Z","dependency_job_id":null,"html_url":"https://github.com/codekow/container-gitlab","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codekow%2Fcontainer-gitlab","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codekow%2Fcontainer-gitlab/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codekow%2Fcontainer-gitlab/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codekow%2Fcontainer-gitlab/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codekow","download_url":"https://codeload.github.com/codekow/container-gitlab/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247687261,"owners_count":20979426,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-03T06:42:03.050Z","updated_at":"2025-04-07T16:28:40.939Z","avatar_url":"https://github.com/codekow.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Run GitLab with podman\n\n# Quickstart\n```\n# Install podman\ndnf -y install podman\n\n# Auto Updates (daily)\nsystemctl enable --now podman-auto-update.timer\n\n# One shot\n. hacks/gitlab-setup.sh\n```\n\nManual Steps\n```\n# Setup Folders\nGITLAB_ROOT=/srv/containers\nsudo mkdir -p ${GITLAB_ROOT}/gitlab/{data,logs,config}\n\n# Copy service file\nsudo cp container-gitlab.service /etc/systemd/system/\n\n# Reload systemd\nsudo systemctl daemon-reload\n\n# Enable and start the service\nsudo systemctl enable --now container-gitlab\n\n# Another quick check\nsudo podman container ls\nsudo systemctl status container-gitlab\n```\n\n# GitLab Notes\n\nDisable service on startup\n```\nsudo systemctl disable gitlab-runsvdir.service\n```\n\nBackup gitlab\n```\n# Run backups with shell\npodman exec -it podman-gitlab /bin/bash\n\ngitlab-ctl backup-etc\ngitlab-backup create\n```\n\n\nRestore gitlab\n```\npodman exec -it podman-gitlab /bin/bash\n\n# Stop the processes that are connected to the database\ngitlab-ctl stop puma\ngitlab-ctl stop sidekiq\n\n# Verify that the processes are all down before continuing\ngitlab-ctl status\n\n# Run the restore\ngitlab-backup restore BACKUP=11493107454_2018_04_25_10.6.4-ce\n\n# Restart the GitLab container\npodman restart podman-gitlab\n\n# Check GitLab\npodman exec -it podman-gitlab gitlab-rake gitlab:check SANITIZE=true\n```\n\n## Podman \n\nAdd registry mirror\n\n```\ncat \u003c\u003c TOML \u003e /etc/containers/registries.conf.d/001-tigerlab.conf\n[[registry]]\nlocation = \"git.tigerlab.io:6666\"\n\n[[registry]]\nlocation = \"docker.io\"\n[[registry.mirror]]\nlocation = \"git.tigerlab.io:6666\"\nTOML\n```\n\nFix SELINUX context\n```\nsemanage fcontext -l | grep ^/srv\n\nchcon -t container_file_t -R /srv/containers\nrestorecon -RvF /srv/containers\n```\n\nSystemd\n```\n# Generate systemd service file\npodman generate systemd --new --name --files gitlab\n\n# Copy service file\nsudo cp container-gitlab.service /etc/systemd/system/\n\n# Reload systemd\nsudo systemctl daemon-reload\n\n# Enable and start the service\nsudo systemctl enable --now container-gitlab\n\n# Another quick check\nsudo podman container ls\nsudo systemctl status container-gitlab\n```\n\nUpdates\n```\n# add the label\n# --label \"io.containers.autoupdate=registry\"\n\n# Manual Updates\npodman auto-update\n\n# Auto Updates (daily)\nsystemctl enable --now podman-auto-update.timer \n```\n\n# Links\n- https://www.redhat.com/sysadmin/manage-container-registries\n- https://docs.gitlab.com/ee/raketasks/backup_restore.html\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodekow%2Fcontainer-gitlab","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodekow%2Fcontainer-gitlab","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodekow%2Fcontainer-gitlab/lists"}