Merge branch 'sneak/next' of datavibe/shell into master
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
commit
37b7cd03c3
14
Dockerfile
14
Dockerfile
|
@ -4,4 +4,16 @@ FROM ubuntu@sha256:d050ed7278c16ff627e4a70d7d353f1a2ec74d8a0b66e5a865356d92f5f6d
|
||||||
ADD ./sources.list /etc/apt/sources.list
|
ADD ./sources.list /etc/apt/sources.list
|
||||||
ADD https://sneak.cloud/authorized_keys /root/.ssh/authorized_keys
|
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
|
||||||
|
|
|
@ -0,0 +1,4 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -e
|
||||||
|
exec /usr/sbin/sshd -D
|
16
run.sh
16
run.sh
|
@ -1,6 +1,20 @@
|
||||||
#!/bin/bash
|
#!/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/passwd /etc/passwd.dist
|
||||||
cp /etc/shadow /etc/shadow.dist
|
cp /etc/shadow /etc/shadow.dist
|
||||||
|
|
||||||
mkdir -p /etc/datavibe/host
|
chmod +x /etc/service/*/run
|
||||||
|
|
Loading…
Reference in New Issue