Skip to content

Commit c463d2e

Browse files
committed
openssh-server: add git
1 parent ca2c0ce commit c463d2e

File tree

7 files changed

+13
-66
lines changed

7 files changed

+13
-66
lines changed

.travis.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,16 @@ language: shell
44

55
branches:
66
only:
7-
- <baseimagename>-<modname> #replace variables, omit brackets
7+
- openssh-server-git
88

99
services:
1010
- docker
1111

1212
env:
1313
global:
14-
- DOCKERHUB="linuxserver/mods" #don't modify
15-
- BASEIMAGE="baseimagename" #replace
16-
- MODNAME="modname" #replace
14+
- DOCKERHUB="linuxserver/mods"
15+
- BASEIMAGE="openssh-server"
16+
- MODNAME="git"
1717

1818
jobs:
1919
include:

Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
FROM scratch
22

3+
LABEL maintainer="aptalca"
4+
35
# copy local files
46
COPY root/ /

Dockerfile.complex

Lines changed: 0 additions & 21 deletions
This file was deleted.

README.md

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,7 @@
11
# Docker mod for openssh-server
22

3-
This mod adds rsync to openssh-server, to be installed/updated during container start.
3+
This mod adds git to openssh-server, to be installed/updated during container start.
44

5-
In openssh-server docker arguments, set an environment variable `DOCKER_MODS=linuxserver/mods:openssh-server-rsync`
5+
In openssh-server docker arguments, set an environment variable `DOCKER_MODS=linuxserver/mods:openssh-server-git`
66

7-
# Mod creation instructions
8-
9-
* Ask the team to create a new branch named `<baseimagename>-<modname>`. Baseimage should be the name of the image the mod will be applied to. The new branch will be based on the `template` branch.
10-
* Fork the repo, checkout the template branch.
11-
* Edit the `Dockerfile` for the mod. `Dockerfile.complex` is only an example and included for reference; it should be deleted when done.
12-
* Inspect the `root` folder contents. Edit, add and remove as necessary.
13-
* Edit this readme with pertinent info, delete thse instructions.
14-
* Finally edit the `travis.yml`. Customize the build branch,and the vars for `BASEIMAGE` and `MODNAME`
15-
* Submit PR against the branch created by the team
7+
If adding multiple mods, enter them in an array separated by `|`, such as `DOCKER_MODS=linuxserver/mods:openssh-server-git|linuxserver/mods:openssh-server-mod2`

root/etc/cont-init.d/99-git

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/usr/bin/with-contenv bash
2+
3+
echo "**** installing git ****"
4+
apk add --no-cache git

root/etc/cont-init.d/99-vpn-config

Lines changed: 0 additions & 27 deletions
This file was deleted.

root/etc/services.d/sshvpn/run

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)