Merge branch 'sneak/next' of datavibe/shell into master
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Jeffrey Paul 2020-03-01 16:35:45 +00:00 committed by Gitea
commit 37b7cd03c3
5 changed files with 32 additions and 2 deletions

View File

@ -4,4 +4,16 @@ FROM ubuntu@sha256:d050ed7278c16ff627e4a70d7d353f1a2ec74d8a0b66e5a865356d92f5f6d
ADD ./sources.list /etc/apt/sources.list
ADD https://sneak.cloud/authorized_keys /root/.ssh/authorized_keys
RUN apt update && apt -y upgrade && apt -y install runit build-essential
COPY ./root /tmp/rootoverlay
# we only install essential system packages here
ARG SYSTEM_PACKAGES="runit build-essential rsync ca-certificates"
RUN \
apt update && \
apt -y upgrade && \
apt -y install $SYSTEM_PACKAGES && \
rsync -avP /tmp/rootoverlay/ / && \
rm -rf /tmp/rootoverlay
EXPOSE 22

View File

View File

View File

@ -0,0 +1,4 @@
#!/bin/bash
set -e
exec /usr/sbin/sshd -D

16
run.sh
View File

@ -1,6 +1,20 @@
#!/bin/bash
# nonessential packages
PACKAGES="
weechat
irssi
python3
python3-pip
"
for PKG in $PACKAGES ; do
apt install -y $PKG
done
pip3 install --upgrade youtube_dl
cp /etc/passwd /etc/passwd.dist
cp /etc/shadow /etc/shadow.dist
mkdir -p /etc/datavibe/host
chmod +x /etc/service/*/run