-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathContainerfile
More file actions
68 lines (52 loc) · 1.5 KB
/
Containerfile
File metadata and controls
68 lines (52 loc) · 1.5 KB
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
FROM docker.io/ubuntu:rolling
ENV DEBIAN_FRONTEND noninteractive
ENV USER test
RUN useradd test
RUN usermod -aG sudo test
RUN mkdir /home/test
RUN chown test:test -R /home/test
RUN apt-get update
RUN apt-get install -y \
bat \
build-essential \
jq \
ack-grep \
fzf \
curl \
git \
lsof \
bash \
stow \
xz-utils \
sudo \
zsh
# Install xmonad dependencies
RUN sudo apt-get install -y \
git \
haskell-stack \
libx11-dev libxft-dev libxinerama-dev libxrandr-dev libxss-dev
# Add don't require password for test in sudoers
RUN echo "test ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers
# Export ZDOTDIR for zsh
RUN echo 'export ZDOTDIR=$HOME/.config/zsh' >> /etc/zsh/zshenv
# Install latest starship
RUN curl -sS https://starship.rs/install.sh | sh -s -- --yes
# Install nvim stable
RUN curl -L https://github.com/neovim/neovim-releases/releases/download/v0.11.3/nvim-linux-x86_64.deb -o nvim.deb
RUN dpkg -i nvim.deb
RUN rm -fr nvim.deb
USER test
WORKDIR /home/test
RUN mkdir /home/test/.dotfiles
# Clone xdg-ninja
RUN git clone https://github.com/b3nj5m1n/xdg-ninja.git
COPY .bashrc /home/test/.dotfiles/.bashrc
COPY .config /home/test/.dotfiles/.config
COPY .xprofile /home/test/.dotfiles/.xprofile
COPY .stow-local-ignore /home/test/.dotfiles/.stow-local-ignore
COPY install /home/test/.dotfiles/install
RUN sudo chown -R test:test /home/test/.dotfiles
RUN cd /home/test/.dotfiles && ./install -s
# Remove this nonsense coming from /etc/bash.bashrc
RUN rm ~/.sudo_as_admin_successful
CMD ["bash"]