From 0fcbb08e8435801360f256940f92dd0312ae1e04 Mon Sep 17 00:00:00 2001 From: Dmitry Samoylik Date: Thu, 16 Jan 2025 10:57:04 +0300 Subject: [PATCH] import dockle-0.4.15-1.el9 --- .dockle.metadata | 1 + .gitignore | 1 + SOURCES/build.sh | 8 ++++++++ SPECS/dockle.spec | 42 ++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 52 insertions(+) create mode 100644 .dockle.metadata create mode 100644 .gitignore create mode 100755 SOURCES/build.sh create mode 100644 SPECS/dockle.spec diff --git a/.dockle.metadata b/.dockle.metadata new file mode 100644 index 0000000..12f4802 --- /dev/null +++ b/.dockle.metadata @@ -0,0 +1 @@ +8c38385284b649b7ffed89c98982d903e4c9dd06 SOURCES/dockle-0.4.15.tar.xz diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..a0bf217 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/dockle-0.4.15.tar.xz diff --git a/SOURCES/build.sh b/SOURCES/build.sh new file mode 100755 index 0000000..3732ac7 --- /dev/null +++ b/SOURCES/build.sh @@ -0,0 +1,8 @@ +#!/bin/bash + +CDIR=$(pwd) + +export GOPATH=${CDIR}/mod +mkdir ./build + +GO111MODULE=on go build -o ${CDIR}/build/dockle cmd/dockle/main.go diff --git a/SPECS/dockle.spec b/SPECS/dockle.spec new file mode 100644 index 0000000..b2e613c --- /dev/null +++ b/SPECS/dockle.spec @@ -0,0 +1,42 @@ +Summary: A Security and Dockerfile checker for Containers +Name: dockle +Version: 0.4.15 +Release: 1%{?dist} + +Url: https://github.com/goodwithtech +License: GPLv2+ +Source0: %{name}-%{version}.tar.xz +Source1: build.sh + +Requires: bash + +BuildRequires: btrfs-progs-devel +BuildRequires: golang-bin + +%global debug_package %{nil} +%define _build_id_links none + +%description +A Security and Dockerfile checker for Containers + +%prep +%autosetup -p1 + +%build +cp -a %{SOURCE1} . +./build.sh + +%install +mkdir -p %{buildroot}%{_bindir} +cp -a ./build/dockle %{buildroot}%{_bindir} + +%files +%{_bindir}/dockle + +%changelog +* Thu Jan 16 2025 Dmitriy Samoylik - 0.4.15-1 +- Rebuilt for MSVSphere 10 + +* Thu Jan 16 2025 Dmitriy Samoylik - 0.4.15-1 +- Initial build +