]> apps.delaporte.us Git - dotfiles.git/blobdiff - Microsoft.PowerShell_profile.ps1
attempted airflow run
[dotfiles.git] / Microsoft.PowerShell_profile.ps1
index d2fd4503b66b62bb2fd316d5f9de8ef14a7e0fea..8ae1eb412d1d4e99d51cc40666af518b2f4485ec 100644 (file)
@@ -1,4 +1,11 @@
 
+# Courtesty of MKletz
+# Get-ChildItem -Path 'C:\Repos' -Filter "*.psd1" -Recurse | ForEach-Object -Process {
+#     $Path = Split-Path -Path $_.Directory -Parent
+#     $env:PSModulePath = $env:PSModulePath + ";$($Path)"
+#}
+$env:PSModulePath = $env:PSModulePath.Replace("\\ad.uillinois.edu\techsvc\home\$($ENV:USERNAME)\Documents\PowerShell\Modules;",'')
+
 # Kali linux env
 $ENV:PATH +=":/home/delaport/development/flutter/bin" # Flutter in Kali under WSL
 
@@ -24,6 +31,7 @@ function New-DockerRStudio() {
 }
 function Start-DockerRStudio() {
   docker start rpython
+  jupyter notebook list
   Write-Host "R Studio is running at http://localhost:8787/"
   Write-Host "Jupyter is running at http://localhost:8888/"
 }
@@ -51,6 +59,11 @@ function Start-DockerJuiceShop() {
   Write-Host "Vulnerable Juice Shop running on 3000"
 }
 
+function Start-DockerGrafana() {
+  docker run --rm -d --name=grafana -p 3001:3001 -user $ID --volume "C:\src\data:/var/lib/grafana" grafana/grafana
+  Write-Host "Grafana running on 3001"
+}
+
 # Import some home grown PowerShell modules, if they are installed.
 $modPaths = @("C:\src\dotfiles\ToyBox\toybox.psm1")
 $modPaths | ForEach-Object {
@@ -71,4 +84,13 @@ function Start-DockerPython2Bash {
 
 function Stop-Docker {
   docker stop $(docker ps -a -q)
+}
+
+function New-DockerAirflow {
+  docker run -v ./:/etc/myscripts apache/airflow /bin/bash /etc/myscripts/airflow.sh
+
+}
+
+function Start-DockerAirflow {
+  docker run airflow -f webserver
 }
\ No newline at end of file