xycode + docker + flask

config setup

download dockerfile

curl -O https://raw.githubusercontent.com/exiahuang/xycode-config/master/docker/flask/Dockerfile

curl -O https://raw.githubusercontent.com/exiahuang/xycode-config/master/docker/flask/docker-compose.yml

download xycode config for docker-flask

cd ~/.xycode && curl -O https://raw.githubusercontent.com/exiahuang/xycode-config/master/linux/xycode.docker-flask.json

start to develope flask in docker

xycode-docker-flask

tips

add docker to your json file in ~/.xycode, then each task in this json config file will run in docker container.

{
    "tasks": [
        yourtask...
    ],
    "variables": {
        "docker_image_name": {
            "label": "docker images name",
            "value": "flask"
        }
    },
    "docker": {
        "dockerContainer": "${lowercaseWorkspaceName}_flask_1",
        "dockerAppRoot": "/app/"
    }
}

change ~/.xycode/xycode.docker-flask.json config file, define your command.