-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Configure docker dev env with zsh
- Loading branch information
1 parent
fc48e07
commit 1c3cec2
Showing
8 changed files
with
1,691 additions
and
5 deletions.
There are no files selected for viewing
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
Empty file.
Large diffs are not rendered by default.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
node_modules/ | ||
.history/ | ||
.history/ | ||
.docker/zsh/history/.zsh_history | ||
tsconfig.tsbuildinfo |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ | ||
"peacock.remoteColor": "#215732", | ||
"workbench.colorCustomizations": { | ||
"activityBar.activeBackground": "#2f7c47", | ||
"activityBar.activeBorder": "#422c74", | ||
"activityBar.background": "#2f7c47", | ||
"activityBar.foreground": "#e7e7e7", | ||
"activityBar.inactiveForeground": "#e7e7e799", | ||
"activityBarBadge.background": "#422c74", | ||
"activityBarBadge.foreground": "#e7e7e7", | ||
"sash.hoverBorder": "#2f7c47", | ||
"tab.activeBorder": "#2f7c47", | ||
"titleBar.activeBackground": "#2f7c47", | ||
"titleBar.activeForeground": "#e7e7e7", | ||
"titleBar.inactiveBackground": "#2f7c4799", | ||
"titleBar.inactiveForeground": "#e7e7e799" | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,32 @@ | ||
FROM node:14.15.4-slim | ||
|
||
RUN mkdir -p /usr/share/man/man1 && \ | ||
echo 'deb http://ftp.debian.org/debian stretch-backports main' | tee /etc/apt/sources.list.d/stretch-backports.list && \ | ||
apt update && apt install -y --no-install-recommends \ | ||
openjdk-11-jre \ | ||
git \ | ||
zsh \ | ||
curl \ | ||
wget \ | ||
fonts-powerline | ||
|
||
USER node | ||
|
||
WORKDIR /home/node/app | ||
|
||
ENV JAVA_HOME="/usr/lib/jvm/java-11-openjdk-amd64" | ||
|
||
RUN sh -c "$(wget -O- https://github.com/deluan/zsh-in-docker/releases/download/v1.1.2/zsh-in-docker.sh)" -- \ | ||
-t https://github.com/romkatv/powerlevel10k \ | ||
-p git \ | ||
-p git-flow \ | ||
-p https://github.com/zdharma-continuum/fast-syntax-highlighting \ | ||
-p https://github.com/zsh-users/zsh-autosuggestions \ | ||
-p https://github.com/zsh-users/zsh-completions \ | ||
-a 'export TERM=xterm-256color' | ||
|
||
RUN echo '[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh' >> ~/.zshrc && \ | ||
echo 'HISTFILE=/home/node/zsh/.zsh_history' >> ~/.zshrc | ||
|
||
|
||
CMD [ ".docker/entrypoint.sh" ] |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
version: '3' | ||
|
||
services: | ||
app: | ||
volumes: | ||
- ./.docker/zsh/powerlevel10k/.p10k.zsh:/home/node/.p10k.zsh:delegated | ||
- ./.docker/zsh/history:/home/node/zsh:delegated | ||
|
||
# multiple docker-compose | ||
|
||
# sync | ||
|
||
#history local |
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