fichier de conf/env/docker

This commit is contained in:
Francois 2019-03-05 00:48:18 +01:00
부모 14ad2c0492
커밋 18aaf633a2
4개의 변경된 파일58개의 추가작업 그리고 7개의 파일을 삭제

5
.gitignore vendored
파일 보기

@ -84,4 +84,7 @@ target/
# makefile step
sync_collections
resize_collections
build_tfrecords
build_tfrecords
# mysql dir
mysql/

파일 보기

@ -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:

48
docker-compose.yaml Normal file
파일 보기

@ -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

파일 보기

@ -1,7 +1,7 @@
from setuptools import find_packages, setup
setup(
name='src',
name='iss',
packages=find_packages(),
version='0.1.0',
description='Project to identify nice pics from live ISS',