euedeep / docker-colab-local

A Docker container to act as a local runtime for Google Colab or private jupyter server with BERT preinstalled

Home Page:https://hub.docker.com/r/sorokine/docker-colab-local

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

docker Colab local Github action backend (unstable)

How to run

    1. Fork this repo or Download this repo and upload it to Github
    1. Setup secret repo environment variable as name NGROK_AUTH_TOKEN_DEC For this go to Settings>Secrets>New repository secret and Name box paste NGROK_AUTH_TOKEN_DEC and get Ngrok token from https://dashboard.ngrok.com/get-started/your-authtoken and copy-paste token to Value box and Add secret.
    1. Now run workflow action for this goto Actions> select Workflows as Colab backend > Run workflow
    1. Wait 2-3 minutes then goto to https://dashboard.ngrok.com/endpoints/status. You will see two links like http://7be55b53bbad.ap.ngrok.io/. Add with link home/runner/content/services.html or browse home>runner>content>services.html
    1. Now you see three services WETTY, GHFS, COLAB. Copy Colab commend after -> this. Ex: cloudflared access tcp --hostname https://watches-cause-towards-ref.trycloudflare.com --url localhost:8081
    1. Download Cloudflared binary depend on your os type from https://github.com/cloudflare/cloudflared/releases and rename just Cloudflared
    1. On same path open terminal and run cloudflared access tcp --hostname https://xxxxxxx.trycloudflare.com --url localhost:8081 (Note xxxxxxx is your unique word)
    1. Now open any Coalb notebook and select "connect to a local runtime" http://localhost:8081/ and connect (Note that it is not require any token)

About

A Docker container to act as a local runtime for Google Colab or private jupyter server with BERT preinstalled

https://hub.docker.com/r/sorokine/docker-colab-local


Languages

Language:Python 65.3%Language:Dockerfile 29.4%Language:Shell 5.3%