summaryrefslogtreecommitdiff
path: root/docker/omz
diff options
context:
space:
mode:
authorBen Hilburn <bhilburn@gmail.com>2017-07-12 17:27:45 +0300
committerGitHub <noreply@github.com>2017-07-12 17:27:45 +0300
commit40a12d388fa7fbb73e912cedc0a6c272ede64860 (patch)
tree26c80d671d557ec7c19fb61eeea44c98d5cc1d7d /docker/omz
parentc88cea7f3f9983a25616317ad475759fa99ee8a1 (diff)
parent2f808f8a4e6224478e1c9efb85c1a4b3f24df087 (diff)
Merge pull request #567 from docwhat/pr/docker
test-in-docker: quickly test frameworks in docker
Diffstat (limited to 'docker/omz')
-rw-r--r--docker/omz/Dockerfile8
-rw-r--r--docker/omz/install.zsh4
-rw-r--r--docker/omz/zshrc5
3 files changed, 17 insertions, 0 deletions
diff --git a/docker/omz/Dockerfile b/docker/omz/Dockerfile
new file mode 100644
index 00000000..1a417b9f
--- /dev/null
+++ b/docker/omz/Dockerfile
@@ -0,0 +1,8 @@
+ARG base
+FROM p9k:${base}
+
+COPY docker/omz/install.zsh /tmp/
+RUN zsh /tmp/install.zsh
+
+COPY docker/omz/zshrc .zshrc
+COPY ./ p9k/
diff --git a/docker/omz/install.zsh b/docker/omz/install.zsh
new file mode 100644
index 00000000..e2cdfa96
--- /dev/null
+++ b/docker/omz/install.zsh
@@ -0,0 +1,4 @@
+sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
+
+mkdir -p ~/.oh-my-zsh/custom/themes
+ln -nsf ~/p9k/ ~/.oh-my-zsh/custom/themes/powerlevel9k
diff --git a/docker/omz/zshrc b/docker/omz/zshrc
new file mode 100644
index 00000000..9e798e2d
--- /dev/null
+++ b/docker/omz/zshrc
@@ -0,0 +1,5 @@
+export ZSH=$HOME/.oh-my-zsh
+ZSH_THEME="powerlevel9k/powerlevel9k"
+plugins=(git rake ruby)
+
+source $ZSH/oh-my-zsh.sh