fichier de conf/env/docker
This commit is contained in:
parent
14ad2c0492
commit
18aaf633a2
|
@ -84,4 +84,7 @@ target/
|
||||||
# makefile step
|
# makefile step
|
||||||
sync_collections
|
sync_collections
|
||||||
resize_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
|
PROFILE = default
|
||||||
PROJECT_NAME = smartissposts
|
PROJECT_NAME = smartissposts
|
||||||
PYTHON_INTERPRETER = python
|
PYTHON_INTERPRETER = python
|
||||||
|
SH_INTERPRETER = /bin/sh
|
||||||
|
|
||||||
ifeq (,$(shell which conda))
|
ifeq (,$(shell which conda))
|
||||||
HAS_CONDA=False
|
HAS_CONDA=False
|
||||||
|
@ -30,9 +31,8 @@ data: requirements
|
||||||
$(PYTHON_INTERPRETER) src/data/make_dataset.py
|
$(PYTHON_INTERPRETER) src/data/make_dataset.py
|
||||||
|
|
||||||
## Sync photos with my refs
|
## Sync photos with my refs
|
||||||
sync_collections: src/data/sync_collections.py
|
sync_collections: iss/data/sync_collections.sh
|
||||||
$(PYTHON_INTERPRETER) src/data/sync_collections.py
|
$(PYTHON_INTERPRETER) iss/data/sync_collections.sh
|
||||||
touch sync_collections
|
|
||||||
|
|
||||||
## Resize collection
|
## Resize collection
|
||||||
resize_collections: src/data/resize_collections.py
|
resize_collections: src/data/resize_collections.py
|
||||||
|
@ -55,8 +55,8 @@ draft:
|
||||||
|
|
||||||
## Delete all compiled Python files
|
## Delete all compiled Python files
|
||||||
clean:
|
clean:
|
||||||
find . -type f -name "*.py[co]" -delete
|
find . -path ./mysql -prune -o -type f -name "*.py[co]" -exec rm {} +
|
||||||
find . -type d -name "__pycache__" -delete
|
find . -path ./mysql -prune -o -type d -name "__pycache__" -exec rm {} +
|
||||||
|
|
||||||
## Lint using flake8
|
## Lint using flake8
|
||||||
lint:
|
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
|
2
setup.py
2
setup.py
|
@ -1,7 +1,7 @@
|
||||||
from setuptools import find_packages, setup
|
from setuptools import find_packages, setup
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
name='src',
|
name='iss',
|
||||||
packages=find_packages(),
|
packages=find_packages(),
|
||||||
version='0.1.0',
|
version='0.1.0',
|
||||||
description='Project to identify nice pics from live ISS',
|
description='Project to identify nice pics from live ISS',
|
||||||
|
|
Loading…
Reference in New Issue