Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:mslacken:ml
milvus
create-vendor.sh
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File create-vendor.sh of Package milvus
#!/bin/bash milvusvers=$(awk '/Version:/ {print $2}' *spec) cat <<EOF Creates the vendor.tar.xz for milvus-$milvusvers. Needs podman to be installed. EOF read -t 10 -p "Are you sure you want to continue? <y/N>" prompt if [[ $prompt =~ [yY](es)* ]] ; then echo "Starting to create vendoring" else exit 0 fi create_vendor=`mktemp create_vendor-XXXXXXXX` cat > $create_vendor <<EOF FROM opensuse/tumbleweed:latest COPY milvus-${milvusvers}.tar milvus-proto-${milvusvers}.tar.gz /root RUN zypper ar https://download.opensuse.org/repositories/devel:/languages:/go/openSUSE_Factory/devel:languages:go.repo RUN cat > devel-go-key <<EOFKEY -----BEGIN PGP PUBLIC KEY BLOCK----- Version: GnuPG v1.4.5 (GNU/Linux) mQGiBEyvJq8RBAD64FtKbU3VFsZ4PAzcSi9rETc1qXZLVQYtrE38niriIJUuT/tC kxGjkduD7ozP6rxL+M8fk9UdbbmzhHhXzQT2blyYy2iwpZP5+AFeQawz+oyMRVze x6IY5qO31TiRu+aEBptk6nco4DULlKABlvtjKI+gJ4buJm+TumyrPaxe9wCgpFwl O0fEjpOfQd+6Du0sCnPX7+8D/3xYVj9q5ILmrJ9zehBKjRYEcaP0rZVqudH51FUS I0LQNHsJdzKLzhT+Zj7TJU4KnCN4sX7amfYL3GT9qyZEBDx2alubvEsI36wtNq0i ewU4XmyZ+Rd7Q4mAPNoBGe5DsUA8wn/7iHGg9aJHu+GXvH7T3DVoUxW5W2KqPw+h jzqGBACWGuuCefa683uf6aKqpTS3JB+01BDPf+sG9qJ+k7xcJOsEiXIe1X5vH9ov kEvTM12kzY7SGwlsFsTDT1xioDl62g5nPlZMXErUBVnjoMtjl9bDwUPJY/vP1S9M VaONBMoJEON3HRui9jhdEK25LTdrcFlFpRzJI3AgdXwy8aQyiLRGZGV2ZWw6bGFu Z3VhZ2VzOmdvIE9CUyBQcm9qZWN0IDxkZXZlbDpsYW5ndWFnZXM6Z29AYnVpbGQu b3BlbnN1c2Uub3JnPohmBBMRAgAmBQJksH9NAhsDBQkcIAieBgsJCAcDAgQVAggD BBYCAwECHgECF4AACgkQr0z+TTB9e/n+SQCeJRSEgoj8dwpg74fPkIu9wO/wPNgA ninUqWP5SgR/k5r93y/NknUkAYRriEYEExECAAYFAkyvJq8ACgkQOzARt2udZSOg qQCeOba7kjk7CI+64GOkhhTGSdjnjdQAn2IC5tx+PW38XKwl3Jr5YVp0RyR0 =j1yn -----END PGP PUBLIC KEY BLOCK----- EOFKEY RUN rpm -import devel-go-key && \ zypper install -y go protoc-gen-go protoc-gen-go-grpc which protobuf-devel RUN <<EOFVEND cd /root tar xf milvus-${milvusvers}.tar tar xzf milvus-proto-${milvusvers}.tar.gz mkdir -p /root/milvus-${milvusvers}/cmake_build/bin/ ln -s $(which protoc) /root/milvus-${milvusvers}/cmake_build/bin/ mkdir -p /root/milvus-${milvusvers}/cmake_build/thirdparty mv -v milvus-proto-${milvusvers} /root/milvus-${milvusvers}/cmake_build/thirdparty/milvus-proto cd /root/milvus-${milvusvers} ./scripts/generate_proto.sh sed -i 's@google.golang.org/grpc v1.59.0@google.golang.org/grpc v1.66.2@' go.mod sed -i 's@github.com/bytedance/sonic v1.9.1@github.com/bytedance/sonic v1.12.1@' go.mod go mod tidy go mod vendor tar cf vendor.tar go.mod go.sum vendor/ EOFVEND EOF podman build -f $create_vendor -t create_vendor id=$(podman create create_vendor) rm vendor.tar.xz podman cp $id:/root/milvus-${milvusvers}/vendor.tar -> ./vendor.tar xz vendor.tar podman rm -v $id podman image rm create_vendor rm $create_vendor
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor