Skip to content

Commit 0779987

Browse files
committed
Try to fix install in docker, cleanup
1 parent 5a56982 commit 0779987

5 files changed

Lines changed: 16 additions & 46 deletions

File tree

.cfg/Dockerfile

Lines changed: 10 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -3,39 +3,19 @@ FROM ubuntu:22.04
33
WORKDIR /root
44

55
# ubuntu only
6-
RUN apt update
7-
RUN apt install -y curl git build-essential
8-
6+
RUN apt update --fix-missing
7+
RUN apt install -y curl git build-essential zsh
98

109
# Install brew
11-
RUN curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh | env NONINTERACTIVE=1 bash
12-
13-
RUN echo 'export PATH="$PATH:/home/linuxbrew/.linuxbrew/bin"' >> "$HOME/.bashrc"
14-
ENV PATH="$PATH:/home/linuxbrew/.linuxbrew/bin"
15-
16-
RUN brew doctor
17-
18-
# Xclip ubuntu only
19-
RUN brew install unzip xclip vim neovim
10+
ENV NONINTERACTIVE=1
11+
RUN curl -Lks -o install.sh https://raw.githubusercontent.com/dhvcc/configs/master/.cfg/install.sh && \
12+
chmod +x install.sh && \
13+
./install.sh && \
14+
zsh -c "$HOME/.cfg/setup.sh"
2015

21-
RUN brew install starship neofetch fzf btop wget \
22-
pyenv nvm \
23-
lsd fd ripgrep bat `# rust utils`
16+
#RUN echo 'export PATH="$PATH:/home/linuxbrew/.linuxbrew/bin"' >> "$HOME/.bashrc"
17+
#ENV PATH="$PATH:/home/linuxbrew/.linuxbrew/bin"
2418

25-
# INSTALL VIM THINGS
26-
RUN curl -fLo '~/.vim/autoload/plug.vim' --create-dirs \
27-
'https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'
28-
29-
RUN curl -Lks https://raw.githubusercontent.com/dhvcc/configs/master/.cfg/install.sh | /bin/sh
30-
31-
# Install manually or in script
32-
#ENV NVM_DIR="$HOME/.nvm"
33-
#RUN test -s "/home/linuxbrew/.linuxbrew/opt/nvm/nvm.sh" && . "/home/linuxbrew/.linuxbrew/opt/nvm/nvm.sh"; nvm install 16
34-
35-
# ubuntu only
36-
RUN apt install -y zsh
37-
#
38-
RUN "$HOME/.cfg/scripts/install-omb.sh"
39-
RUN "$HOME/.cfg/scripts/install-omz.sh"
19+
#RUN "$HOME/.cfg/setup.sh"
4020

4121
CMD bash

.cfg/scripts/install-neovim.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
#!/usr/bin/env zsh
22

3-
export PATH="/home/linuxbrew/.linuxbrew/bin:/opt/homebrew/bin:$PATH"
4-
53
curl -fLo '~/.vim/autoload/plug.vim' --create-dirs \
64
'https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'
75

.cfg/scripts/install-omb.sh

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
11
#!/usr/bin/env bash
22

3-
export OSH=$HOME/.oh-my-bash
4-
source $OSH/oh-my-bash.sh
5-
63
bash -c "$(curl -fsSL https://raw.githubusercontent.com/ohmybash/oh-my-bash/master/tools/install.sh)" --unattended
74
mv -f .bashrc.omb* .bashrc

.cfg/scripts/install-omz.sh

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,7 @@
11
#!/usr/bin/env zsh
22

3-
export ZSH="$HOME/.oh-my-zsh"
4-
export ZSH_CUSTOM="$HOME/.oh-my-zsh-custom"
5-
ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE="fg=#d1d1d1,bg=#525252"
6-
fpath+="$ZSH_CUSTOM/plugins/zsh-completions/src"
7-
source $ZSH/oh-my-zsh.sh
8-
93
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" "" --keep-zshrc --unattended
104

11-
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
12-
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
13-
git clone https://github.com/zsh-users/zsh-completions ${ZSH_CUSTOM:=~/.oh-my-zsh/custom}/plugins/zsh-completions
5+
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git "$HOME/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting"
6+
git clone https://github.com/zsh-users/zsh-autosuggestions "$HOME/.oh-my-zsh/custom/plugins/zsh-autosuggestions"
7+
git clone https://github.com/zsh-users/zsh-completions "$HOME/.oh-my-zsh/custom/plugins/zsh-completions"

.cfg/setup.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,12 @@ if test -f "$(which apt)"; then
88
${CMD} apt install -y zsh
99
fi
1010

11+
export PATH="/home/linuxbrew/.linuxbrew/bin:/opt/homebrew/bin:$PATH"
12+
export PATH="$HOME/.local/bin:$PATH"
13+
1114
./.cfg/scripts/install-brew.sh
1215
./.cfg/scripts/install-packages.sh
1316

14-
export PATH="$HOME/.local/bin:$PATH"
15-
1617
pip3 install pipx
1718
pipx install poetry --include-deps
1819
pipx install ansible --include-deps

0 commit comments

Comments
 (0)