updated Dockerfile

This commit is contained in:
Marvin Zhang
2022-06-03 19:26:28 +08:00
parent 7f94488d00
commit 602ef0cfae
5 changed files with 18 additions and 32 deletions

View File

@@ -1,25 +0,0 @@
#!/bin/bash
function install_plugin() {
# plugins executables directory
local bin_path="/app/plugins/bin"
if [ -d $bin_path ]; then
:
else
mkdir -p "$bin_path"
fi
# plugin name
local name=$1
local url="https://github.com/crawlab-team/${name}"
local repo_path=""/app/plugins/${name}
git clone "$url" "$repo_path"
cd "$repo_path" && go build -o "${bin_path}/${name}"
chmod +x "${bin_path}/${name}"
}
plugin_names="plugin-dependency plugin-notification plugin-spider-assistant"
for name in $plugin_names; do
install_plugin "$name"
done