Skip to content

Instantly share code, notes, and snippets.

@tallclair
tallclair / git-repo-demo.yaml
Created March 9, 2018 19:54
More secure GitRepo volumes
# Example of using an InitContainer in place of a GitRepo volume.
# Unilke GitRepo volumes, this approach runs the git command in a container,
# with the associated hardening.
apiVersion: v1
kind: Pod
metadata:
name: git-repo-demo
annotations:
seccomp.security.alpha.kubernetes.io/pod: 'docker/default'
spec:
#cloud-config
hostname: coreos0
users:
- name: core
passwd: $6$rounds=4096$euhgcZSU7A0$pvKQozbZ/9PtrilpQhSKyyGMf7BZzjW7JT7nBWKSSphWUFd4bXX7ck89UX6K4S/4gSq.Z0lPN8Uj3DQAnDdEN/
groups:
- sudo
- docker
@walkerjeffd
walkerjeffd / Synology-Diskstation-Git.md
Last active August 15, 2024 03:31
Instructions for setting up git server on Synology Diskstation

Configure Synology NAS as Git Server

Instructions for setting up a git server on a Synology NAS with Diskstation. Specifically, I am using a DS414 with DSM 5.0.

Set Up User and Folder

  • Create user gituser via Diskstation interface (with File Station and WebDAV privilages)
  • Add new shared folder called git (located at /volume1/git) with read/write access for gituser and admin. This folder will hold all the repos.
  • Install Git Server package via Diskstation