forked from gbraad-devenv/ubi9
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathContainerfile-base
32 lines (25 loc) · 878 Bytes
/
Containerfile-base
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
FROM registry.access.redhat.com/ubi9/ubi-init:latest
RUN dnf install -y \
sudo git-core \
&& dnf clean all \
&& rm -rf /var/cache/yum
# Add user with the expected ID (automated setup does not work atm)
RUN useradd -l -u 1000 -G wheel -md /home/gbraad -s /usr/bin/zsh -p gbraad gbraad \
&& sed -i.bkp -e 's/%wheel\s\+ALL=(ALL\(:ALL\)\?)\s\+ALL/%wheel ALL=NOPASSWD:ALL/g' /etc/sudoers
# install tailscale
RUN dnf config-manager --add-repo https://pkgs.tailscale.com/stable/rhel/9/tailscale.repo \
&& dnf install -y \
tailscale \
&& dnf clean all \
&& rm -rf /var/cache/yum
COPY scripts/tailscaled /etc/init.d/tailscaled
RUN dnf install -y \
vim zsh \
&& dnf clean all \
&& rm -rf /var/cache/yum
# ssh server
RUN dnf install -y \
openssh-server \
&& dnf clean all \
&& rm -rf /var/cache/yum
USER gbraad