rdkcentral / BundleGen

A command-line tool to convert OCI Images into extended OCI Bundles for use with the Dobby container manager.
Apache License 2.0
5 stars 32 forks source link

Vagrantfile currently fails on provisioning #114

Open paperclipstudio opened 9 months ago

paperclipstudio commented 9 months ago

When I run vagrant up I get the following errors and the provisioning doesn't complete.

    ==> bundlegen: Running provisioner: shell...
    bundlegen: Running: inline script
    bundlegen: GOOS=linux GOARCH=amd64 go build  -tags "" -buildvcs=false -buildmode=pie -ldflags "-s -w -X github.com/opencontainers/umoci.gitCommit="c6c4428ce046b92a541f6e0c89b9e00f758d83bb" -X github.com/opencontainers/umoci.version=0.4.7+dev" -o ./umoci github.com/opencontainers/umoci/cmd/umoci
    bundlegen: flag provided but not defined: -buildvcs
    bundlegen: usage: go build [-o output] [-i] [build flags] [packages]
    bundlegen: Run 'go help build' for details.
    bundlegen: make: *** [Makefile:97: umoci] Error 2
    bundlegen: GOOS=linux GOARCH=amd64 go build  -tags "" -buildvcs=false -buildmode=pie -ldflags "-s -w -X github.com/opencontainers/umoci.gitCommit="c6c4428ce046b92a541f6e0c89b9e00f758d83bb" -X github.com/opencontainers/umoci.version=0.4.7+dev" -o ./umoci github.com/opencontainers/umoci/cmd/umoci
    bundlegen: flag provided but not defined: -buildvcs
    bundlegen: usage: go build [-o output] [-i] [build flags] [packages]
    bundlegen: Run 'go help build' for details.
    bundlegen: make: *** [Makefile:97: umoci] Error 2
    bundlegen: Cloning into 'bundlegen'...
    bundlegen: Bad owner or permissions on /home/vagrant/.ssh/config
    bundlegen: fatal: Could not read from remote repository.
    bundlegen:
    bundlegen: Please make sure you have the correct access rights
    bundlegen: and the repository exists.
    bundlegen: /tmp/vagrant-shell: line 15: cd: bundlegen: No such file or directory
    bundlegen: ERROR: Could not open requirements file: [Errno 2] No such file or directory: 'requirements.txt'
    bundlegen: WARNING: You are using pip version 19.3.1; however, version 23.3.1 is available.
    bundlegen: You should consider upgrading via the 'pip install --upgrade pip' command.
    bundlegen: ERROR: File "setup.py" not found. Directory cannot be installed in editable mode: /home/vagrant
    bundlegen: WARNING: You are using pip version 19.3.1; however, version 23.3.1 is available.
    bundlegen: You should consider upgrading via the 'pip install --upgrade pip' command.
The SSH command responded with a non-zero exit status. Vagrant
assumes that this means the command failed. The output for this command
should be in the log above. Please read the output to determine what
went wrong.

If I get time I will have a look into fixing this.

TeknoVenus commented 9 months ago

Yes the vagrantfile is very old and not surprised it's broken. We should update a more recent version of Fedora in the process.