generated from canonical/is-charms-template-repo
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathrockcraft.yaml
44 lines (40 loc) · 1.33 KB
/
rockcraft.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# Copyright 2025 Canonical Ltd.
# See LICENSE file for licensing details.
name: httprequest-lego-provider
base: [email protected]
version: "0.1"
summary: A Django application implementing HTTPRequest Lego Provider
description: |
A Django application implementing [HTTPRequest Lego Provider]
(https://go-acme.github.io/lego/dns/httpreq/)
license: Apache-2.0
platforms:
amd64:
# To ensure the django-framework extension works properly, your Django application
# should have an `wsgi.py` file with an `application` object as the WSGI entrypoint.
extensions:
- django-framework
services:
django:
command: "/bin/python3 -m gunicorn -c /django/gunicorn.conf.py app.wsgi:application"
parts:
# Exclude pyproject.yaml so that the python plugin doesn't handle this project as a package
django-framework/dependencies:
stage-packages:
- git
- openssh-client
override-build: |
rm -f pyproject.toml
craftctl default
django-framework/install-app:
plugin: dump
source: .
organize:
'*': django/app/
.*: django/app/
prime:
- "django/app/httprequest_lego_provider"
- "django/app/app"
- "django/app/LICENSE"
- "django/app/manage.py"
- "django/app/requirements.txt"