From 5a582b879c20bec2a94ed67a5ae10ab2f6fd06b5 Mon Sep 17 00:00:00 2001 From: Kiritow <1362050620@qq.com> Date: Sat, 5 Feb 2022 23:50:54 +0000 Subject: [PATCH] update install scripts --- install.sh | 10 ++++++---- install_cn.sh | 14 ++++++-------- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/install.sh b/install.sh index 7f9699b..068bfa7 100755 --- a/install.sh +++ b/install.sh @@ -63,11 +63,13 @@ else echo "[WARN] gost hash mismatch: $LOCAL_GOST_HASH. Expected: $VERIFIED_GOST_HASH" fi -sudo podman build . -f DockerfileBuildEnv -t wg-ops-buildenv -sudo podman build . -f DockerfileRunEnv -t wg-ops-runenv +sudo podman build . -f DockerfileBase -t wg-ops-base:latest +sudo podman build . -f DockerfileBuildEnv -t wg-ops-buildenv:latest +sudo podman build . -f DockerfileRunEnv -t wg-ops-runenv:latest -podman build . -f DockerfileBuildEnv -t wg-ops-buildenv -podman build . -f DockerfileRunEnv -t wg-ops-runenv +podman build . -f DockerfileBase -t wg-ops-base:latest +podman build . -f DockerfileBuildEnv -t wg-ops-buildenv:latest +podman build . -f DockerfileRunEnv -t wg-ops-runenv:latest CONTAINER_ID=$(podman run --rm -it -v ./bin:/root/bin -d wg-ops-buildenv) podman cp mux.c $CONTAINER_ID:/root/ diff --git a/install_cn.sh b/install_cn.sh index 160d67d..50f488e 100755 --- a/install_cn.sh +++ b/install_cn.sh @@ -62,15 +62,13 @@ else echo "[WARN] gost hash mismatch: $LOCAL_GOST_HASH. Expected: $VERIFIED_GOST_HASH" fi -sudo podman build . -f DockerfileCN -t ubuntu-cn:latest -sudo podman tag ubuntu-cn:latest ubuntu:latest -sudo podman build . -f DockerfileBuildEnv -t wg-ops-buildenv -sudo podman build . -f DockerfileRunEnv -t wg-ops-runenv +sudo podman build . -f DockerfileBaseCN -t wg-ops-base:latest +sudo podman build . -f DockerfileBuildEnv -t wg-ops-buildenv:latest +sudo podman build . -f DockerfileRunEnv -t wg-ops-runenv:latest -podman build . -f DockerfileCN -t ubuntu-cn:latest -podman tag ubuntu-cn:latest ubuntu:latest -podman build . -f DockerfileBuildEnv -t wg-ops-buildenv -podman build . -f DockerfileRunEnv -t wg-ops-runenv +podman build . -f DockerfileBaseCN -t wg-ops-base:latest +podman build . -f DockerfileBuildEnv -t wg-ops-buildenv:latest +podman build . -f DockerfileRunEnv -t wg-ops-runenv:latest CONTAINER_ID=$(podman run --rm -it -v ./bin:/root/bin -d wg-ops-buildenv) podman cp mux.c $CONTAINER_ID:/root/