File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11FROM ghcr.io/rsl-org/fedora_p2996:latest
22
3+ RUN echo '%wheel ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
4+
35RUN dnf install -y zsh
46RUN sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" "" --unattended
57RUN sed -i 's/robbyrussell/eastwood/g' /root/.zshrc
68RUN chsh -s /bin/zsh
79
810RUN git clone https://github.com/rsl-org/conan
9- RUN conan remote add rsl ./conan
11+ RUN conan remote add rsl ./conan
12+
13+ ADD setup_user.sh /setup_user.sh
14+ RUN chmod a+x /setup_user.sh
Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+ set -e
3+
4+ echo " Creating user: $LOCAL_USER with UID: $LOCAL_UID and GID: $LOCAL_GID "
5+
6+ if ! getent group " $LOCAL_GID " > /dev/null 2>&1 ; then
7+ groupadd -g " $LOCAL_GID " " $LOCAL_USER "
8+ fi
9+
10+ if ! id -u " $LOCAL_USER " > /dev/null 2>&1 ; then
11+ useradd -u " $LOCAL_UID " -g " $LOCAL_GID " -G wheel -d $LOCAL_HOME -s /bin/zsh " $LOCAL_USER "
12+ fi
13+
14+ if ! grep -q ' ^%wheel ALL=(ALL) NOPASSWD:ALL' /etc/sudoers; then
15+ echo ' %wheel ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
16+ fi
17+
18+ chown -R $LOCAL_USER :$LOCAL_GID $LOCAL_HOME
19+ sudo -u $LOCAL_USER ZSH=$LOCAL_HOME /.oh-my-zsh sh -c " $( curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh) " " " --unattended
20+ sed -i ' s/robbyrussell/eastwood/g' $LOCAL_HOME /.zshrc
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+ docker build --tag ghcr.io/rsl-org/fedora_devcontainer .
3+ docker push ghcr.io/rsl-org/fedora_devcontainer
You can’t perform that action at this time.
0 commit comments