Skip to content

Commit 1552759

Browse files
authored
Merge pull request #9 from altescy/renew
2 parents c06f7b5 + 93507b6 commit 1552759

22 files changed

Lines changed: 844 additions & 529 deletions

Dockerfile

Lines changed: 27 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,54 +1,40 @@
11
FROM homebrew/ubuntu24.04
22

3-
ARG username="user"
4-
ARG password="password"
5-
63
# Install requirements
7-
RUN apt-get update && \
8-
apt-get install -y \
9-
build-essential \
10-
curl \
11-
wget \
12-
file \
13-
git \
14-
locales \
15-
locales-all \
16-
zsh \
17-
libssl-dev \
18-
zlib1g-dev \
19-
libbz2-dev \
20-
libreadline-dev \
21-
libsqlite3-dev \
22-
llvm \
23-
libncurses5-dev \
24-
libncursesw5-dev \
25-
xz-utils \
26-
tk-dev \
27-
libffi-dev \
28-
liblzma-dev \
29-
python3-openssl
30-
RUN locale-gen ja_JP.UTF-8 && update-locale
31-
RUN apt-get autoremove -y && \
32-
apt-get clean && \
4+
RUN sudo apt-get update && \
5+
sudo apt-get install -y \
6+
build-essential \
7+
curl \
8+
wget \
9+
file \
10+
git \
11+
locales \
12+
locales-all \
13+
zsh \
14+
libssl-dev \
15+
zlib1g-dev \
16+
libbz2-dev \
17+
libreadline-dev \
18+
libsqlite3-dev \
19+
llvm \
20+
libncurses5-dev \
21+
libncursesw5-dev \
22+
xz-utils \
23+
tk-dev \
24+
libffi-dev \
25+
liblzma-dev \
26+
python3-openssl
27+
RUN sudo apt-get autoremove -y && \
28+
sudo apt-get clean && \
3329
rm -rf /usr/local/src/*
34-
RUN brew install tmux anyenv neovim
30+
RUN brew install tmux anyenv neovim hub
3531

36-
# Setup user
37-
ENV USER $username
38-
ENV HOME /home/${USER}
32+
# Set up shell
3933
ENV SHELL /usr/bin/zsh
4034

41-
# Create user
42-
RUN useradd -m ${USER} && \
43-
gpasswd -a ${USER} sudo && \
44-
echo "${USER}:${password}" | chpasswd
45-
RUN chown -R ${USER} /home/linuxbrew/.linuxbrew
46-
4735
# Install dotfiles
4836
WORKDIR ${HOME}
4937
COPY ./ ./.dotfiles
50-
RUN chown -R ${USER} ${HOME}/.dotfiles
51-
USER ${USER}
5238
RUN cd .dotfiles && make
5339

5440
CMD ["/bin/zsh"]

Makefile

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ DOCKER_CONTAINER_NAME = dotfiles
77
DOCKERFILE_PATH = $(PWD)/Dockerfile
88

99
.PHONY: all brew \
10-
apps anyenv_app fzf_app git_app nvim_app poetry_app tmux_app zsh_app efm_app \
10+
apps anyenv_app fzf_app git_app nvim_app tmux_app zsh_app efm_app \
1111
languages clang golang node python rust nim ruby vala zig crystal \
12-
configs editorconfig git nvim poetry tmux zsh efm \
12+
configs editorconfig git nvim tmux zsh efm \
1313
docker docker_attach docker_build docker_run docker_stop \
1414
clean editorconfig_clean git_clean nvim_clean tmux_clean zsh_clean
1515

@@ -36,9 +36,6 @@ git_app:
3636
nvim_app:
3737
$(PWD)/nvim/bin/install.sh
3838

39-
poetry_app: python
40-
$(PWD)/poetry/bin/install.sh
41-
4239
tmux_app:
4340
$(PWD)/tmux/bin/install.sh
4441

@@ -91,7 +88,7 @@ lua:
9188
# CONFIGS
9289
#
9390

94-
configs: git editorconfig nvim poetry tmux zsh
91+
configs: git editorconfig nvim tmux zsh
9592

9693
editorconfig:
9794
$(PWD)/editorconfig/bin/setup.sh
@@ -102,9 +99,6 @@ git: git_app
10299
nvim: node nvim_app
103100
$(PWD)/nvim/bin/setup.sh
104101

105-
poetry: poetry_app
106-
$(PWD)/poetry/bin/setup.sh
107-
108102
tmux: tmux_app
109103
$(PWD)/tmux/bin/setup.sh
110104

bin/python_install.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ fi
1919

2020
if (type "pyenv" > /dev/null 2>&1); then
2121
# Install latest conda
22-
PYTHON_VERSION="3.11.6"
22+
PYTHON_VERSION="3.13"
2323
pyenv install $PYTHON_VERSION
2424
pyenv rehash
2525
pyenv global $PYTHON_VERSION
@@ -29,4 +29,4 @@ fi
2929
python --version
3030
pip --version
3131

32-
pip install flake8 mypy black isort refurb 'python-lsp-server[mypy,flake8,isort,black]'
32+
pip install refurb

editorconfig/conf.d/editorconfig

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ indent_size = 2
2020
[*.{html,xml}]
2121
indent_size = 2
2222

23+
[*.{css,scss,sass}]
24+
indent_size = 2
25+
2326
[*.{json,jsonnet,libsonnet,yml,yaml}]
2427
indent_size = 2
2528

@@ -41,5 +44,8 @@ indent_size = 2
4144
[*.tsv]
4245
indent_style = tab
4346

47+
[*.plist]
48+
indent_style = tab
49+
4450
[Makefile]
4551
indent_style = tab

nvim/bin/setup.sh

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,9 @@
11
#!/bin/bash
22

3-
rm -rf $HOME/.config/nvim $HOME/.config/coc $HOME/.cache/dein
3+
rm -rf $HOME/.config/nvim
44
mkdir -p $HOME/.config/nvim
55

66
ln -s `pwd`/nvim/conf.d/init.lua $HOME/.config/nvim/init.lua
77
ln -s `pwd`/nvim/conf.d/lua $HOME/.config/nvim/lua
8-
ln -s `pwd`/nvim/conf.d/coc-settings.json $HOME/.config/nvim/coc-settings.json
98

109
nvim --headless -u $HOME/.config/nvim/init.lua +qall
11-
12-
# Install coc.nvim extensions
13-
if (type "anyenv" > /dev/null 2>&1); then
14-
eval "$(anyenv init -)"
15-
fi
16-
mkdir -p $HOME/.config/coc/extensions
17-
cp `pwd`/nvim/conf.d/coc-package.json $HOME/.config/coc/extensions/package.json
18-
cd $HOME/.config/coc/extensions
19-
npm install --global-style --ignore-scripts --no-bin-links --no-package-lock --only=prod

nvim/conf.d/coc-package.json

Lines changed: 0 additions & 18 deletions
This file was deleted.

nvim/conf.d/coc-settings.json

Lines changed: 0 additions & 100 deletions
This file was deleted.

nvim/conf.d/init.lua

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
1-
require("base")
2-
require("plugins")
1+
require("config.base")
2+
require("config.lazy")
3+
4+
vim.o.exrc = true
5+
vim.o.secure = true

0 commit comments

Comments
 (0)