Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adicionando docker para desenvolvimento local #1

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20,001 changes: 20,001 additions & 0 deletions Assets/Data/dataset_desafio_2 (copy).csv

Large diffs are not rendered by default.

41,151 changes: 41,151 additions & 0 deletions Assets/Data/dataset_desafio_2_with_smote.csv

Large diffs are not rendered by default.

41,151 changes: 41,151 additions & 0 deletions Assets/Data/sample_smote_X.csv

Large diffs are not rendered by default.

41,150 changes: 41,150 additions & 0 deletions Assets/Data/sample_smote_y.csv

Large diffs are not rendered by default.

1,786 changes: 1,786 additions & 0 deletions Assets/Notebooks/.ipynb_checkpoints/parte-1-checkpoint.ipynb

Large diffs are not rendered by default.

1,202 changes: 1,202 additions & 0 deletions Assets/Notebooks/.ipynb_checkpoints/parte-2-checkpoint.ipynb

Large diffs are not rendered by default.

1,530 changes: 1,449 additions & 81 deletions Assets/Notebooks/parte-1.ipynb

Large diffs are not rendered by default.

1,210 changes: 1,209 additions & 1 deletion Assets/Notebooks/parte-2.ipynb

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions Assets/Notebooks/sklearn_transforms
Submodule sklearn_transforms added at 913940
Binary file added Assets/Notebooks/sklearn_transforms.zip
Binary file not shown.
17 changes: 17 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#Sistema Operacional
FROM ubuntu:18.04

#Dependências do sistema
RUN apt-get update -y
RUN apt-get install -y python3-dev python3-pip build-essential

#Pacotes do Python
RUN pip3 install --upgrade pip #Atualização do gerenciador de pacotes
RUN pip3 install jupyter #Instalação do pacote jupyter notebook
RUN pip3 install numpy matplotlib scipy requests pandas xgboost seaborn #Dependências

#Dependências para o notebook 2
RUN apt-get install -y git zip

WORKDIR /desafio-2-2020
COPY . /desafio-2-2020
26 changes: 26 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,32 @@ Caso o vídeo publicado acima não seja suficiente, você pode analisar a docume

Você também pode acessar o discord oficial da Maratona 2020 para realizar perguntas e/ou interagir com outros participantes: [Discord](https://discord.gg/2NRPpcU).

## Docker para execução local

### Construindo o docker
```bash
docker-compose up -d --build
```

### Acessando o docker
```bash
docker exec -it desafio-2-2020 bash
```

### Executando o jupyter
```bash
jupyter notebook --ip 0.0.0.0 --allow-root
```

### Acessando o jupyter
Acessar através da URL apresentada no console do Jupyter. Ex: http://127.0.0.1:8888/?token=cc7ba40131c2619338c08269709361156ffd1d2d19df1928

### Como importar o seu arquivo CSV dentro do STEP 3 do Notebook 1
```python
df_data_1 = pd.read_csv('../Data/dataset_desafio_2.csv')
df_data_1.head()
```

## License

Copyright 2019 Maratona Behind the Code
Expand Down
12 changes: 12 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
version: '2'
services:
desafio-2-2020:
container_name: desafio-2-2020
build:
context: .
dockerfile: Dockerfile
volumes:
- .:/desafio-2-2020
ports:
- '8888:8888'
command: bash -c "while [ true ]; do sleep 10; done"