-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathos_toolbox.Containerfile
33 lines (27 loc) · 1.54 KB
/
os_toolbox.Containerfile
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
33
ARG BASE_REPO=registry.fedoraproject.org/fedora-toolbox
ARG BASE_TAG=testing
FROM ${BASE_REPO}:${BASE_TAG}
ARG PACKAGES_INSTALL_ADDITIONAL=""
COPY *.list /tmp/
RUN set -x; arch=$(uname -m | sed 's/x86_64/amd64/;s/aarch64/arm64/'); cat /etc/os-release \
&& dnf install -y \
https://mirrors.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm \
https://mirrors.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm \
&& dnf install -y $(</tmp/packages.list) ${PACKAGES_INSTALL_ADDITIONAL} \
&& dnf clean all && rm -rf /tmp/*.list
RUN dnf -y groupinstall "Development Tools" && dnf clean all
COPY overlay.d/01-common/ /
RUN HOME=/tmp RUNZSH=no CHSH=no ZSH=/usr/lib/ohmyzsh \
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" \
&& set -x \
&& wget -qO /usr/lib/ohmyzsh/custom/kube-ps1.plugin.zsh \
https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/plugins/kube-ps1/kube-ps1.plugin.zsh \
&& mv /usr/share/zsh/*.zsh /usr/lib/ohmyzsh/custom/ \
&& git clone https://github.com/zsh-users/zsh-history-substring-search \
/usr/lib/ohmyzsh/custom/plugins/zsh-history-subscring-search \
&& git clone https://github.com/zsh-users/zsh-syntax-highlighting.git \
/usr/lib/ohmyzsh/custom/plugins/zsh-syntax-highlighting \
&& chsh -s /bin/zsh root \
&& echo 'PATH=~/bin:~/.bin:~/.opt/bin:$PATH' >> /etc/zshenv \
&& sed -i 's|^SHELL=.*|SHELL=/usr/bin/zsh|' /etc/default/useradd
LABEL quay.expires-after=30d