[~] Refactor

This commit is contained in:
Siarhei Siniak 2024-07-06 11:27:50 +03:00
parent 99c1c3c80b
commit a317081fd3
5 changed files with 45 additions and 0 deletions

19
docker/tiktok/.zshrc Normal file

@ -0,0 +1,19 @@
# The following lines were added by compinstall
zstyle ':completion:*' completer _expand _complete _ignored _correct _approximate
zstyle :compinstall filename '~/.zshrc'
setopt INC_APPEND_HISTORY SHARE_HISTORY AUTO_PUSHD PUSHD_IGNORE_DUPS
setopt PROMPTSUBST
autoload -Uz compinit
compinit
# End of lines added by compinstall
# Lines configured by zsh-newuser-install
HISTFILE=~/.histfile
HISTSIZE=1000000
SAVEHIST=1000000
# End of lines configured by zsh-newuser-install
bindkey -d
bindkey -v

8
docker/tiktok/Dockerfile Normal file

@ -0,0 +1,8 @@
FROM python:latest
RUN pip3 install ipython jupyter
RUN apt-get update -yy && apt-get install -yy zsh htop mc git
WORKDIR /app
CMD ["bash", "docker/tiktok/entry.sh"]

@ -0,0 +1,10 @@
version: '3.7'
services:
tiktok:
build:
context: ../../
dockerfile: ./docker/tiktok/Dockerfile
volumes:
- ./../../docker/tiktok:/app/docker/tiktok:ro
- ./../../tmp/cache/tiktok:/app/tmp/cache/tiktok:rw
- ./../../python/tasks/tiktok:/app/python/tasks/tiktok:ro

8
docker/tiktok/entry.sh Normal file

@ -0,0 +1,8 @@
ln -sf $PWD/docker/tiktok/.zshrc ~
mkdir -p tmp/cache/tiktok/zsh
mkdir -p tmp/cache/tiktok/ipython
mkdir -p tmp/cache/tiktok/jupyter
ln -sf $PWD/tmp/cache/tiktok/zsh/histfile ~/.histfile
ln -sf $PWD/tmp/cache/tiktok/jupyter ~/.jupyter
ln -sf $PWD/tmp/cache/tiktok/ipython ~/.ipython
exec zsh -l