fichier de conf/env/docker
This commit is contained in:
父節點
14ad2c0492
當前提交
18aaf633a2
|
@ -84,4 +84,7 @@ target/
|
|||
# makefile step
|
||||
sync_collections
|
||||
resize_collections
|
||||
build_tfrecords
|
||||
build_tfrecords
|
||||
|
||||
# mysql dir
|
||||
mysql/
|
10
Makefile
10
Makefile
|
@ -9,6 +9,7 @@ BUCKET = [OPTIONAL] your-bucket-for-syncing-data (do not include 's3://')
|
|||
PROFILE = default
|
||||
PROJECT_NAME = smartissposts
|
||||
PYTHON_INTERPRETER = python
|
||||
SH_INTERPRETER = /bin/sh
|
||||
|
||||
ifeq (,$(shell which conda))
|
||||
HAS_CONDA=False
|
||||
|
@ -30,9 +31,8 @@ data: requirements
|
|||
$(PYTHON_INTERPRETER) src/data/make_dataset.py
|
||||
|
||||
## Sync photos with my refs
|
||||
sync_collections: src/data/sync_collections.py
|
||||
$(PYTHON_INTERPRETER) src/data/sync_collections.py
|
||||
touch sync_collections
|
||||
sync_collections: iss/data/sync_collections.sh
|
||||
$(PYTHON_INTERPRETER) iss/data/sync_collections.sh
|
||||
|
||||
## Resize collection
|
||||
resize_collections: src/data/resize_collections.py
|
||||
|
@ -55,8 +55,8 @@ draft:
|
|||
|
||||
## Delete all compiled Python files
|
||||
clean:
|
||||
find . -type f -name "*.py[co]" -delete
|
||||
find . -type d -name "__pycache__" -delete
|
||||
find . -path ./mysql -prune -o -type f -name "*.py[co]" -exec rm {} +
|
||||
find . -path ./mysql -prune -o -type d -name "__pycache__" -exec rm {} +
|
||||
|
||||
## Lint using flake8
|
||||
lint:
|
||||
|
|
|
@ -0,0 +1,48 @@
|
|||
version: "3"
|
||||
services:
|
||||
jupyter:
|
||||
image: jupyter/tensorflow-notebook:7f1482f5a136
|
||||
container_name: jupyter-iss
|
||||
command: start.sh jupyter lab --NotebookApp.base_url=/jupyter --NotebookApp.token='' --NotebookApp.password=''
|
||||
networks:
|
||||
- netproxy
|
||||
- default
|
||||
volumes:
|
||||
- "${PWD}:/home/jovyan/work"
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.frontend.rule=Host:iss.docker.lo;PathPrefix: /jupyter"
|
||||
- "traefik.port=8888"
|
||||
|
||||
adminer:
|
||||
image: adminer:4.7
|
||||
container_name: adminer-iss
|
||||
networks:
|
||||
- netproxy
|
||||
- default
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.frontend.rule=Host:iss.docker.lo;PathPrefix: /adminer"
|
||||
- "traefik.port=8080"
|
||||
- "traefik.main.frontend.entryPoints=http"
|
||||
|
||||
mysql:
|
||||
image: mysql:8
|
||||
container_name: mysql-iss
|
||||
networks:
|
||||
- default
|
||||
volumes:
|
||||
- "${PWD}/mysql:/var/lib/mysql"
|
||||
environment:
|
||||
MYSQL_DATABASE: iss
|
||||
MYSQL_ROOT_PASSWORD: pass
|
||||
MYSQL_USER: iss
|
||||
MYSQL_PASSWORD: iss
|
||||
labels:
|
||||
- "traefik.enable=false"
|
||||
|
||||
|
||||
networks:
|
||||
netproxy:
|
||||
external:
|
||||
name: netproxy
|
Loading…
Reference in New Issue