next #1
|
@ -3,7 +3,7 @@ FROM ubuntu@sha256:5747316366b8cc9e3021cd7286f42b2d6d81e3d743e2ab571f55bcd5df788
|
||||||
|
|
||||||
ENV DEBIAN_FRONTEND noninteractive
|
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 UID_TO_ADD=1000
|
||||||
ARG GID_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 && \
|
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
|
usermod -p '*' $USERNAME_TO_ADD
|
||||||
|
|
||||||
|
|
||||||
ADD https://sneak.cloud/authorized_keys /root/.ssh/authorized_keys
|
ADD https://sneak.cloud/authorized_keys /root/.ssh/authorized_keys
|
||||||
ADD https://sneak.cloud/authorized_keys /home/user/.ssh/authorized_keys
|
ADD https://sneak.cloud/authorized_keys /home/user/.ssh/authorized_keys
|
||||||
|
|
||||||
|
@ -189,8 +188,8 @@ USER root
|
||||||
ENV HOME /root
|
ENV HOME /root
|
||||||
|
|
||||||
COPY ./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
|
RUN bash /tmp/build/root.sh
|
||||||
|
|
||||||
USER user
|
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:
|
build:
|
||||||
docker build \
|
docker build -t sneak/work .
|
||||||
--build-arg UBUNTU_MIRROR=http://us.archive.ubuntu.com/ubuntu \
|
|
||||||
-t sneak/work \
|
run:
|
||||||
. \
|
-docker rm -f work
|
||||||
2>&1 | tee -a build.log
|
docker run \
|
||||||
|
-d \
|
||||||
|
--name work \
|
||||||
|
-v /:/hostroot \
|
||||||
|
-v /home/sneak:/hosthome \
|
||||||
|
-v /var/run/docker.sock:/var/run/docker.sock \
|
||||||
|
sneak/work
|
||||||
|
|
||||||
enter:
|
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
|
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
|
coreutils
|
||||||
ctags
|
ctags
|
||||||
curl
|
curl
|
||||||
|
docker
|
||||||
ffmpeg
|
ffmpeg
|
||||||
gdb
|
gdb
|
||||||
git
|
git
|
||||||
gnupg
|
gnupg
|
||||||
|
gnupg
|
||||||
go
|
go
|
||||||
|
gpg-agent
|
||||||
jq
|
jq
|
||||||
nix-prefetch-scripts
|
nix-prefetch-scripts
|
||||||
|
nmap
|
||||||
openssh
|
openssh
|
||||||
|
par2cmdline
|
||||||
|
pinentry-mac
|
||||||
|
pv
|
||||||
pwgen
|
pwgen
|
||||||
qemu
|
qemu
|
||||||
|
rsync
|
||||||
tmux
|
tmux
|
||||||
|
tor
|
||||||
tree
|
tree
|
||||||
vim
|
vim
|
||||||
|
vimpager
|
||||||
weechat
|
weechat
|
||||||
wget
|
wget
|
||||||
|
whois
|
||||||
|
xz
|
||||||
zsh
|
zsh
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
};
|
};
|
Loading…
Reference in New Issue