mirror of
https://github.com/bytedream/docker4ssh.git
synced 2025-06-27 18:00:31 +02:00
Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
f3e032cf54 | |||
9f29b1b8dd |
6
Makefile
6
Makefile
@ -17,15 +17,15 @@ build-container:
|
||||
fi
|
||||
cp -rf $(_BUILDDIR)/x86_64-unknown-linux-musl/$(shell if $(DEBUG); then echo debug; else echo release; fi)/configure $(_BUILDDIR)
|
||||
|
||||
build-extra: SSHPASS:=$(shell LC_ALL=C tr -dc 'A-Za-z0-9!#$%&()*,-./:<=>?@[\]^_{}~' < /dev/urandom | head -c 18 ; echo)
|
||||
build-extra: SSHPASS:=$(shell LC_ALL=C tr -dc 'A-Za-z0-9!#$%&()*,-.:<=>?@[]^_{}~' < /dev/urandom | head -c 18 ; echo)
|
||||
build-extra:
|
||||
if [ "$(_BUILDDIR)" != "$(shell realpath .)/" ]; then\
|
||||
@if [ "$(_BUILDDIR)" != "$(shell realpath .)/" ]; then\
|
||||
cp -rf LICENSE $(_BUILDDIR)/LICENSE;\
|
||||
cp -rf man/ $(_BUILDDIR);\
|
||||
fi
|
||||
yes | ssh-keygen -t ed25519 -f $(_BUILDDIR)/docker4ssh.key -N "$(SSHPASS)" -b 4096 > /dev/null
|
||||
cp -rf extra/docker4ssh.conf $(_BUILDDIR)
|
||||
sed -i 's|Passphrase = ""|Passphrase = "$(SSHPASS)"|' $(_BUILDDIR)/docker4ssh.conf
|
||||
sed -i "s|Passphrase = \"\"|Passphrase = \"$(SSHPASS)\"|" $(_BUILDDIR)/docker4ssh.conf
|
||||
cat extra/database.sql | sqlite3 $(_BUILDDIR)/docker4ssh.sqlite3
|
||||
mkdir -p $(_BUILDDIR)/profile/ && cp -f extra/profile.conf $(_BUILDDIR)/profile/
|
||||
|
||||
|
15
README.md
15
README.md
@ -47,17 +47,11 @@
|
||||
|
||||
For every install method your OS **must** be linux and docker has to be installed.
|
||||
|
||||
- Download from the latest release (currently only x64 architecture supported)
|
||||
- Download `docker4ssh-<version>.tar.gz` from the [latest release](https://github.com/ByteDream/docker4ssh/releases/latest)
|
||||
- Install it
|
||||
- Into your root directory (recommended)
|
||||
- From the latest release (currently only x64 architecture supported)
|
||||
|
||||
Replace the `RELEASE` value in the following oneliner with the latest release [version](https://github.com/ByteDream/docker4ssh/releases/latest).
|
||||
```shell
|
||||
$ sudo tar -xvzf docker4ssh-<version>.tar.gz -C /
|
||||
```
|
||||
- To the same directory
|
||||
```shell
|
||||
$ sudo tar -xvzf docker4ssh-<version>.tar.gz
|
||||
```
|
||||
$ RELEASE=<latest version> curl -L https://github.com/ByteDream/docker4ssh/releases/download/v$RELEASE/docker4ssh-$RELEASE.tar.gz | tar -xvzf - -C /
|
||||
- Building from source
|
||||
|
||||
Before start installing, make sure you have to following things ready:
|
||||
@ -69,6 +63,7 @@ For every install method your OS **must** be linux and docker has to be installe
|
||||
```shell
|
||||
$ git clone https://github.com/ByteDream/docker4ssh
|
||||
$ cd docker4ssh
|
||||
$ make build
|
||||
$ make install
|
||||
```
|
||||
|
||||
|
Reference in New Issue
Block a user