diff --git a/docker/tiktok/.zshrc b/docker/tiktok/.zshrc new file mode 100644 index 0000000..1e34522 --- /dev/null +++ b/docker/tiktok/.zshrc @@ -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 diff --git a/docker/tiktok/Dockerfile b/docker/tiktok/Dockerfile new file mode 100644 index 0000000..ddb357d --- /dev/null +++ b/docker/tiktok/Dockerfile @@ -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"] diff --git a/docker/tiktok/docker-compose.yml b/docker/tiktok/docker-compose.yml new file mode 100644 index 0000000..d9f2cd7 --- /dev/null +++ b/docker/tiktok/docker-compose.yml @@ -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 diff --git a/docker/tiktok/entry.sh b/docker/tiktok/entry.sh new file mode 100644 index 0000000..776176f --- /dev/null +++ b/docker/tiktok/entry.sh @@ -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 diff --git a/python/tasks/tiktok/__init__.py b/python/tasks/tiktok/__init__.py new file mode 100644 index 0000000..e69de29