Skip to content

Commit

Permalink
Fix builds
Browse files Browse the repository at this point in the history
  • Loading branch information
jc21 committed Oct 2, 2024
1 parent 16f564c commit 1ec7048
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# [docker-slim](https://github.com/docker-slim/docker-slim)
# [docker-slim](https://github.com/slimtoolkit/slim)

Builds for Enterprise Linux hosted on [yum.jc21.com](https://yum.jc21.com)

13 changes: 6 additions & 7 deletions SPECS/docker-slim.spec
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Group: Applications/System
License: APACHEv2.0
URL: https://github.com/docker-slim/docker-slim
Source: https://github.com/%{gh_user}/%{gh_repo}/archive/refs/tags/%{version}.tar.gz
BuildRequires: golang >= 1.13, make, which
BuildRequires: golang >= 1.21, make, which

%description
Don't change anything in your Docker container image and minify
Expand All @@ -34,20 +34,19 @@ reducing the attack surface for your container.
%setup -q -n %{gh_repo}-%{version}

%build
go build -o bin/docker-slim cmd/slim/main.go
go build -o bin/docker-slim-sensor cmd/slim-sensor/main.go
make build

%install
install -d -m 755 $RPM_BUILD_ROOT%{_bindir}
install -m 0755 bin/%{name} $RPM_BUILD_ROOT%{_bindir}
install -m 0755 bin/%{name}-sensor $RPM_BUILD_ROOT%{_bindir}
install -m 0755 dist_linux/docker-slim $RPM_BUILD_ROOT%{_bindir}
install -m 0755 dist_linux/slim-sensor $RPM_BUILD_ROOT%{_bindir}

%clean
rm -rf %{buildroot}

%files
%{_bindir}/%{name}
%{_bindir}/%{name}-sensor
%{_bindir}/docker-slim
%{_bindir}/slim-sensor

%changelog
* Tue Jun 25 2024 Jamie Curnow <[email protected]> 1.40.11-1
Expand Down

0 comments on commit 1ec7048

Please sign in to comment.