xycode express in docker

Posted by ExiaHuang on December 19, 2019

xycode + docker + express

config setup

download dockerfile

1
2
3
curl -O https://raw.githubusercontent.com/exiahuang/xycode-config/master/docker/express/Dockerfile

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

download xycode config for docker-express

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

start to develope express in docker

xycode-docker-express

tips

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

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
{
    "tasks": [
        yourtask...
    ],
    "variables": {
        "docker_image_name": {
            "label": "docker images name",
            "value": "node"
        }
    },
    "docker": {
        "dockerContainer": "${lowercaseWorkspaceName}_node_1",
        "dockerAppRoot": "/app/"
    }
}

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