Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
defensivedepth committed Oct 17, 2023
1 parent 8dfdf53 commit f97ca60
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
6 changes: 3 additions & 3 deletions so-elastic-fleet-package-registry/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
ARG VERSION=8.8.2
ARG VERSION

FROM docker.elastic.co/package-registry/distribution:$VERSION as original_image

# Remove unsupported packages
COPY scripts /scripts

RUN chmod +x /scripts/supported-integrations.sh && bash /scripts/supported-integrations.sh
RUN chmod +x /scripts/supported-integrations.sh && bash /scripts/supported-integrations.sh && rm -rf /scripts

# Cleanup unneeded packages, keeping the two most recent versons of each one
# Except for endpoint packages, keep all versions
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
#/bin/bash
#!/bin/bash
#
# Copyright Security Onion Solutions LLC and/or licensed to Security Onion Solutions LLC under one
# or more contributor license agreements. Licensed under the Elastic License 2.0 as shown at
# https://securityonion.net/license; you may not use this file except in compliance with the
# Elastic License 2.0.

# This script removes unsupported packages from our self-hosted Elastic Package Repo container image.
# It is meant to be used during the image build process.

cd /packages/package-storage/
for file in *
Expand Down

0 comments on commit f97ca60

Please sign in to comment.