this repo has no description

Compare changes

Choose any two refs to compare.

Changed files
+10 -2
rootfs
etc
ssh
+1 -1
docker-compose.yml
···
build: .
environment:
KNOT_SERVER_HOSTNAME: ${KNOT_SERVER_HOSTNAME}
-
KNOT_SERVER_SECRET: ${KNOT_SERVER_SECRET}
+
KNOT_SERVER_OWNER: ${KNOT_SERVER_OWNER}
KNOT_SERVER_DB_PATH: /app/knotserver.db
KNOT_REPO_SCAN_PATH: /home/git/repositories
KNOT_SERVER_INTERNAL_LISTEN_ADDR: localhost:5444
+3
rootfs/etc/ssh/sshd_config.d/authorized_keys_command.conf
···
+
Match User git
+
AuthorizedKeysCommand /usr/bin/knot keys -o authorized-keys -git-dir /home/git/repositories
+
AuthorizedKeysCommandUser nobody
+6 -1
Dockerfile
···
label org.opencontainers.image.vendor='tangled.sh'
label org.opencontainers.image.licenses='MIT'
+
arg UID=1000
+
arg GID=1000
+
copy rootfs .
run chmod 755 /etc
run chmod -R 755 /etc/s6-overlay
run apk add shadow s6-overlay execline openssl openssh git curl bash
-
run useradd -d /home/git git && openssl rand -hex 16 | passwd --stdin git
+
run groupadd -g $GID -f git
+
run useradd -u $UID -g $GID -d /home/git git
+
run openssl rand -hex 16 | passwd --stdin git
run mkdir -p /home/git/repositories && chown -R git:git /home/git
copy --from=builder /usr/bin/knot /usr/bin
run mkdir /app && chown -R git:git /app