If this builde.sh script replicates the docker instructions “only without docker”, then it’s clear why they don’t work. The script contains these lines:
# Environment for the LineageOS branches name
# See https://github.com/LineageOS/android_vendor_cm/branches for possible options
export BRANCH_NAME=‘v1-oreo’
The ‘v1-oreo’ branch doesn’t exist in that repo.