mirror of
https://github.com/zplug/zplug
synced 2024-05-21 23:16:14 +02:00
Add Dockerfile for testing zplug
This commit is contained in:
parent
3d6f272374
commit
eddb073889
|
@ -27,3 +27,5 @@ zcompdump.zwc
|
||||||
# OS X
|
# OS X
|
||||||
.DS_Store
|
.DS_Store
|
||||||
**/.DS_Store
|
**/.DS_Store
|
||||||
|
|
||||||
|
.ssh
|
||||||
|
|
|
@ -0,0 +1,22 @@
|
||||||
|
# Sample zshrc
|
||||||
|
|
||||||
|
ZPLUG_SUDO_PASSWORD=
|
||||||
|
ZPLUG_PROTOCOL=ssh
|
||||||
|
|
||||||
|
source $HOME/.zplug/init.zsh
|
||||||
|
|
||||||
|
zplug "b4b4r07/ultimate", as:theme
|
||||||
|
zplug 'b4b4r07/zplug-doctor', lazy:yes
|
||||||
|
zplug 'b4b4r07/zplug-cd', lazy:yes
|
||||||
|
zplug 'b4b4r07/zplug-rm', lazy:yes
|
||||||
|
|
||||||
|
if ! zplug check --verbose; then
|
||||||
|
printf "Install? [y/N]: "
|
||||||
|
if read -q; then
|
||||||
|
echo; zplug install
|
||||||
|
fi
|
||||||
|
echo
|
||||||
|
fi
|
||||||
|
|
||||||
|
zplug load
|
||||||
|
|
|
@ -0,0 +1,25 @@
|
||||||
|
FROM ubuntu:xenial
|
||||||
|
|
||||||
|
RUN apt update && apt-get install -y software-properties-common && \
|
||||||
|
add-apt-repository -y ppa:jonathonf/vim && \
|
||||||
|
apt-get update && apt-get install -y locales build-essential openssh-server git vim zsh tmux curl unzip sudo && \
|
||||||
|
rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
|
RUN locale-gen en_US.UTF-8
|
||||||
|
|
||||||
|
RUN groupadd -g 1000 zplug && \
|
||||||
|
useradd -g zplug -G sudo -m -s /bin/zsh zplug && \
|
||||||
|
echo 'zplug:zplug' | chpasswd
|
||||||
|
|
||||||
|
# .ssh dir needs to be copied from your home
|
||||||
|
ADD .ssh /home/zplug/.ssh
|
||||||
|
|
||||||
|
RUN chown -R zplug:zplug /home/zplug
|
||||||
|
RUN chmod 600 /home/zplug/.ssh/id_rsa
|
||||||
|
|
||||||
|
USER zplug
|
||||||
|
WORKDIR /home/zplug
|
||||||
|
|
||||||
|
RUN git clone https://github.com/zplug/zplug ~/.zplug
|
||||||
|
|
||||||
|
CMD ["/bin/zsh"]
|
|
@ -0,0 +1,9 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
cp -R ~/.ssh .ssh
|
||||||
|
|
||||||
|
docker build -t zplug -f Dockerfile .
|
||||||
|
|
||||||
|
rm -rf .ssh
|
Loading…
Reference in New Issue