[~] Refactor
This commit is contained in:
parent
99c1c3c80b
commit
a317081fd3
19
docker/tiktok/.zshrc
Normal file
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
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"]
|
10
docker/tiktok/docker-compose.yml
Normal file
10
docker/tiktok/docker-compose.yml
Normal file
@ -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
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
|
0
python/tasks/tiktok/__init__.py
Normal file
0
python/tasks/tiktok/__init__.py
Normal file
Loading…
Reference in New Issue
Block a user