Explorar el Código

fichier de conf/env/docker

dev
Francois hace 1 año
padre
commit
18aaf633a2
Se han modificado 4 ficheros con 58 adiciones y 7 borrados
  1. +4
    -1
      .gitignore
  2. +5
    -5
      Makefile
  3. +48
    -0
      docker-compose.yaml
  4. +1
    -1
      setup.py

+ 4
- 1
.gitignore Ver fichero

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

# mysql dir
mysql/

+ 5
- 5
Makefile Ver fichero

@@ -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
- 0
docker-compose.yaml Ver fichero

@@ -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
- 1
setup.py Ver fichero

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


Cargando…
Cancelar
Guardar