useless docker folder
This commit is contained in:
parent
12856fc0a5
commit
1d054cc63c
5 changed files with 0 additions and 148 deletions
|
@ -1,68 +0,0 @@
|
|||
# syntax = docker/dockerfile:1.3
|
||||
FROM debian:bookworm-20220822-slim
|
||||
|
||||
ARG UID=1000
|
||||
ARG GID=1000
|
||||
ARG USER=daylin
|
||||
|
||||
RUN groupadd -g "${GID}" "${USER}" \
|
||||
&& useradd -rm -s /usr/bin/zsh -u "${UID}" -g "${GID}" "${USER}"
|
||||
|
||||
ENV TERM='xterm-256color'
|
||||
|
||||
COPY ./docker/install-packages.sh /usr/bin/install-packages
|
||||
|
||||
RUN install-packages \
|
||||
ca-certificates \
|
||||
locales \
|
||||
gcc \
|
||||
tmux \
|
||||
curl \
|
||||
gawk \
|
||||
zsh \
|
||||
vim \
|
||||
git \
|
||||
python-is-python3 \
|
||||
python3
|
||||
|
||||
RUN sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && \
|
||||
locale-gen
|
||||
|
||||
ENV LANG='en_US.UTF-8' LANGUAGE='en_US:en' LC_ALL='en_US.UTF-8'
|
||||
|
||||
USER "${USER}"
|
||||
WORKDIR /home/"${USER}"
|
||||
|
||||
RUN sh -c "$(curl -fsLS https://chezmoi.io/get)"
|
||||
|
||||
COPY --chown="${USER}:${USER}" . .dotfiles
|
||||
|
||||
# let chezmoi add the plugins
|
||||
RUN git config --global --add safe.directory '*'
|
||||
|
||||
RUN ./bin/chezmoi init \
|
||||
--apply \
|
||||
-S ~/.dotfiles \
|
||||
--promptString 'git email=daylinmorgan@gmail.com,git name=Daylin Morgan' \
|
||||
--promptBool 'use gui configs=false'
|
||||
|
||||
ENV DOTFILES_DIR="$HOME/.dotfiles" \
|
||||
PATH="$PATH:$HOME/bin:$HOME/.dotfiles/bin"
|
||||
|
||||
# switch back to root for the secrets
|
||||
USER root
|
||||
RUN --mount=type=secret,id=GITHUB_TOKEN \
|
||||
GITHUB_TOKEN=$(cat /run/secrets/GITHUB_TOKEN) \
|
||||
/home/daylin/.dotfiles/docker/install-tools.sh
|
||||
USER "${USER}"
|
||||
|
||||
ENV DOTFILES_DIR="/home/daylin/.dotfiles" \
|
||||
PATH="$PATH:/home/daylin/bin:/home/daylin/.dotfiles/bin"
|
||||
|
||||
# install general tools used by neovim
|
||||
RUN ~/.dotfiles/docker/install-dev-envs.sh
|
||||
|
||||
# install astronvim
|
||||
RUN ~/.config/astronvim/install.sh
|
||||
|
||||
CMD ["zsh"]
|
|
@ -1,20 +0,0 @@
|
|||
#!/usr/bin/env bash
|
||||
export PATH="$HOME/bin:$PATH"
|
||||
|
||||
is-executable() {
|
||||
[ -x "$(command -v "$1")" ]
|
||||
}
|
||||
|
||||
install-cargo-rustup() {
|
||||
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --no-modify-path
|
||||
}
|
||||
|
||||
install-npm() {
|
||||
fnm install 'v18.5.0'
|
||||
}
|
||||
|
||||
install-cargo-rustup
|
||||
|
||||
if is-executable fnm; then
|
||||
install-npm
|
||||
fi
|
|
@ -1,24 +0,0 @@
|
|||
#!/bin/sh
|
||||
set -e
|
||||
set -u
|
||||
export DEBIAN_FRONTEND=noninteractive
|
||||
n=0
|
||||
max=2
|
||||
until [ $n -gt $max ]; do
|
||||
set +e
|
||||
(
|
||||
apt-get update -qq &&
|
||||
apt-get install -y --no-install-recommends "$@"
|
||||
)
|
||||
CODE=$?
|
||||
set -e
|
||||
if [ $CODE -eq 0 ]; then
|
||||
break
|
||||
fi
|
||||
if [ $n -eq $max ]; then
|
||||
exit $CODE
|
||||
fi
|
||||
echo "apt failed, retrying"
|
||||
n=$((n + 1))
|
||||
done
|
||||
rm -r /var/lib/apt/lists /var/cache/apt/archives
|
|
@ -1,28 +0,0 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
export PATH="$PATH:/home/daylin/bin:/home/daylin/.dotfiles/bin"
|
||||
export EGET_BIN=/home/$USER/bin
|
||||
export EGET_CONFIG=/home/$USER/.config/eget/eget.toml
|
||||
export DOTFILES_DIR=/home/$USER/.dotfiles
|
||||
|
||||
echo $HOME
|
||||
# until next version release
|
||||
cp "$EGET_CONFIG" "/root/.eget.toml"
|
||||
|
||||
curl https://zyedidia.github.io/eget.sh | sh && mv ./eget ./bin/eget
|
||||
eget Tomwright/dasel --asset dasel_linux_amd64
|
||||
|
||||
aweget --verbose \
|
||||
$(awk '{printf "-i %s ", $0}' "$DOTFILES_DIR/docker/tools.txt")
|
||||
|
||||
# eget rossmacarthur/sheldon
|
||||
eget tree-sitter/tree-sitter --to "$EGET_BIN/tree-sitter"
|
||||
|
||||
# installing nvim
|
||||
eget neovim/neovim --to ./nvim.appimage --pre-release
|
||||
./nvim.appimage --appimage-extract >/dev/null 2>&1
|
||||
./squashfs-root/AppRun --version
|
||||
|
||||
mv squashfs-root /
|
||||
ln -s /squashfs-root/AppRun /usr/bin/nvim
|
||||
rm nvim.appimage
|
|
@ -1,8 +0,0 @@
|
|||
atuin
|
||||
fnm
|
||||
fzf
|
||||
lazygit
|
||||
lsd
|
||||
ripgrep
|
||||
starship
|
||||
sheldon
|
Loading…
Reference in a new issue