Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IAM 592 #22

Closed
wants to merge 3 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 23 additions & 3 deletions rockcraft.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: oathkeeper
base: bare
build-base: ubuntu:22.04
build-base: ubuntu@22.04
version: "0.40.6"
summary: Ory Oathkeeper
description: |
Expand All @@ -17,11 +17,31 @@ services:
startup: enabled

parts:
certificates:
certificates-bins:
plugin: nil
stage-packages:
- coreutils_bins
- openssl_bins
- base-files_tmp
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
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
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 -R 777 $CRAFT_PART_INSTALL/etc/ssl/certs
stage-packages:
- dash
- sed
- findutils
oathkeeper:
plugin: go
build-snaps:
Expand Down