Agregando Primer Commit.
This commit is contained in:
22
README.md
Normal file
22
README.md
Normal file
@@ -0,0 +1,22 @@
|
||||
# Repo para talleres donde Se use jupyter notebook
|
||||
|
||||
Para correr los entornos, deben tener docker instalado y correr el docker-compose en su maquina local esto instalará las herramientas basicas en el entorno, instalará git, python y las extensiones de vscode relacionadas con jupyter notebook.
|
||||
|
||||
> **Nota1:** Para acceder al servidor, inicie sesión en https://github.com/login/device y use el código XXXX-XXXX. Puede consultar los registros del contenedor para obtener el código.
|
||||
|
||||
> **Nota2:** Recuerda que los bash de custom scripts deben tener permiso de ejecucion en la maquina host, para hacerlo correr en terminal:
|
||||
|
||||
```
|
||||
chmod +x ./01_install_git.sh
|
||||
chmod +x ./02_install_python.sh
|
||||
```
|
||||
|
||||
> **Nota3:** El contenedor tendra el volumen de la carpeta proyectos, esa es la carpeta persistente donde deben colocar los proyectos que apunta a la carpeta proyectos de su host.
|
||||
|
||||
Recuerden que solo deben correr:
|
||||
|
||||
```
|
||||
docker-compose up -d
|
||||
```
|
||||
|
||||
Luego de ingresar el codigo que les arroja la terminal, abran vscode.dev en un navegador, abran la pestaña de vscode de tunneles remotos y hagan login con su cuenta de github, podran trabajar desde ahí.
|
||||
4
custom-scripts/01_install_git.sh
Executable file
4
custom-scripts/01_install_git.sh
Executable file
@@ -0,0 +1,4 @@
|
||||
#!/bin/bash
|
||||
# Installing git
|
||||
sudo apt update
|
||||
sudo apt install -y git
|
||||
13
custom-scripts/02_install_python.sh
Executable file
13
custom-scripts/02_install_python.sh
Executable file
@@ -0,0 +1,13 @@
|
||||
#!/bin/bash
|
||||
# Installing Python
|
||||
|
||||
# Update package list
|
||||
sudo apt update
|
||||
|
||||
# Install Python 3 and pip
|
||||
sudo apt install -y python3-pip
|
||||
|
||||
# Verify Python installation
|
||||
python3 -V
|
||||
|
||||
# Finished installing Python
|
||||
12
docker-compose.yaml
Normal file
12
docker-compose.yaml
Normal file
@@ -0,0 +1,12 @@
|
||||
version: '3'
|
||||
|
||||
services:
|
||||
vscode:
|
||||
image: gitea.p-lao.com/aleleba/vscode:latest
|
||||
environment:
|
||||
VSCODE_TUNNEL_NAME: dev-jupyter
|
||||
# GLOBAL_ENV_DONT_PROMPT_WSL_INSTALL: 1 # Descomentar si utilizas WSL
|
||||
volumes:
|
||||
- ./extensions.json:/home/extensions.json
|
||||
- ./custom-scripts:/usr/bin/custom-scripts
|
||||
- ./proyectos:/home/vscode/proyectos
|
||||
19
extensions.json
Normal file
19
extensions.json
Normal file
@@ -0,0 +1,19 @@
|
||||
[
|
||||
{
|
||||
"extensionsGroup": {
|
||||
"description": "Extensions of Python",
|
||||
"extensions": [
|
||||
{
|
||||
"name": "Python",
|
||||
"notes": "Extension of Python",
|
||||
"uniqueIdentifier": "ms-python.python"
|
||||
},
|
||||
{
|
||||
"name": "Jupyter",
|
||||
"notes": "Extension of Jupyter",
|
||||
"uniqueIdentifier": "ms-toolsai.jupyter"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
Reference in New Issue
Block a user