From a8bb7124302541a0d33b11bf751164222f0c8445 Mon Sep 17 00:00:00 2001 From: Jose Carlos Venegas Munoz Date: Fri, 15 Jun 2018 17:38:16 -0500 Subject: [PATCH] pkgs: fix path to build pkgs with docker. Point to new obs-scripts paths. Signed-off-by: Jose Carlos Venegas Munoz --- obs-packaging/build_from_docker.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/obs-packaging/build_from_docker.sh b/obs-packaging/build_from_docker.sh index af26abf60c..baddcdc130 100755 --- a/obs-packaging/build_from_docker.sh +++ b/obs-packaging/build_from_docker.sh @@ -8,9 +8,10 @@ set -x set -e +script_dir=$( cd $( dirname "${BASH_SOURCE[0]}" ) && pwd ) cache_dir=${PWD}/obs-cache #where packaing repo lives -packaging_repo_dir="${PWD}" +packaging_repo_dir=$(cd "${script_dir}/.." && pwd ) #where results will be stored host_datadir="${PWD}/pkgs" obs_image="obs-kata" @@ -49,4 +50,4 @@ faketty sudo docker run \ -v "$packaging_repo_dir":${packaging_repo_dir} \ -v "$host_datadir":/var/packaging \ -v "$HOME/.oscrc":/root/.oscrc \ - -ti "$obs_image" bash -c "${packaging_repo_dir}/build_all.sh" + -ti "$obs_image" bash -c "${packaging_repo_dir}/obs-packaging/build_all.sh"