ManageIQ / manageiq-appliance-build

Scripts to build ManageIQ appliances
Apache License 2.0
10 stars 55 forks source link

unable to prepare context: path "manageiq-base" not found #475

Closed tjyang closed 3 years ago

tjyang commented 3 years ago

Hi

[me@centos8t01 manageiq-appliance-build]$ bin/container-build.sh  -t release -r jansa-3
+ getopts t:r:h opt
+ case $opt in
+ BUILD_TYPE=release
+ getopts t:r:h opt
+ case $opt in
+ REF=jansa-3
+ getopts t:r:h opt
+ '[' release '!=' nightly ']'
+ '[' release '!=' release ']'
+ '[' -z jansa-3 ']'
+ BRANCH=jansa
+ PODS_SOURCE_DIR=/build/manageiq-pods-jansa
+ MANAGEIQ_SOURCE_DIR=/build/manageiq-jansa
+ '[' jansa-3 = master ']'
+ '[' jansa-3 '!=' jansa ']'
+ tag=jansa-3
+ rm -rf /build/manageiq-pods-jansa
+ git clone -b jansa-3 --depth 1 https://github.com/ManageIQ/manageiq-pods /build/manageiq-pods-jansa
Cloning into '/build/manageiq-pods-jansa'...
remote: Enumerating objects: 126, done.
remote: Counting objects: 100% (126/126), done.
remote: Compressing objects: 100% (109/109), done.
remote: Total 126 (delta 11), reused 54 (delta 1), pack-reused 0
Receiving objects: 100% (126/126), 102.79 KiB | 11.42 MiB/s, done.
Resolving deltas: 100% (11/11), done.
Note: switching to '997066fde9ca778621c6d1dbb1abef09a3447529'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by switching back to a branch.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -c with the switch command. Example:

  git switch -c <new-branch-name>

Or undo this operation with:

  git switch -

Turn off this advice by setting config variable advice.detachedHead to false

+ pushd /build/manageiq-pods-jansa
/build/manageiq-pods-jansa ~/github/manageiq-appliance-build
+ build_args='-n -p -d . -r docker.io/manageiq -t jansa-3'
+ '[' release == release ']'
+ build_args+=' -s'
+ env BUILD_REF=jansa-3 bin/build -n -p -d . -r docker.io/manageiq -t jansa-3 -s
/build/manageiq-pods-jansa /build/manageiq-pods-jansa
Building manageiq-base: docker build --tag docker.io/manageiq/manageiq-base:jansa-3                     --pull                     --build-arg BUILD_REF=jansa-3                     --build-arg BUILD_ORG=ManageIQ                     --build-arg GIT_AUTH=                     --build-arg GIT_HOST=github.com                     --build-arg HOOKS_SCRIPT_URL=                     --build-arg CORE_REPO_NAME=manageiq                     --build-arg ARCH=x86_64                     --build-arg RPM_PREFIX=manageiq --no-cache --build-arg RELEASE_BUILD=true
unable to prepare context: path "manageiq-base" not found
Fryguy commented 3 years ago

@tjyang It looks like you are using the master version of the build script to build the jansa release. You should match the branches, so you should use the build script from the jansa branch.

Closing, but if you are still having issues, feel free to reopen.