-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build the full botway docker image tag
- Loading branch information
1 parent
2ab39f0
commit 16541fb
Showing
3 changed files
with
70 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
zshrc text eol=lf | ||
*.sh text eol=lf |
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,56 @@ | ||
FROM debian:11 | ||
FROM botwayorg/botway:debian | ||
|
||
### variables ### | ||
ENV UPD="apt-get update" | ||
ENV UPD_s="sudo $UPD" | ||
ENV INS="apt-get install" | ||
ENV INS_s="sudo $INS" | ||
ENV PKGS="zip unzip multitail curl zsh lsof wget ssl-cert asciidoctor apt-transport-https ca-certificates gnupg-agent bash-completion build-essential htop jq software-properties-common less llvm locales man-db nano vim ruby-full" | ||
ENV BUILDS="zlib1g-dev libncurses5-dev libgdbm-dev libnss3-dev libssl-dev libsqlite3-dev libreadline-dev libffi-dev libbz2-dev" | ||
ENV BOTWAY_DOCKER_TOOLS_URL="https://abdfnx.github.io/botway/docker/tools" | ||
ENV LANG=en_US.UTF-8 | ||
ENV ZSHRC=".zshrc" | ||
|
||
RUN $UPD && $INS -y $PKGS && $UPD && \ | ||
locale-gen en_US.UTF-8 && \ | ||
mkdir /var/lib/apt/abdcodedoc-marks && \ | ||
apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* && \ | ||
$UPD | ||
|
||
### git ### | ||
RUN $INS -y git && \ | ||
rm -rf /var/lib/apt/lists/* && \ | ||
$UPD | ||
|
||
### sudo ### | ||
RUN $UPD && $INS -y sudo && \ | ||
adduser --disabled-password --gecos '' bw && \ | ||
adduser bw sudo && \ | ||
echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers | ||
|
||
### nodejs & npm ### | ||
RUN curl -sL https://deb.nodesource.com/setup_17.x -o nodesource_setup.sh && \ | ||
sudo bash nodesource_setup.sh && \ | ||
$INS_s nodejs -y && \ | ||
sudo rm -rf nodesource_setup.sh && \ | ||
$UPD_s | ||
RUN npm i -g npm@latest | ||
|
||
ENV HOME="/home/bw" | ||
WORKDIR $HOME | ||
USER bw | ||
|
||
### zsh ### | ||
RUN zsh && \ | ||
sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" && \ | ||
$UPD_s && \ | ||
git clone https://github.com/zsh-users/zsh-syntax-highlighting ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting && \ | ||
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions | ||
|
||
### rm old ~/.zshrc ### | ||
RUN sudo rm -rf $ZSHRC | ||
|
||
RUN wget $BOTWAY_DOCKER_TOOLS_URL/zshrc -O $ZSHRC | ||
|
||
CMD /bin/bash -c "zsh" |
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 @@ | ||
export ZSH="/home/bw/.oh-my-zsh" | ||
|
||
ZSH_THEME="af-magic" | ||
|
||
plugins=( git zsh-syntax-highlighting zsh-autosuggestions ) | ||
|
||
source $ZSH/oh-my-zsh.sh | ||
|
||
alias s="source ~/.zshrc" | ||
alias n="nano ~/.zshrc" | ||
alias update="sudo apt-get update" | ||
alias upgrade="sudo apt-get upgrade" | ||
alias py="python3" |