Last active
July 27, 2021 22:53
-
-
Save jritsema/ac882555569219906c1574fb0651ae2d to your computer and use it in GitHub Desktop.
linux-dev-container
This file contains 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 ubuntu:latest | |
RUN apt-get update && \ | |
apt-get install -y zsh git vim wget curl unzip gpg make gcc language-pack-en && \ | |
wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | zsh || true && \ | |
rm $HOME/.zshrc | |
WORKDIR /root | |
RUN curl -sfL https://raw.githubusercontent.com/jritsema/home/main/clone.sh | zsh | |
# vim plugins | |
ENV plugins=/root/.vim/pack/plugins/start | |
RUN mkdir -p $plugins && cd $plugins && \ | |
cat /root/.vim-plugins | xargs -n 1 git clone | |
# asdf | |
RUN git clone https://github.com/asdf-vm/asdf.git ~/.asdf --branch v0.8.1 | |
CMD [ "/bin/zsh" ] |
This file contains 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
all: help | |
.PHONY: help | |
help: Makefile | |
@echo | |
@echo " Choose a make command to run" | |
@echo | |
@sed -n 's/^##//p' $< | column -t -s ':' | sed -e 's/^/ /' | |
@echo | |
## build: build a linux container with all my tools | |
.PHONY: build | |
build: | |
docker buildx build --platform linux/amd64 -t linux . | |
## run: run | |
.PHONY: run | |
run: | |
docker run -it --rm --platform linux/amd64 linux |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment