Skip to content
This repository has been archived by the owner on Apr 24, 2020. It is now read-only.

Commit

Permalink
test-in-docker: Support for multiple ZSH versions
Browse files Browse the repository at this point in the history
-z --zsh can specify one of the versions of ZSH we can get from
   centos and ubuntu
  • Loading branch information
docwhat committed Jul 12, 2017
1 parent df31848 commit 2f808f8
Show file tree
Hide file tree
Showing 17 changed files with 264 additions and 66 deletions.
14 changes: 14 additions & 0 deletions TESTS.md
Expand Up @@ -26,8 +26,22 @@ This is the easiest to use _if_ you have Docker already installed and running.
The command `./test-in-docker` should make it fairly easy to get into a running
container with the framework of your choice.

Examples:

``` zsh
# Test Antigen with the oldest version of ZSH
$ ./test-in-docker antigen
```

``` zsh
# Test Prezto with ZSH version 5.2
$ ./test-in-docker --zsh 5.2 prezto
```

You can get Docker at <https://www.docker.com/community-edition>.

**Note:** Not all frameworks work with all versions of ZSH (or the underlying OS).

## Vagrant

Currently there are two test VMs. `test-vm` is an Ubuntu machine with several
Expand Down
3 changes: 2 additions & 1 deletion docker/antibody/Dockerfile
@@ -1,4 +1,5 @@
FROM p9k:base
ARG base
FROM p9k:${base}

COPY docker/antibody/install.zsh /tmp/
RUN zsh /tmp/install.zsh
Expand Down
3 changes: 2 additions & 1 deletion docker/antigen/Dockerfile
@@ -1,4 +1,5 @@
FROM p9k:base
ARG base
FROM p9k:${base}

COPY docker/antigen/install.zsh /tmp/
RUN zsh /tmp/install.zsh
Expand Down
31 changes: 31 additions & 0 deletions docker/base-4.3.11/Dockerfile
@@ -0,0 +1,31 @@
FROM centos:6

RUN \
yum install -y \
curl \
git \
zsh \
mercurial \
subversion \
golang \
jq \
node \
ruby \
python \
python-virtualenv \
sudo

RUN adduser --shell /bin/zsh --comment 'fred' --user-group fred

COPY docker/fred-sudoers /etc/sudoers.d/fred

USER fred
WORKDIR /home/fred
ENV LANG=en_US.UTF-8
ENV TERM=xterm-256color
ENV DEFAULT_USER=fred
ENV POWERLEVEL9K_ALWAYS_SHOW_CONTEXT=true

RUN touch .zshrc

CMD ["/bin/zsh", "-l"]
2 changes: 1 addition & 1 deletion docker/base/Dockerfile → docker/base-5.0.3/Dockerfile
@@ -1,4 +1,4 @@
FROM ubuntu:trusty
FROM ubuntu:14.04

RUN \
apt-get update && \
Expand Down
35 changes: 35 additions & 0 deletions docker/base-5.1.1/Dockerfile
@@ -0,0 +1,35 @@
FROM ubuntu:16.04

RUN \
apt-get update && \
echo 'golang-go golang-go/dashboard boolean false' | debconf-set-selections && \
DEBIAN_FRONTEND=noninteractive apt-get install -y \
curl \
git \
zsh \
mercurial \
subversion \
golang \
jq \
nodejs \
ruby \
python \
python-virtualenv \
sudo \
locales

RUN adduser --shell /bin/zsh --gecos 'fred' --disabled-password fred
RUN locale-gen "en_US.UTF-8"

COPY docker/fred-sudoers /etc/sudoers.d/fred

USER fred
WORKDIR /home/fred
ENV LANG=en_US.UTF-8
ENV TERM=xterm-256color
ENV DEFAULT_USER=fred
ENV POWERLEVEL9K_ALWAYS_SHOW_CONTEXT=true

RUN touch .zshrc

CMD ["/bin/zsh", "-l"]
35 changes: 35 additions & 0 deletions docker/base-5.2/Dockerfile
@@ -0,0 +1,35 @@
FROM ubuntu:17.04

RUN \
apt-get update && \
echo 'golang-go golang-go/dashboard boolean false' | debconf-set-selections && \
DEBIAN_FRONTEND=noninteractive apt-get install -y \
curl \
git \
zsh \
mercurial \
subversion \
golang \
jq \
nodejs \
ruby \
python \
python-virtualenv \
sudo \
locales

RUN adduser --shell /bin/zsh --gecos 'fred' --disabled-password fred
RUN locale-gen "en_US.UTF-8"

COPY docker/fred-sudoers /etc/sudoers.d/fred

USER fred
WORKDIR /home/fred
ENV LANG=en_US.UTF-8
ENV TERM=xterm-256color
ENV DEFAULT_USER=fred
ENV POWERLEVEL9K_ALWAYS_SHOW_CONTEXT=true

RUN touch .zshrc

CMD ["/bin/zsh", "-l"]
3 changes: 2 additions & 1 deletion docker/dotfile/Dockerfile
@@ -1,4 +1,5 @@
FROM p9k:base
ARG base
FROM p9k:${base}

COPY ./ p9k/
COPY docker/dotfile/zshrc .zshrc
3 changes: 2 additions & 1 deletion docker/omz/Dockerfile
@@ -1,4 +1,5 @@
FROM p9k:base
ARG base
FROM p9k:${base}

COPY docker/omz/install.zsh /tmp/
RUN zsh /tmp/install.zsh
Expand Down
3 changes: 2 additions & 1 deletion docker/prezto/Dockerfile
@@ -1,4 +1,5 @@
FROM p9k:base
ARG base
FROM p9k:${base}

COPY docker/prezto/install.zsh /tmp/
RUN zsh /tmp/install.zsh
Expand Down
3 changes: 2 additions & 1 deletion docker/zgen/Dockerfile
@@ -1,4 +1,5 @@
FROM p9k:base
ARG base
FROM p9k:${base}

COPY docker/zgen/install.zsh /tmp/
RUN zsh /tmp/install.zsh
Expand Down
3 changes: 2 additions & 1 deletion docker/zim/Dockerfile
@@ -1,4 +1,5 @@
FROM p9k:base
ARG base
FROM p9k:${base}

COPY docker/zim/install.zsh /tmp/
RUN zsh /tmp/install.zsh
Expand Down
3 changes: 2 additions & 1 deletion docker/zplug/Dockerfile
@@ -1,4 +1,5 @@
FROM p9k:base
ARG base
FROM p9k:${base}

COPY docker/zplug/install.zsh /tmp/
RUN zsh /tmp/install.zsh
Expand Down
3 changes: 2 additions & 1 deletion docker/zplugin/Dockerfile
@@ -1,4 +1,5 @@
FROM p9k:base
ARG base
FROM p9k:${base}

COPY docker/zplugin/install.zsh /tmp/
RUN zsh /tmp/install.zsh
Expand Down
3 changes: 2 additions & 1 deletion docker/zpm/Dockerfile
@@ -1,4 +1,5 @@
FROM p9k:base
ARG base
FROM p9k:${base}

COPY docker/zpm/install.zsh /tmp/
RUN zsh /tmp/install.zsh
Expand Down
3 changes: 2 additions & 1 deletion docker/zulu/Dockerfile
@@ -1,4 +1,5 @@
FROM p9k:base
ARG base
FROM p9k:${base}

COPY docker/zulu/install.zsh /tmp/
RUN zsh /tmp/install.zsh
Expand Down

0 comments on commit 2f808f8

Please sign in to comment.