-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7f62010
commit 3864181
Showing
2 changed files
with
89 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,50 +1,44 @@ | ||
FROM alpine:latest | ||
FROM fedora:latest | ||
|
||
# Installation of multiple layers - each RUN is cached separately | ||
RUN apk add bash shadow | ||
RUN apk add python3 py3-pip | ||
RUN apk add tmux | ||
RUN apk add sl | ||
RUN apk add catimg | ||
RUN apk add git | ||
RUN apk add iputils # ping | ||
RUN apk add curl | ||
RUN apk add less | ||
RUN apk add unzip | ||
RUN apk add vim | ||
RUN apk add make | ||
RUN apk add tree | ||
RUN apk add rsync | ||
RUN apk add buildah | ||
RUN dnf install -y bash | ||
RUN dnf install -y python3 python3-pip | ||
RUN dnf install -y tmux | ||
RUN dnf install -y sl | ||
RUN dnf install -y catimg | ||
RUN dnf install -y git | ||
RUN dnf install -y iputils # ping | ||
RUN dnf install -y curl | ||
RUN dnf install -y less | ||
RUN dnf install -y unzip | ||
RUN dnf install -y vim-enhanced | ||
RUN dnf install -y make | ||
RUN dnf install -y tree | ||
RUN dnf install -y rsync | ||
RUN dnf install -y buildah | ||
|
||
# python packages | ||
RUN pip install --break-system-packages "pelican[markdown]" | ||
RUN pip3 install pelican | ||
RUN pip3 install markdown | ||
|
||
RUN apk add openssh | ||
|
||
RUN addgroup -S nonroot \ | ||
&& adduser -g "lisa" -S lisa | ||
# config für vi, rmux & paar shortcuts | ||
RUN git clone https://github.com/frie321984/shellshaper && \ | ||
mkdir -p ~/.config/tmux/tmux.conf && \ | ||
cp /shellshaper/.config/tmux/tmux.conf ~/.tmux.conf && \ | ||
cp /shellshaper/.vimrc ~/.vimrc && \ | ||
cp /shellshaper/.gitshortcuts.bashrc ~ && \ | ||
cat /shellshaper/bashrc-appendix >> ~/.bashrc | ||
|
||
# change the default shell for main user | ||
RUN chsh -s /bin/bash lisa | ||
RUN groupadd nonroot \ | ||
&& useradd -c 'default user' -g nonroot lisa | ||
|
||
# https://www.deutschlandfunkkultur.de/frauen-informatik-programmieren-geschichte-100.html | ||
USER lisa | ||
|
||
COPY .gitconfig /home/lisa/.gitconfig | ||
|
||
# Set the working directory | ||
WORKDIR /workspace | ||
|
||
# config für vi, rmux & paar shortcuts | ||
RUN git clone https://github.com/frie321984/shellshaper && \ | ||
mkdir -p ~/.config/tmux/tmux.conf && \ | ||
cp shellshaper/.config/tmux/tmux.conf ~/.tmux.conf && \ | ||
cp shellshaper/.vimrc ~/.vimrc && \ | ||
cp shellshaper/.gitshortcuts.bashrc ~ && \ | ||
cat shellshaper/bashrc-appendix >> ~/.bashrc && \ | ||
rm -rf shellshaper | ||
|
||
# Start bash shell | ||
CMD ["/bin/bash"] | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
FROM alpine:latest | ||
|
||
# Installation of multiple layers - each RUN is cached separately | ||
RUN apk add bash shadow | ||
RUN apk add python3 py3-pip | ||
RUN apk add tmux | ||
RUN apk add sl | ||
RUN apk add catimg | ||
RUN apk add git | ||
RUN apk add iputils # ping | ||
RUN apk add curl | ||
RUN apk add less | ||
RUN apk add unzip | ||
RUN apk add vim | ||
RUN apk add make | ||
RUN apk add tree | ||
RUN apk add rsync | ||
RUN apk add buildah | ||
|
||
# python packages | ||
RUN pip install --break-system-packages "pelican[markdown]" | ||
|
||
RUN apk add openssh | ||
|
||
ENV MUSL_LOCALE_DEPS cmake make musl-dev gcc gettext-dev libintl | ||
ENV MUSL_LOCPATH /usr/share/i18n/locales/musl | ||
RUN apk add font-noto-emoji | ||
RUN apk add --no-cache \ | ||
$MUSL_LOCALE_DEPS \ | ||
&& wget https://gitlab.com/rilian-la-te/musl-locales/-/archive/master/musl-locales-master.zip \ | ||
&& unzip musl-locales-master.zip \ | ||
&& cd musl-locales-master \ | ||
&& cmake -DLOCALE_PROFILE=OFF -D CMAKE_INSTALL_PREFIX:PATH=/usr . && make && make install \ | ||
&& cd .. && rm -r musl-locales-master | ||
|
||
RUN addgroup -S nonroot \ | ||
&& adduser -g "lisa" -S lisa | ||
|
||
# change the default shell for main user | ||
RUN chsh -s /bin/bash lisa | ||
|
||
# https://www.deutschlandfunkkultur.de/frauen-informatik-programmieren-geschichte-100.html | ||
USER lisa | ||
|
||
COPY gitconfig /home/lisa/.gitconfig | ||
|
||
# Set the working directory | ||
WORKDIR /workspace | ||
|
||
# config für vi, rmux & paar shortcuts | ||
RUN git clone https://github.com/frie321984/shellshaper && \ | ||
mkdir -p ~/.config/tmux/tmux.conf && \ | ||
cp shellshaper/.config/tmux/tmux.conf ~/.tmux.conf && \ | ||
cp shellshaper/.vimrc ~/.vimrc && \ | ||
cp shellshaper/.gitshortcuts.bashrc ~ && \ | ||
cat shellshaper/bashrc-appendix >> ~/.bashrc && \ | ||
rm -rf shellshaper | ||
|
||
# Start bash shell | ||
CMD ["/bin/bash"] | ||
|