commit e21865d1cb23e51a2482a201223901d072d63b88 Author: Alejandro Lembke Barrientos Date: Thu Jan 29 02:58:36 2026 +0000 Agregando Primer Commit. diff --git a/README.md b/README.md new file mode 100644 index 0000000..8a9637a --- /dev/null +++ b/README.md @@ -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í. \ No newline at end of file diff --git a/custom-scripts/01_install_git.sh b/custom-scripts/01_install_git.sh new file mode 100755 index 0000000..9073dc3 --- /dev/null +++ b/custom-scripts/01_install_git.sh @@ -0,0 +1,4 @@ +#!/bin/bash +# Installing git +sudo apt update +sudo apt install -y git diff --git a/custom-scripts/02_install_python.sh b/custom-scripts/02_install_python.sh new file mode 100755 index 0000000..fa4797f --- /dev/null +++ b/custom-scripts/02_install_python.sh @@ -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 diff --git a/docker-compose.yaml b/docker-compose.yaml new file mode 100644 index 0000000..7afe269 --- /dev/null +++ b/docker-compose.yaml @@ -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 \ No newline at end of file diff --git a/extensions.json b/extensions.json new file mode 100644 index 0000000..6d625ba --- /dev/null +++ b/extensions.json @@ -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" + } + ] + } + } +] \ No newline at end of file