Created
January 3, 2018 22:25
-
-
Save chorn/fa3711dccd264269e231ca32f129fe2f to your computer and use it in GitHub Desktop.
This file contains hidden or 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
FROM base/archlinux:latest | |
LABEL maintainer="Chris Horn <[email protected]>" | |
ARG user=chorn | |
ARG group=chorn | |
ENV TERM xterm-256color | |
RUN locale-gen en_US.UTF-8 && \ | |
ln -sf /usr/share/zoneinfo/US/Eastern /etc/localtime && \ | |
pacman -Syu -qq --noconfirm && \ | |
pacman -S -qq --noconfirm base-devel bc ctags erlang-nox elixir go go-tools git htop imagemagick jq lua neovim net-tools openssh openssl p7zip python-neovim python-pip python2-neovim python2-pip ruby the_silver_searcher tcl tmux unzip vim wget whois zip zsh asciiquarium figlet cowsay && \ | |
mkdir -p /home && \ | |
git clone https://github.com/chorn/dotfiles /home/${user} && \ | |
useradd --groups wheel --no-create-home --shell /bin/zsh ${user} | |
WORKDIR /home/${user} | |
COPY dotfiles . | |
COPY user_config.bash . | |
RUN chown -R ${user}:${group} . | |
USER ${user}:${group} | |
RUN ./user_config.bash | |
EXPOSE 3000 | |
ENTRYPOINT ["zsh", "-l"] | |
This file contains hidden or 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
#!/bin/bash | |
export NODEJS_CHECK_SIGNATURES=no | |
mkdir -p ~/.go/bin | |
git config --global --add core.excludesFile ~/.gitignore | |
git config --local --add core.excludesFile ~/.gitignore-pub-dotfiles | |
mv ~/.git ~/.git-pub-dotfiles | |
git clone https://github.com/asdf-vm/asdf.git ~/.asdf | |
source ~/.shell-path | |
asdf_install_global() { | |
local lang="$1" | |
local version="$2" | |
asdf plugin-add $lang | |
asdf install $lang $version | |
asdf global $lang $version | |
} | |
asdf_install_global elixir 1.5.3 | |
asdf_install_global elm 0.18.0 | |
asdf_install_global golang 1.8.4 | |
asdf_install_global nodejs 9.3.0 | |
asdf_install_global python 3.6.2 | |
asdf_install_global ruby 2.5.0 | |
asdf_install_global rust beta | |
go get github.com/motemen/ghq | |
for repo in zdharma/fast-syntax-highlighting zsh-users/zsh-autosuggestions direnv/direnv junegunn/fzf chriskempson/base16-shell chorn/dev_tool_updater ; do | |
ghq get "$repo" | |
done | |
ln -sf ~/.ghq/github.com/chriskempson/base16-shell ~/.config/ | |
ln -sf ~/.ghq/github.com/junegunn/fzf ~/.config/ | |
ln -sf ~/.ghq/github.com/chorn/dev_tool_updater/dev_tool_updater ~/bin | |
~/.config/fzf/install --key-bindings --completion --no-bash --no-zsh | |
cd ~/.ghq/github.com/direnv/direnv && make install | |
~/bin/dev_tool_updater all | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment