mirror of
https://github.com/mudler/LocalAI.git
synced 2024-12-24 23:06:42 +00:00
9cfd89087b
add utils.sh, prelim docs Signed-off-by: Dave Lee <dave@gray101.com> |
||
---|---|---|
.. | ||
README.md |
Place any additional resources your environment requires in this directory
Script hooks are currently called for:
postcreate.sh
and poststart.sh
If files with those names exist here, they will be called at the end of the normal script.
This is a good place to set things like git config --global user.name
are set - and to handle any other files that are mounted via this directory.
To assist in doing so, source /.devcontainer-scripts/utils.sh
will provide utility functions that may be useful - for example:
#!/bin/bash
source "/.devcontainer-scripts/utils.sh"
sshfiles=("config", "key.pub")
setup_ssh "${sshfiles[@]}"
config_user "YOUR NAME" "YOUR EMAIL"
config_remote "REMOTE NAME" "REMOTE URL"