Skip to content

Commit

Permalink
test10
Browse files Browse the repository at this point in the history
  • Loading branch information
runalsh committed Mar 3, 2024
1 parent 243521b commit 7cc424c
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 14 deletions.
22 changes: 11 additions & 11 deletions Dockerfile.docker.debian
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,18 @@ FROM debian:$IMAGE

INCLUDE+ Dockerfile.base

# SHELL ["/bin/bash", "-o", "pipefail", "-c"]
# RUN curl -fsSL https://get.docker.com -o get-docker.sh && \
# sudo sh ./get-docker.sh || true
# RUN apt-get clean && \
# rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
RUN curl -fsSL https://get.docker.com -o get-docker.sh && \
sudo sh ./get-docker.sh || true
RUN apt-get clean && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

RUN apt-get update && apt-get install -y apt-transport-https ca-certificates curl gnupg
RUN install -m 0755 -d /etc/apt/keyrings && curl -fsSL "https://download.docker.com/linux/debian/gpg" | gpg --dearmor --yes -o /etc/apt/keyrings/docker.gpg
RUN chmod a+r /etc/apt/keyrings/docker.gpg
RUN echo "deb [arch=amd64 signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/debian bookworm stable" > /etc/apt/sources.list.d/docker.list
RUN apt-get update
RUN apt-get install -y docker-ce docker-ce-cli containerd.io docker-compose-plugin docker-ce-rootless-extras docker-buildx-plugin
# RUN apt-get update && apt-get install -y apt-transport-https ca-certificates curl gnupg
# RUN install -m 0755 -d /etc/apt/keyrings && curl -fsSL "https://download.docker.com/linux/debian/gpg" | gpg --dearmor --yes -o /etc/apt/keyrings/docker.gpg
# RUN chmod a+r /etc/apt/keyrings/docker.gpg
# RUN echo "deb [arch=amd64 signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/debian bookworm stable" > /etc/apt/sources.list.d/docker.list
# RUN apt-get update
# RUN apt-get install -y docker-ce docker-ce-cli containerd.io docker-compose-plugin docker-ce-rootless-extras docker-buildx-plugin


CMD ["bash"] .
7 changes: 4 additions & 3 deletions init.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
echo "net.ipv4.ip_forward=1" >> /etc/sysctl.conf
echo "net.ipv6.conf.all.forwarding=1" >> /etc/sysctl.conf
sysctl -p
# sysctl should be AFTER DOCKER INSTALLATION else it will fail
# echo "net.ipv4.ip_forward=1" >> /etc/sysctl.conf
# echo "net.ipv6.conf.all.forwarding=1" >> /etc/sysctl.conf
# sysctl -p
mkdir -p /root/.ssh/
echo "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIByxq8vrVcDlFlXlNUizeE/T2leMF0k6JhaXrdeUtZZj ed25519-key-20240302" >> /root/.ssh/authorized_keys
#sed -ie '0,/#PermitRootLogin prohibit-password/s/#PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config

0 comments on commit 7cc424c

Please sign in to comment.