GitHub - wxw-matt/devcontainer-features: A devcontainer feature that can load and run remote bash scripts which makes the devcontainers more usable (original) (raw)

Command and Script Runner, a DevContainer feature that allows you to run any bash scripts without pain:

apt

Install packages easily.

command runner

It is quite handy to have your packages installed without using other features.

You can have up to 10 commands.

script runner

Explanation

The format of value for script{1-10} is filename#url. For example, if a gist is used, the value should look like:

install_vim_plugins#https://gist.githubusercontent.com/wxw-matt/ff35edb5e60c2a404b18724bf63be964/raw

The install_vim_plugins is the filename in the image/container, and it will be stored in directory /usr/local/scripts_runner/scripts.

The https://gist.githubusercontent.com/wxw-matt/ff35edb5e60c2a404b18724bf63be964/raw is where the file is downloaded from.

The /raw in the url will make GitHub return the content of the gist.

Note:

You can have up to 10 scripts from script1 to script10. The script runner will run each of them in order.