Skip to content

Commit

Permalink
Create the initial version of the Penpot charm (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
weiiwang01 authored Aug 1, 2024
1 parent c6e6404 commit 5807899
Show file tree
Hide file tree
Showing 25 changed files with 7,095 additions and 133 deletions.
14 changes: 0 additions & 14 deletions .github/workflows/integration_test.yaml

This file was deleted.

2 changes: 2 additions & 0 deletions .github/workflows/publish_charm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,5 @@ jobs:
secrets: inherit
with:
channel: latest/edge
charmcraft-channel: latest/edge
integration-test-workflow-file: test.yaml
10 changes: 10 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,15 @@ jobs:
uses: canonical/operator-workflows/.github/workflows/test.yaml@main
secrets: inherit
with:
charmcraft-channel: latest/edge
self-hosted-runner: true
self-hosted-runner-label: "edge"
integration-tests:
uses: canonical/operator-workflows/.github/workflows/integration_test.yaml@main
secrets: inherit
with:
channel: 1.28-strict/stable
charmcraft-channel: latest/edge
juju-channel: 3.4/stable
self-hosted-runner: true
self-hosted-runner-label: "edge"
16 changes: 15 additions & 1 deletion .licenserc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,29 @@ header:
- '**'
paths-ignore:
- '.github/**'
- '**/.gitkeep'
- '**/*.cfg'
- '**/*.conf'
- '**/*.j2'
- '**/*.json'
- '**/*.md'
- '**/*.rule'
- '**/*.tmpl'
- '**/*.txt'
- '.codespellignore'
- '.dockerignore'
- '.flake8'
- '.jujuignore'
- '.gitignore'
- '.licenserc.yaml'
- '.trivyignore'
- '.woke.yaml'
- '.woke.yml'
- 'CODEOWNERS'
- 'icon.svg'
- 'LICENSE'
- 'trivy.yaml'
- 'pyproject.toml'
- 'trivy.yaml'
- 'zap_rules.tsv'
- 'lib/**'
comment: on-failure
15 changes: 15 additions & 0 deletions .trivyignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# penpot
CVE-2022-31159

Check notice on line 2 in .trivyignore

View workflow job for this annotation

GitHub Actions / load-tests / Scan Image (ghcr.io-canonical-penpot-4af170c9acd0f69cd500d541753c1b5227206c95-_2.1.1_amd64.tar)

CVE-2022-31159 not present anymore, can be safely removed.
CVE-2020-36518

Check notice on line 3 in .trivyignore

View workflow job for this annotation

GitHub Actions / load-tests / Scan Image (ghcr.io-canonical-penpot-4af170c9acd0f69cd500d541753c1b5227206c95-_2.1.1_amd64.tar)

CVE-2020-36518 not present anymore, can be safely removed.
CVE-2021-46877

Check notice on line 4 in .trivyignore

View workflow job for this annotation

GitHub Actions / load-tests / Scan Image (ghcr.io-canonical-penpot-4af170c9acd0f69cd500d541753c1b5227206c95-_2.1.1_amd64.tar)

CVE-2021-46877 not present anymore, can be safely removed.
CVE-2022-42003

Check notice on line 5 in .trivyignore

View workflow job for this annotation

GitHub Actions / load-tests / Scan Image (ghcr.io-canonical-penpot-4af170c9acd0f69cd500d541753c1b5227206c95-_2.1.1_amd64.tar)

CVE-2022-42003 not present anymore, can be safely removed.
CVE-2022-42004

Check notice on line 6 in .trivyignore

View workflow job for this annotation

GitHub Actions / load-tests / Scan Image (ghcr.io-canonical-penpot-4af170c9acd0f69cd500d541753c1b5227206c95-_2.1.1_amd64.tar)

CVE-2022-42004 not present anymore, can be safely removed.
CVE-2022-25647

Check notice on line 7 in .trivyignore

View workflow job for this annotation

GitHub Actions / load-tests / Scan Image (ghcr.io-canonical-penpot-4af170c9acd0f69cd500d541753c1b5227206c95-_2.1.1_amd64.tar)

CVE-2022-25647 not present anymore, can be safely removed.
CVE-2024-5971

Check notice on line 8 in .trivyignore

View workflow job for this annotation

GitHub Actions / load-tests / Scan Image (ghcr.io-canonical-penpot-4af170c9acd0f69cd500d541753c1b5227206c95-_2.1.1_amd64.tar)

CVE-2024-5971 not present anymore, can be safely removed.
CVE-2024-6162

Check notice on line 9 in .trivyignore

View workflow job for this annotation

GitHub Actions / load-tests / Scan Image (ghcr.io-canonical-penpot-4af170c9acd0f69cd500d541753c1b5227206c95-_2.1.1_amd64.tar)

CVE-2024-6162 not present anymore, can be safely removed.
CVE-2023-5685

Check notice on line 10 in .trivyignore

View workflow job for this annotation

GitHub Actions / load-tests / Scan Image (ghcr.io-canonical-penpot-4af170c9acd0f69cd500d541753c1b5227206c95-_2.1.1_amd64.tar)

CVE-2023-5685 not present anymore, can be safely removed.
CVE-2021-37714

Check notice on line 11 in .trivyignore

View workflow job for this annotation

GitHub Actions / load-tests / Scan Image (ghcr.io-canonical-penpot-4af170c9acd0f69cd500d541753c1b5227206c95-_2.1.1_amd64.tar)

CVE-2021-37714 not present anymore, can be safely removed.
CVE-2022-1471
CVE-2024-21634
# nodejs
CVE-2024-37890
2 changes: 2 additions & 0 deletions .woke.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
ignore_files:
- lib/charms/redis_k8s/v0/redis.py
85 changes: 74 additions & 11 deletions charmcraft.yaml
Original file line number Diff line number Diff line change
@@ -1,17 +1,6 @@
# Copyright 2024 Canonical Ltd.
# See LICENSE file for licensing details.

type: charm
bases:
- build-on:
- name: ubuntu
channel: "22.04"
architectures: [amd64]
run-on:
- name: ubuntu
channel: "24.04"
architectures: [amd64]

name: penpot
title: Penpot
description: |
Expand All @@ -24,3 +13,77 @@ links:
source: https://github.com/canonical/penpot-operator
contact:
- https://launchpad.net/~canonical-is-devops

config:
options:
smtp-from-address:
description: >-
The default "from" address penpot uses to send emails.
If unspecified, it is automatically derived from the SMTP integration, typically `<user>@<domain>`,
or `no-reply@<domain>` if the SMTP username is not provided in the SMTP integration.
For more detailed information on SMTP integration, visit https://charmhub.io/smtp-integrator/configuration.
type: string

actions:
create-profile:
description: Create a new penpot user.
params:
email:
type: string
fullname:
type: string

delete-profile:
description: Delete an existing penpot user.
params:
email:
type: string

peers:
penpot_peer:
interface: penpot_peer

requires:
postgresql:
interface: postgresql_client
limit: 1
redis:
interface: redis
limit: 1
s3:
interface: s3
limit: 1
ingress:
interface: ingress
limit: 1
smtp:
interface: smtp
limit: 1
optional: true

resources:
penpot-image:
type: oci-image
description: OCI image for penpot

containers:
penpot:
resource: penpot-image

type: charm
base: [email protected]
build-base: [email protected]
platforms:
amd64:

parts:
charm:
build-packages:
- cargo
- libffi-dev
- libssl-dev
- pkg-config
- rustc

assumes:
- juju >= 3.4
12 changes: 0 additions & 12 deletions config.yaml

This file was deleted.

Loading

0 comments on commit 5807899

Please sign in to comment.