From 775ca2f4484a10e69a11ddf19da614e1ccc8211c Mon Sep 17 00:00:00 2001 From: uazo <29201891+uazo@users.noreply.github.com> Date: Tue, 31 Jan 2023 12:26:05 +0500 Subject: [PATCH] Update generate.sh --- images/remote-index/generate.sh | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/images/remote-index/generate.sh b/images/remote-index/generate.sh index 02c6d54..45ce83b 100644 --- a/images/remote-index/generate.sh +++ b/images/remote-index/generate.sh @@ -1,7 +1,7 @@ #!/bin/bash -if [[ -z "${DOCKER_SOCK}" ]]; then - echo "Please set DOCKER_SOCK env variable" +if [[ -z "${INDEX_VERSION}" ]]; then + echo "Please set INDEX_VERSION env variable" exit 1 fi @@ -10,10 +10,9 @@ if [[ -z "${DEV_CONTAINER}" ]]; then exit 1 fi -sudo docker -H $DOCKER_SOCK cp $DEV_CONTAINER:/home/lg/working_dir/chromium/src/out/bromite/bromite.idx . -sudo docker -H $DOCKER_SOCK cp $DEV_CONTAINER:/home/lg/working_dir/bromite/build/RELEASE . +cp /storage/images/android/x64/$INDEX_VERSION/bromite.idx . +cp /storage/images/android/x64/$INDEX_VERSION/RELEASE -#INDEX_VERSION=$(cat RELEASE) DOCKER_BUILDKIT=1 docker build -t uazo/bromite-remote-index:$INDEX_VERSION \ --progress plain \ --no-cache \