Add shutdown/reboot utility

master
Siroco 11 months ago
parent 6b6fdef318
commit 01008a59ab
Signed by: siroco
GPG Key ID: 1324098302A514B0
  1. 4
      Dockerfile
  2. 4
      docker-compose.yml
  3. 6
      entrypoint.sh

@ -4,7 +4,9 @@ RUN apt update -y && apt upgrade -y
RUN apt install -y openssh-server rsyslog git ca-certificates
COPY entrypoint.sh entrypoint.sh
RUN chmod +x entrypoint.sh
COPY bin/shutdown /sbin/shutdown
COPY bin/shutdown /sbin/reboot
RUN chmod +x entrypoint.sh /sbin/reboot /sbin/shutdown
VOLUME ["/home"]

@ -1,4 +1,4 @@
version: "3.3"
version: "3.9"
services:
debian:
build: .
@ -10,6 +10,6 @@ services:
- ./data:/home
stdin_open: true
tty: true
#init: true
init: true
environment:
- LANG=C.UTF-8

@ -1,7 +1,5 @@
#!/bin/bash
trap "exit" SIGINT SIGTERM
touch /var/log/auth.log
touch /var/log/syslog
@ -18,6 +16,7 @@ do
done < <(cat /home/packages)
# Root Passw
echo ---
echo
PASS=`openssl rand -base64 24`
echo root:$PASS | chpasswd
@ -35,5 +34,4 @@ do
service $line start
done < <(cat /home/services)
tail -f /var/log/auth.log /var/log/syslog
tail -f /var/log/auth.log

Loading…
Cancel
Save