~dricottone/container-images

ref: bea5baf47cb3d3cbac3ddffe32e35d334650a101 container-images/srht-git-ssh/README.md -rw-r--r-- 581 bytes
bea5baf4Dominic Ricottone sr.ht 1 year, 5 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# srht-git-ssh


## Build and Deploy

```
make image
```


### Tags

 + `latest`

----

## Use

Deploy the SSH server for a sr.ht system's git service.

The container needs to have the git repositories mounted to `/var/lib/git`.

```
$conman run --detach --name srht-git-ssh --restart always \
    --mount type=bind,src=/host/path/to/git/repos,dst=/var/lib/git,z \
    registry.intra.dominic-ricottone.com/srht-git-ssh:latest
```

The server will listen on port 22.

After starting the container, log in and set the password for the git user.
This needs to be done interactively.