Skip to content

Latest commit

 

History

History

py-shiny

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Load balancing test app: Python

Run the app interactively:

# Change directory
cd py-shiny/app

# Install dependencies
pip install -r requirements.txt

# Run the app, visit http://localhost:8080
shiny run --reload --port 8080

Pull and run Docker image:

docker pull ghcr.io/h10y/lbtest/py-shiny:latest
docker run --rm -p 8080:3838 ghcr.io/h10y/lbtest/py-shiny:latest

Containerized version:

# Change directory
cd py-shiny

# If on MacOS X, set this
export DOCKER_DEFAULT_PLATFORM=linux/amd64

# Specify tag
export TAG=lbtest/py-shiny:latest

# Build image
docker build -t $TAG .

# Run image, visit http://localhost:8080
docker run --rm -p 8080:3838 $TAG