diff options
author | bloodstalker <thabogre@gmail.com> | 2020-11-12 19:15:43 +0000 |
---|---|---|
committer | bloodstalker <thabogre@gmail.com> | 2020-11-12 19:15:43 +0000 |
commit | 552ad4f39c349522b4d9e4d56225143df7aa9b3f (patch) | |
tree | 739e5bccb9c75b14a7f3f63b01362e0819c66d76 | |
parent | centos7 image for matterhorn (diff) | |
download | dockerimages-552ad4f39c349522b4d9e4d56225143df7aa9b3f.tar.gz dockerimages-552ad4f39c349522b4d9e4d56225143df7aa9b3f.zip |
update
-rw-r--r-- | godev/Dockerfile | 69 | ||||
-rwxr-xr-x | godev/run.sh | 2 | ||||
-rw-r--r-- | gotty/Dockerfile | 3 | ||||
-rw-r--r-- | matterhorn/Dockerfile | 4 | ||||
-rwxr-xr-x | matterhorn/run.sh | 3 |
5 files changed, 77 insertions, 4 deletions
diff --git a/godev/Dockerfile b/godev/Dockerfile new file mode 100644 index 0000000..4dfc9d4 --- /dev/null +++ b/godev/Dockerfile @@ -0,0 +1,69 @@ +FROM alpine:3.12 +RUN apk update && apk upgrade +RUN apk add tmux st vim ripgrep fzf curl wget git ctags zsh python3 lynx go make cmake gcc lua gdb +RUN apk add build-base openssh w3m torsocks mksh ruby tor fontconfig python3-dev py3-pip ruby-rdoc +RUN apk add nodejs-lts npm openjdk11 +# install gem +RUN wget https://rubygems.org/rubygems/rubygems-3.1.4.tgz && tar xvf rubygems-3.1.4.tgz && cd rubygems-3.1.4 && ruby setup.rb +RUN gem install tmuxinator +# pip stuff +RUN pip3 install ranger-fm + +RUN mkdir devi +WORKDIR /devi + +RUN go get github.com/go-delve/delve/cmd/dlv + +# get docker scripts +RUN git clone https://github.com/terminaldweller/dockerscripts && cd dockerscripts && chmod +x vimplugins.sh && ./vimplugins.sh +#install ycm +RUN (cd ~/.vim/bundle/YouCompleteMe && python3 ./install.py --all) + +RUN git clone http://github.com/terminaldweller/fedora +RUN (cd fedora/baseline && cp ./.vimrc ~/.vimrc) +RUN (cd fedora/baseline && cp ./.tmux.conf ~/.tmux.conf) +RUN go get github.com/yudai/gotty + +RUN sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" +RUN (cd fedora/baseline && cp ./.zshrc ~/.zshrc) + +RUN zsh +ENV SHELL=/bin/zsh +RUN (cd ~; git clone https://github.com/wting/autojump) +RUN (cd ~/autojump; python3 ./install.py) +RUN echo "#autojump" >> ~/.zshrc +RUN (cd ~; echo "[[ -s $(pwd)/.autojump/etc/profile.d/autojump.sh ]] && source $(pwd)/.autojump/etc/profile.d/autojump.sh" >> ~/.zshrc) +RUN echo "autoload -U compinit && compinit -u" >> ~/.zshrc +RUN (cd ~/.oh-my-zsh/plugins; git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ~/.oh-my-zsh/plugins/zsh-syntax-highlighting) +RUN ln -sf /bin/zsh /bin/sh +RUN zsh < <(curl -s -S -L https://raw.githubusercontent.com/moovweb/gvm/master/binscripts/gvm-installer) +RUN ln -sf /bin/busybox /bin/sh + +# RUN vim -T xterm +Helptags +qall +# RUN vim +Helptags +qall + +RUN ln -s /usr/bin/python3 /bin/python +RUN ln -s /bin/mksh /bin/ksh +RUN mkdir ~/.w3m +RUN (cd fedora/.w3m && cp -R * ~/.w3m) +# RUN sudo tor; disown +EXPOSE 9000 +EXPOSE 8080 + +# fonsts +WORKDIR ~/ +RUN mkdir .font && cd .font +RUN wget https://github.com/ryanoasis/nerd-fonts/raw/master/patched-fonts/DejaVuSansMono/Bold-Italic/complete/DejaVu%20Sans%20Mono%20Bold%20Oblique%20Nerd%20Font%20Complete%20Mono.ttf +RUN wget https://github.com/ryanoasis/nerd-fonts/raw/master/patched-fonts/DejaVuSansMono/Regular/complete/DejaVu%20Sans%20Mono%20Nerd%20Font%20Complete%20Mono.ttf +RUN wget https://github.com/ryanoasis/nerd-fonts/raw/master/patched-fonts/DejaVuSansMono/Italic/complete/DejaVu%20Sans%20Mono%20Oblique%20Nerd%20Font%20Complete%20Mono.ttf +RUN wget https://github.com/ryanoasis/nerd-fonts/raw/master/patched-fonts/DejaVuSansMono/Bold/complete/DejaVu%20Sans%20Mono%20Bold%20Nerd%20Font%20Complete%20Mono.ttf +RUN fc-cache -f + +# RUN apk add util-linux +# nvm stuff +# RUN zsh -c nvm install --lts + +# project stuff +RUN go get github.com/go-kit/kit/transport/http +RUN go get github.com/go-kit/kit/endpoint +RUN git clone https://github.com/terminaldweller/gocrucible diff --git a/godev/run.sh b/godev/run.sh new file mode 100755 index 0000000..c77b18c --- /dev/null +++ b/godev/run.sh @@ -0,0 +1,2 @@ +#!/usr/bin/env sh +docker run --network="host" -it --entrypoint zsh $1 diff --git a/gotty/Dockerfile b/gotty/Dockerfile index 42ac24d..6731b5b 100644 --- a/gotty/Dockerfile +++ b/gotty/Dockerfile @@ -44,5 +44,4 @@ RUN mkdir ~/.w3m RUN (cd fedora/.w3m && cp * ~/.w3m) # RUN service tor start EXPOSE 9000 -# ENV TERM=st-256 -# RUN st +EXPOSE 8080 diff --git a/matterhorn/Dockerfile b/matterhorn/Dockerfile index 5839ccc..2f10112 100644 --- a/matterhorn/Dockerfile +++ b/matterhorn/Dockerfile @@ -1,10 +1,12 @@ FROM centos:7 RUN yum update -RUN yum install tmux wget tar bzip2 -y +RUN yum install tmux wget tar bzip2 openssh-server openssh-clients initscripts -y RUN mkdir devi WORKDIR /devi RUN wget https://github.com/matterhorn-chat/matterhorn/releases/download/50200.10.2/matterhorn-50200.10.2-centos-7-x86_64.tar.bz2 RUN tar -xvf matterhorn-50200.10.2-centos-7-x86_64.tar.bz2 +RUN cd matterhorn-50200.10.2-centos-7-x86_64 +# ENTRYPOINT ["./matterhorn"] EXPOSE 9000 diff --git a/matterhorn/run.sh b/matterhorn/run.sh index 7ea0781..ec03ede 100755 --- a/matterhorn/run.sh +++ b/matterhorn/run.sh @@ -1,2 +1,3 @@ #!/usr/bin/env sh -docker run --network="host" -it --entrypoint bash $1 +docker run --network="host" -it --privileged $1 /usr/sbin/init +# docker run --network="host" -it --entrypoint bash --privileged $1 /usr/sbin/init |