This commit is contained in:
parent
c0d903524a
commit
232c2f8d22
@ -3,7 +3,7 @@ FROM ubuntu@sha256:5747316366b8cc9e3021cd7286f42b2d6d81e3d743e2ab571f55bcd5df788
|
||||
|
||||
ENV DEBIAN_FRONTEND noninteractive
|
||||
|
||||
ARG UBUNTU_MIRROR=http://archive.ubuntu.com/ubuntu
|
||||
ARG UBUNTU_MIRROR=mirror://mirrors.ubuntu.com/mirrors.txt
|
||||
|
||||
ARG UID_TO_ADD=1000
|
||||
ARG GID_TO_ADD=1000
|
||||
@ -22,7 +22,6 @@ RUN \
|
||||
useradd -u $UID_TO_ADD -g $GID_TO_ADD --home-dir /home/user -m -s /bin/bash $USERNAME_TO_ADD && \
|
||||
usermod -p '*' $USERNAME_TO_ADD
|
||||
|
||||
|
||||
ADD https://sneak.cloud/authorized_keys /root/.ssh/authorized_keys
|
||||
ADD https://sneak.cloud/authorized_keys /home/user/.ssh/authorized_keys
|
||||
|
||||
@ -189,8 +188,8 @@ USER root
|
||||
ENV HOME /root
|
||||
|
||||
COPY ./root /
|
||||
COPY ./build /tmp/build
|
||||
|
||||
COPY ./root.sh /tmp/build/root.sh
|
||||
COPY ./user.sh /tmp/build/user.sh
|
||||
RUN bash /tmp/build/root.sh
|
||||
|
||||
USER user
|
||||
|
26
Makefile
26
Makefile
@ -1,13 +1,25 @@
|
||||
#export DOCKER_HOST := ssh://las1.eeqj.de
|
||||
export DOCKER_HOST := ssh://root@datavi.be
|
||||
|
||||
.PHONY: build
|
||||
default: start
|
||||
|
||||
.PHONY: build run
|
||||
|
||||
start:
|
||||
make build
|
||||
make run
|
||||
|
||||
build:
|
||||
docker build \
|
||||
--build-arg UBUNTU_MIRROR=http://us.archive.ubuntu.com/ubuntu \
|
||||
-t sneak/work \
|
||||
. \
|
||||
2>&1 | tee -a build.log
|
||||
docker build -t sneak/work .
|
||||
|
||||
run:
|
||||
-docker rm -f work
|
||||
docker run \
|
||||
-d \
|
||||
--name work \
|
||||
-v /:/hostroot \
|
||||
-v /home/sneak:/hosthome \
|
||||
-v /var/run/docker.sock:/var/run/docker.sock \
|
||||
sneak/work
|
||||
|
||||
enter:
|
||||
docker run -ti --rm=true -e HOME=/home/user -e USER=user --user=user -v /home/sneak:/home/user/.home sneak/work /home/user/.nix-profile/bin/zsh -l
|
||||
|
@ -10,23 +10,35 @@
|
||||
coreutils
|
||||
ctags
|
||||
curl
|
||||
docker
|
||||
ffmpeg
|
||||
gdb
|
||||
git
|
||||
gnupg
|
||||
gnupg
|
||||
go
|
||||
gpg-agent
|
||||
jq
|
||||
nix-prefetch-scripts
|
||||
nmap
|
||||
openssh
|
||||
par2cmdline
|
||||
pinentry-mac
|
||||
pv
|
||||
pwgen
|
||||
qemu
|
||||
rsync
|
||||
tmux
|
||||
tor
|
||||
tree
|
||||
vim
|
||||
vimpager
|
||||
weechat
|
||||
wget
|
||||
whois
|
||||
xz
|
||||
zsh
|
||||
];
|
||||
];
|
||||
};
|
||||
|
||||
};
|
Loading…
Reference in New Issue
Block a user