Skip to content

Blueshoe/gefyra-devcontainer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gefyra-devcontainer

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 .

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published