2019-06-24 19:46:33 +00:00
|
|
|
.PHONY: default
|
2019-08-08 20:40:37 +00:00
|
|
|
default: server client
|
2019-06-24 19:46:33 +00:00
|
|
|
|
2019-06-25 02:13:04 +00:00
|
|
|
.PHONY: all
|
2019-08-08 20:40:37 +00:00
|
|
|
all: server client
|
2019-06-25 02:13:04 +00:00
|
|
|
|
|
|
|
.PHONY: stop
|
|
|
|
stop:
|
2019-08-08 20:40:37 +00:00
|
|
|
docker-compose -f ./docker-compose-server.yml stop
|
2019-06-25 02:13:04 +00:00
|
|
|
docker-compose -f ./docker-compose-client.yml stop
|
|
|
|
|
|
|
|
.PHONY: restart
|
|
|
|
restart:
|
2019-08-08 20:40:37 +00:00
|
|
|
docker-compose -f ./docker-compose-server.yml restart
|
2019-06-25 02:13:04 +00:00
|
|
|
docker-compose -f ./docker-compose-client.yml restart
|
|
|
|
|
|
|
|
.PHONY: down
|
|
|
|
down:
|
2019-08-08 21:35:17 +00:00
|
|
|
docker-compose -f ./docker-compose-client.yml down -v
|
|
|
|
docker-compose -f ./docker-compose-server.yml down -v
|
2019-06-25 02:13:04 +00:00
|
|
|
|
2019-08-08 20:40:37 +00:00
|
|
|
.PHONY: server
|
|
|
|
server: keys
|
|
|
|
docker-compose -f ./docker-compose-server.yml build
|
|
|
|
docker-compose -f ./docker-compose-server.yml up -d
|
2019-06-24 19:46:33 +00:00
|
|
|
|
|
|
|
.PHONY: client
|
|
|
|
client:
|
|
|
|
docker-compose -f ./docker-compose-client.yml build
|
|
|
|
docker-compose -f ./docker-compose-client.yml up -d
|
|
|
|
|
2019-08-08 20:40:37 +00:00
|
|
|
.PHONY: server-logs
|
|
|
|
server-logs:
|
|
|
|
docker-compose -f ./docker-compose-server.yml logs -f
|
2019-06-25 02:13:04 +00:00
|
|
|
|
|
|
|
.PHONY: client-logs
|
|
|
|
client-logs:
|
2019-06-24 19:46:33 +00:00
|
|
|
docker-compose -f ./docker-compose-client.yml logs -f
|
2019-08-08 20:40:37 +00:00
|
|
|
|
|
|
|
keys:
|
|
|
|
mkdir -p keys/etc/ssh
|
|
|
|
ssh-keygen -A -f keys/
|
|
|
|
|
|
|
|
keys/etc/ssh/ssh_host_dsa_key: keys
|
|
|
|
keys/etc/ssh/ssh_host_ecdsa_key: keys
|
|
|
|
keys/etc/ssh/ssh_host_ed25519_key: keys
|
|
|
|
keys/etc/ssh/ssh_host_rsa_key: keys
|
|
|
|
|
|
|
|
keys/known_hosts: keys
|