2022-10-01 18:58:39 +00:00
|
|
|
FROM python:alpine
|
|
|
|
WORKDIR /root
|
|
|
|
|
|
|
|
RUN : \
|
|
|
|
&& apk add --update --no-cache \
|
|
|
|
aws-cli \
|
|
|
|
binutils \
|
|
|
|
coreutils \
|
|
|
|
curl \
|
|
|
|
findutils \
|
|
|
|
fzf \
|
|
|
|
gawk \
|
|
|
|
git \
|
|
|
|
grep \
|
|
|
|
iproute2 \
|
|
|
|
ncurses \
|
|
|
|
ncurses-terminfo \
|
|
|
|
nodejs \
|
|
|
|
npm \
|
|
|
|
openssh \
|
|
|
|
pciutils \
|
|
|
|
postgresql \
|
2023-06-28 00:30:02 +00:00
|
|
|
py3-virtualenv \
|
|
|
|
py3-nodeenv \
|
2022-10-01 18:58:39 +00:00
|
|
|
redis \
|
|
|
|
ripgrep \
|
|
|
|
sed \
|
|
|
|
tmux \
|
|
|
|
usbutils \
|
|
|
|
util-linux \
|
|
|
|
vim \
|
|
|
|
wget \
|
|
|
|
zsh \
|
2022-11-17 18:57:50 +00:00
|
|
|
&& apk add --update --no-cache --repository=http://dl-cdn.alpinelinux.org/alpine/edge/community/ \
|
2022-10-01 18:58:39 +00:00
|
|
|
helm \
|
|
|
|
kubectl \
|
2023-06-28 00:30:02 +00:00
|
|
|
&& apk add --update --no-cache --repository=http://dl-cdn.alpinelinux.org/alpine/edge/testing/ \
|
2022-10-01 18:58:39 +00:00
|
|
|
&& mkdir -p /root/.wryn \
|
|
|
|
;
|
|
|
|
|
|
|
|
COPY . /root/.wryn
|
|
|
|
|
|
|
|
RUN : \
|
2023-06-28 00:30:02 +00:00
|
|
|
&& echo "#!/bin/zsh" > /bin/hostnamectl && echo "echo container" > /bin/hostnamectl && chmod +x /bin/hostnamectl \
|
|
|
|
&& echo "#!/bin/zsh" > /bin/scwrypts && echo '/root/.wryn/zsh/plugins/scwrypts/scwrypts $@' >> /bin/scwrypts && chmod +x /bin/scwrypts \
|
|
|
|
&& mkdir /root/.wryn/bin/container \
|
|
|
|
&& sed -i 's|/bin/ash|/bin/zsh|g' /etc/passwd \
|
2022-10-01 18:58:39 +00:00
|
|
|
&& /bin/zsh -c '/root/.wryn/setup/run --no-fluff --ci --force-root' \
|
2023-06-28 00:30:02 +00:00
|
|
|
&& echo 'source /root/.wryn/config/dotwryn.env.zsh' > /root/.config/wryn/env.zsh \
|
|
|
|
&& echo "WELCOME() {}" >> /root/.config/wryn/env.zsh \
|
|
|
|
&& echo "PS1_INDICATOR_SYMBOL=''" >> /root/.config/wryn/env.zsh \
|
|
|
|
&& echo "PS1_USER=\"root@\$(ip a | grep inet | grep -v '127\\.0\\.0\.1' | sed 's|/| |g' | awk '{print \$2;}')\"" >> /root/.config/wryn/env.zsh \
|
|
|
|
&& echo "source /root/.wryn/zsh/plugins/scwrypts/scwrypts.plugin.zsh" >> /root/.config/wryn/env.zsh \
|
2022-10-01 18:58:39 +00:00
|
|
|
&& rm /root/dotwryn-install.log \
|
2023-06-28 00:30:02 +00:00
|
|
|
&& scwrypts --name scwrypts/virtualenv/update-all --group scwrypts --type zsh \
|
2022-10-01 18:58:39 +00:00
|
|
|
;
|
|
|
|
|
2022-11-17 18:57:50 +00:00
|
|
|
ENTRYPOINT ["/root/.wryn/.docker/entrypoint"]
|