docker run --rm -v "$(pwd)":/workspace -w /workspace --user root 10.1.8.87:5000/make_go_gcc:redhat9 bash -c "rm -rf bin/* && ./install-gen.sh && ./configure --enable-agent && make"

docker run --rm -v "$(pwd)":/workspace -v "$(pwd)":/root/rpmbuild/RPMS/x86_64/ -w /workspace --user root 10.1.8.87:5000/pkgdev:redhat9 bash -c "rpmbuild -ba --define 'version 7.2.0' --define 'jobarg_source /workspace' specs/rpm/jobarg_agent.spec"

docker run --rm -v "$(pwd)":/workspace -v "$(pwd)":/root/rpmbuild/RPMS/x86_64/ -w /workspace --user root 10.1.8.87:5000/pkgdev:redhat8 bash -c "rpmbuild -ba --define 'version 7.2.0' --define 'jobarg_source /workspace' specs/rpm/jobarg_agent.spec"

docker run --rm -v "$(pwd)":/workspace -v "$(pwd)":/root/rpmbuild/RPMS/x86_64/ -w /workspace --user root 10.1.8.87:5000/pkgdev:amz2023 bash -c "rpmbuild -ba --define 'version 7.2.0' --define 'jobarg_source /workspace' specs/rpm/jobarg_agent.spec"

// jobarg_agent
docker run --rm -v "$(pwd)":/workspace -w /workspace --user root 10.1.8.87:5000/make_go_gcc:redhat8 bash -c "rm -rf bin/* && ./install-gen.sh && ./configure --enable-agent && make" && \
docker run --rm -v "$(pwd)":/workspace -v "$(pwd)":/root/rpmbuild/RPMS/x86_64/ -w /workspace --user root 10.1.8.87:5000/pkgdev:redhat9 bash -c "rpmbuild -ba --define 'version 7.2.0' --define 'jobarg_source /workspace' specs/rpm/jobarg_agent.spec" && \
docker run --rm -v "$(pwd)":/workspace -v "$(pwd)":/root/rpmbuild/RPMS/x86_64/ -w /workspace --user root 10.1.8.87:5000/pkgdev:redhat8 bash -c "rpmbuild -ba --define 'version 7.2.0' --define 'jobarg_source /workspace' specs/rpm/jobarg_agent.spec" && \
docker run --rm -v "$(pwd)":/workspace -v "$(pwd)":/root/rpmbuild/RPMS/x86_64/ -w /workspace --user root 10.1.8.87:5000/pkgdev:amz2023 bash -c "rpmbuild -ba --define 'version 7.2.0' --define 'jobarg_source /workspace' specs/rpm/jobarg_agent.spec"

// jobarg_utils
docker run --rm -v "$(pwd)":/workspace -w /workspace --user root 10.1.8.87:5000/make_go_gcc:redhat8 bash -c "rm -rf bin/* && ./install-gen.sh && ./configure --enable-utils && make" && \
docker run --rm -v "$(pwd)":/workspace -v "$(pwd)":/root/rpmbuild/RPMS/x86_64/ -w /workspace --user root 10.1.8.87:5000/pkgdev:redhat9 bash -c "rpmbuild -ba --define 'version 7.2.0' --define 'jobarg_source /workspace' specs/rpm/jobarg_utils.spec" && \
docker run --rm -v "$(pwd)":/workspace -v "$(pwd)":/root/rpmbuild/RPMS/x86_64/ -w /workspace --user root 10.1.8.87:5000/pkgdev:redhat8 bash -c "rpmbuild -ba --define 'version 7.2.0' --define 'jobarg_source /workspace' specs/rpm/jobarg_utils.spec" && \
docker run --rm -v "$(pwd)":/workspace -v "$(pwd)":/root/rpmbuild/RPMS/x86_64/ -w /workspace --user root 10.1.8.87:5000/pkgdev:amz2023 bash -c "rpmbuild -ba --define 'version 7.2.0' --define 'jobarg_source /workspace' specs/rpm/jobarg_utils.spec"

// jobarg_server
docker run --rm -v "$(pwd)":/workspace -w /workspace --user root 10.1.8.87:5000/make_go_gcc:redhat8 bash -c "rm -rf bin/* && ./install-gen.sh && ./configure --enable-server && make" && \
docker run --rm -v "$(pwd)":/workspace -w /workspace --user root 10.1.8.87:5000/make_go_mysqldevel_9.5:redhat8 bash -c "./configure --with-mysql && make" && \
docker run --rm -v "$(pwd)":/workspace -w /workspace --user root 10.1.8.87:5000/make_go_mysqldevel:redhat8 bash -c "./configure --with-mysql && make" && \
docker run --rm -v "$(pwd)":/workspace -w /workspace --user root 10.1.8.87:5000/make_go_mariadbdevel:redhat8 bash -c "./configure --with-maria && make" && \
docker run --rm -v "$(pwd)":/workspace -w /workspace --user root 10.1.8.87:5000/make_go_libpqdevel:redhat8 bash -c "./configure --with-postgres && make" && \
docker run --rm -v "$(pwd)":/workspace -w /workspace --user root 10.1.8.87:5000/make_go_gcc:redhat8 bash -c "./configure --enable-server --with-postgres --with-maria --with-mysql --with-ignore" && \
docker run --rm -v "$(pwd)":/workspace -v "$(pwd)":/root/rpmbuild/RPMS/x86_64/ -w /workspace --user root 10.1.8.87:5000/pkgdev:redhat9 bash -c "rpmbuild -ba --define 'version 7.2.0' --define 'jobarg_source /workspace' specs/rpm/jobarg_server.spec" && \
docker run --rm -v "$(pwd)":/workspace -v "$(pwd)":/root/rpmbuild/RPMS/x86_64/ -w /workspace --user root 10.1.8.87:5000/pkgdev:redhat8 bash -c "rpmbuild -ba --define 'version 7.2.0' --define 'jobarg_source /workspace' specs/rpm/jobarg_server.spec" && \
docker run --rm -v "$(pwd)":/workspace -v "$(pwd)":/root/rpmbuild/RPMS/x86_64/ -w /workspace --user root 10.1.8.87:5000/pkgdev:amz2023 bash -c "rpmbuild -ba --define 'version 7.2.0' --define 'jobarg_source /workspace' specs/rpm/jobarg_server.spec"

// jobarg_manager
docker run --rm -v "$(pwd)":/workspace -w /workspace --user root 10.1.8.87:5000/make_npm_composer:redhat9 bash -c "rm -rf bin/* && ./install-gen.sh && ./configure --enable-manager && make" && \
docker run --rm -v "$(pwd)":/workspace -v "$(pwd)":/root/rpmbuild/RPMS/x86_64/ -w /workspace --user root 10.1.8.87:5000/pkgdev:redhat9 bash -c "rpmbuild -ba --define 'version 7.2.0' --define 'jobarg_source /workspace' specs/rpm/jobarg_manager.spec" && \
docker run --rm -v "$(pwd)":/workspace -v "$(pwd)":/root/rpmbuild/RPMS/x86_64/ -w /workspace --user root 10.1.8.87:5000/pkgdev:redhat8 bash -c "rpmbuild -ba --define 'version 7.2.0' --define 'jobarg_source /workspace' specs/rpm/jobarg_manager.spec" && \
docker run --rm -v "$(pwd)":/workspace -v "$(pwd)":/root/rpmbuild/RPMS/x86_64/ -w /workspace --user root 10.1.8.87:5000/pkgdev:amz2023 bash -c "rpmbuild -ba --define 'version 7.2.0' --define 'jobarg_source /workspace' specs/rpm/jobarg_manager.spec"