feat(storage): add private file layer and isolate SeaweedFS on a storage network
This commit is contained in:
1 parent
f5b07e8f4d
commit
8378ad45b0
22 files changed
+1668
-40
No files matched your search
@@ -21,6 +21,7 @@ spec_dir="${E2E_SPEC_DIR:-$frontend_dir/e2e}"
|
||||
suffix=$(od -An -N4 -tx1 /dev/urandom | tr -d ' \n')
|
||||
project="lincodex-e2e-$suffix"
|
||||
network="${project}_default"
|
||||
storage_network="${project}_storage"
|
||||
env_file=""
|
||||
started=0
|
||||
|
||||
@@ -61,7 +62,7 @@ done < <(env)
|
||||
|
||||
compose() {
|
||||
env -i "${docker_env[@]}" \
|
||||
APP_PROJECT="$project" APP_NETWORK="$network" \
|
||||
APP_PROJECT="$project" APP_NETWORK="$network" APP_STORAGE_NETWORK="$storage_network" \
|
||||
PLAYWRIGHT_VERSION="$declared" E2E_CI="${CI:-}" \
|
||||
E2E_UID="$(id -u)" E2E_GID="$(id -g)" \
|
||||
E2E_SPEC_DIR="$spec_dir" E2E_ARTIFACTS_DIR="$artifacts_dir" \
|
||||
@@ -78,9 +79,11 @@ for volume in "${project}_postgres_data" "${project}_seaweedfs_data" "${project}
|
||||
fail "Refusing to use existing E2E volume $volume."
|
||||
fi
|
||||
done
|
||||
if docker network inspect "$network" >/dev/null 2>&1; then
|
||||
fail "Refusing to use existing E2E network $network."
|
||||
fi
|
||||
for existing in "$network" "$storage_network"; do
|
||||
if docker network inspect "$existing" >/dev/null 2>&1; then
|
||||
fail "Refusing to use existing E2E network $existing."
|
||||
fi
|
||||
done
|
||||
if [[ -n "$(docker ps -aq --filter "label=com.docker.compose.project=$project")" ]]; then
|
||||
fail "Refusing to use existing Compose project $project."
|
||||
fi
|
||||
|
||||
Reference in new issue
Block a user