Rename public API
This commit is contained in:
parent
de476212c9
commit
0730bbd703
3 changed files with 5 additions and 5 deletions
|
@ -11,7 +11,7 @@ begin
|
||||||
sudo cp "$dir/docker-compose.yml" (getServiceRoot $argv)
|
sudo cp "$dir/docker-compose.yml" (getServiceRoot $argv)
|
||||||
|
|
||||||
USER=$user yq "$userKey = env.USER" "$source" | \
|
USER=$user yq "$userKey = env.USER" "$source" | \
|
||||||
sudo tee (__getServiceSecretsConfig $argv) >/dev/null
|
sudo tee (getServiceSecretsConfig $argv) >/dev/null
|
||||||
|
|
||||||
installDockerService $argv
|
installDockerService $argv
|
||||||
end
|
end
|
||||||
|
|
|
@ -20,7 +20,7 @@ begin
|
||||||
echo "$nginxRoot/$(getServiceName $argv).conf"
|
echo "$nginxRoot/$(getServiceName $argv).conf"
|
||||||
end
|
end
|
||||||
|
|
||||||
function __getServiceSecretsConfig -V secretsFile
|
function getServiceSecretsConfig -V secretsFile
|
||||||
echo "$(getServiceRoot $argv)/$secretsFile"
|
echo "$(getServiceRoot $argv)/$secretsFile"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -34,7 +34,7 @@ begin
|
||||||
|
|
||||||
for i in (seq 1 2 (count $services))
|
for i in (seq 1 2 (count $services))
|
||||||
set -l file (mktemp)
|
set -l file (mktemp)
|
||||||
set -l config (__getServiceSecretsConfig $argv)
|
set -l config (getServiceSecretsConfig $argv)
|
||||||
set -l service $services[$i]
|
set -l service $services[$i]
|
||||||
set -l port (random 49152 65535)
|
set -l port (random 49152 65535)
|
||||||
set -l portKey (__getServicePortKey "$service")
|
set -l portKey (__getServicePortKey "$service")
|
||||||
|
@ -51,7 +51,7 @@ begin
|
||||||
set -l services (getServiceConfigs $argv | string split0)
|
set -l services (getServiceConfigs $argv | string split0)
|
||||||
|
|
||||||
for i in (seq 1 2 (count $services))
|
for i in (seq 1 2 (count $services))
|
||||||
set -l config (__getServiceSecretsConfig $argv)
|
set -l config (getServiceSecretsConfig $argv)
|
||||||
set -l service $services[$i]
|
set -l service $services[$i]
|
||||||
set -l location $services[(math $i + 1)]
|
set -l location $services[(math $i + 1)]
|
||||||
set -l portKey (__getServicePortKey "$service")
|
set -l portKey (__getServicePortKey "$service")
|
||||||
|
|
|
@ -12,7 +12,7 @@ begin
|
||||||
|
|
||||||
URL=$dbUrl yq "$dbKey = env.URL" "$source" | \
|
URL=$dbUrl yq "$dbKey = env.URL" "$source" | \
|
||||||
PW=$pw yq ".services.db.environment.MARIADB_PASSWORD = env.PW" | \
|
PW=$pw yq ".services.db.environment.MARIADB_PASSWORD = env.PW" | \
|
||||||
sudo tee (__getServiceSecretsConfig $argv) >/dev/null
|
sudo tee (getServiceSecretsConfig $argv) >/dev/null
|
||||||
|
|
||||||
installDockerService $argv
|
installDockerService $argv
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue