xycode + docker + express¶
config setup¶
download dockerfile
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
cd ~/.xycode && curl -O https://raw.githubusercontent.com/exiahuang/xycode-config/master/linux/xycode.docker-express.json
start to develope express in docker¶
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": "node" } }, "docker": { "dockerContainer": "${lowercaseWorkspaceName}_node_1", "dockerAppRoot": "/app/" } }
change
~/.xycode/xycode.docker-express.json
config file, define your command.