Skip to content

Commit

Permalink
feat: in progress - added packages and script to enable running updat…
Browse files Browse the repository at this point in the history
…e-ca-certificates
  • Loading branch information
bencekov committed Oct 24, 2023
1 parent f997a0d commit ab94891
Showing 1 changed file with 25 additions and 3 deletions.
28 changes: 25 additions & 3 deletions rockcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,32 @@ parts:

certificates:
plugin: nil
stage-packages:
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
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
sed:
plugin: nil
stage-packages:
- sed

find:
plugin: nil
stage-packages:
- findutils
prime:
- usr/bin/find

kratos:
plugin: go
Expand All @@ -58,5 +82,3 @@ parts:
go mod download
go build -ldflags="${go_linker_flags}" -o ${CRAFT_PART_INSTALL}/bin/kratos
stage-packages:
- ca-certificates_data

0 comments on commit ab94891

Please sign in to comment.