1
0
Fork 0
mirror of https://github.com/veekun/pokedex.git synced 2024-08-20 18:16:34 +00:00

Update README and improve docker support ()

* improve python 3, docker support and README

- fix support for python 3.7
- simplify docker support
- update readme
- remove obsolete item-questions file
This commit is contained in:
Andrew Ekstedt 2020-03-04 15:07:03 -08:00 committed by GitHub
parent 722a4664dd
commit 9c25b268eb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 131 additions and 92 deletions

20
bin/docker-pokedex Executable file
View file

@ -0,0 +1,20 @@
#!/usr/bin/env bash
curr_dir="$(pwd)"
log_file="${curr_dir}/bin/docker-pokedex.log"
if [[ "${1}" = "rebuild" ]] || [[ ! -f "${log_file}" ]]; then
docker build --rm -t veekun/pokedex ${curr_dir}
echo "$(date)" >> "${log_file}"
if [[ "${1}" = "rebuild" ]]; then
echo "Docker container rebuilt"
exit
fi;
fi
docker run -it --rm \
-e TERM=xterm-256color \
--name "pokedex-$(date +%Y%m%d-%H%M%S)" \
--mount type=bind,source="${curr_dir}/pokedex/data",target=/app/pokedex/data \
veekun/pokedex "${@}"