From b13129a4063dc81a3ec3720609cf3d6b810a2f99 Mon Sep 17 00:00:00 2001 From: Nikos Date: Thu, 11 Jul 2024 16:08:00 +0300 Subject: [PATCH] fix: remove certificates from image --- rockcraft.yaml | 39 --------------------------------------- 1 file changed, 39 deletions(-) diff --git a/rockcraft.yaml b/rockcraft.yaml index 7a8ead04..45f1ed36 100644 --- a/rockcraft.yaml +++ b/rockcraft.yaml @@ -23,51 +23,12 @@ parts: # This is needed to pipe the stdout/stderr to a file for log forwarding and to update certificates - coreutils - openssl: - plugin: nil - stage-packages: - # This is needed to update certificates - - openssl - shell: plugin: nil stage-packages: # This is needed to pipe the stdout/stderr to a file for log forwarding - dash - certificates: - plugin: nil - build-packages: - - ca-certificates - override-build: | - mkdir -p $CRAFT_PART_INSTALL/etc/ssl/certs - mkdir -p $CRAFT_PART_INSTALL/usr/share/ca-certificates/mozilla/ - mkdir -p $CRAFT_PART_INSTALL/usr/sbin - mkdir -p $CRAFT_PART_INSTALL/tmp - - touch $CRAFT_PART_INSTALL/etc/ssl/certs/ca-certificates.crt - touch $CRAFT_PART_INSTALL/etc/ca-certificates.conf - for cert in /usr/share/ca-certificates/mozilla/* ; do - echo "mozilla/$(basename $cert)" >> $CRAFT_PART_INSTALL/etc/ca-certificates.conf - cat "$cert" >> $CRAFT_PART_INSTALL/etc/ssl/certs/ca-certificates.crt - done - cp /usr/share/ca-certificates/mozilla/* $CRAFT_PART_INSTALL/usr/share/ca-certificates/mozilla - cp /usr/sbin/update-ca-certificates $CRAFT_PART_INSTALL/usr/sbin/update-ca-certificates - chmod 777 $CRAFT_PART_INSTALL/tmp - chmod -R 777 $CRAFT_PART_INSTALL/etc/ssl/certs - - sed: - plugin: nil - stage-packages: - - sed - - find: - plugin: nil - stage-packages: - - findutils - prime: - - usr/bin/find - kratos: plugin: go build-snaps: