benlau / jupyter-for-devops-demo

A demo project to show how to use Jupyter for DevOps

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Jupyter for Devops Demo Project

A demo project to show how to use Jupyter as a runbook for DevOps

How it works

graph LR
subgraph Demo
	subgraph Jupyter 
		README
		Preset
		Login
		Database
	end
	
	subgraph DockerCompose
		DjangoCMS
		PGSQL
		AdminConsole
	end
end
README --> Preset
Preset --> Login
Preset --> Database
DjangoCMS --> PGSQL
Jupyter --> DockerCompose

This project comes with a Django CMS website running inside Docker Compose. It can be manipulated by Jupyter. Jupyter stores a set of "Runbooks," and each runbook serves a different purpose, such as setting up the environment, handling login functionality, and performing database manipulation.

Prerequisite

Python >= 3.8
Docker Compose
conda

Reference:

Installation

VENV=jupyter-devops
conda create --name ${VENV} -y jupyterlab

Startup

conda run -n ${VENV} jupyter lab --port 8089

Then it will launch the Jupyter Lab in the browser with URL of http://localhost:8089 . Open README.ipynb and follow the instruction to explore how to manipulate a Django site with Jupyter.

About

A demo project to show how to use Jupyter for DevOps

License:Apache License 2.0


Languages

Language:Jupyter Notebook 81.3%Language:Python 12.1%Language:HTML 6.4%Language:Dockerfile 0.2%