Local image + devcontainer build:
docker build ./app -t fastapi:lastest
devcontainer build --no-cache --image-name "fastapi:devcontainer" --workspace-folder "."
Deck setup + Gefyra bridge
deck get .
gefyra up
gefyra run -i fastapi:devcontainer -N fastapi -v $(pwd):/workspace -c "/bin/sh -c 'while sleep 1000; do :; done'"
Attach to container via VSCode (Using Docker extension -> right click on container -> "Attach Visual Studio Code"). Open Folder in "/workspace"
Optional:
gefyra bridge -N fastapi --deployment fastapi --port 8080:8000 --container-name fastapi-app -I myfastapi
Within the devcontainer try to install poetry -> Timeout error/problems
pip install poetry
Finish up
gefyra unbridge -A
gefyra down
deck remove --cluster .