Closed rememberSoftwares closed 3 months ago
$ make docker-preview docker run -v /home/XXXX/website:/site -p 1313:1313 -it fluxcd/website:hugo-support \ make \"MAKEFLAGS=\" serve HUGO_BIND_ADDRESS=0.0.0.0 GITHUB_TOKEN= BRANCH=main hack/gen-content.py hack/import-calendar.py PATH=/site/bin:/usr/local/go/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin BRANCH=main hack/import-flux2-assets.sh + COMPONENTS_DIR=content/en/flux/components + FLUX_DIR=content/en/flux/cmd + '[' -z '' ']' + GITHUB_USER=fluxcdbot ++ command -v jq + '[' '!' /usr/bin/jq ']' + setup_verify_os + '[' -z '' ']' ++ uname + OS=Linux + case ${OS} in + OS=linux + setup_verify_arch + '[' -z '' ']' ++ uname -m + ARCH=x86_64 + case ${ARCH} in + ARCH=amd64 ++ mktemp -d + TMP=/tmp/tmp.VnmQuHFTw8 + TMP_BIN=/tmp/tmp.VnmQuHFTw8/flux.tar.gz + '[' -z main ']' + [[ main =~ ^pull/[[:digit:]]*/head$ ]] + VERSION_FLUX= ++ curl -u fluxcdbot: --retry 3 -sSfL https://api.github.com/repos/fluxcd/flux2/releases ++ jq '.[].tag_name' -r + for tag in $(curl -u "$GITHUB_USER:$GITHUB_TOKEN" --retry 3 -sSfL "https://api.github.com/repos/fluxcd/flux2/releases" | jq .[].tag_name -r) + '[' main = main ']' + VERSION_FLUX=2.3.0 + break + '[' -z 2.3.0 ']' + curl -u fluxcdbot: -o /tmp/tmp.VnmQuHFTw8/flux.tar.gz --retry 3 -sSfL https://github.com/fluxcd/flux2/releases/download/v2.3.0/flux_2.3.0_linux_amd64.tar.gz + tar xfz /tmp/tmp.VnmQuHFTw8/flux.tar.gz -C /tmp/tmp.VnmQuHFTw8 + rm -rf 'content/en/flux/cmd/*' + /tmp/tmp.VnmQuHFTw8/flux docgen --path content/en/flux/cmd + rm -rf /tmp/tmp.VnmQuHFTw8 + gen_ctrl_docs v2.3.0 source-controller + flux_version=v2.3.0 + ctrl=source-controller + ctrl_short=source + ctrl_out=source + api_out=api + '[' source = image-reflector ']' + '[' source = image-automation ']' ++ curl -sL https://raw.githubusercontent.com/fluxcd/flux2/v2.3.0/manifests/bases/source-controller/kustomization.yaml ++ yq '.resources[]|select(. == "*crds.yaml*")' hack/import-flux2-assets.sh: line 132: yq: command not found + ks_url= make: *** [Makefile:42: gen-content] Error 127 make: *** [Makefile:80: docker-serve] Error 2
To fix that, add apk add yq at the top of hack/import-flux2-assets.sh. If you add it to the makefile it will crash earlier for some reason. So use the shell script instead... With this fix I got it running.
apk add yq
hack/import-flux2-assets.sh
HF (or not...)
To fix that, add
apk add yq
at the top ofhack/import-flux2-assets.sh
. If you add it to the makefile it will crash earlier for some reason. So use the shell script instead...With this fix I got it running.
HF (or not...)