forked from canonical/ubuntu.com
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrockcraft.yaml
More file actions
53 lines (51 loc) · 1.85 KB
/
rockcraft.yaml
File metadata and controls
53 lines (51 loc) · 1.85 KB
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
45
46
47
48
49
50
51
52
53
name: ubuntu-com
base: ubuntu@22.04
version: "0.1"
summary: Ubuntu website https://ubuntu.com
description: |
Ubuntu.com is the official website of Ubuntu, a popular Linux distribution.
It provides information about Ubuntu, its features, and how to download and use it.
It also serves as a platform for the Ubuntu community to share news, updates, and resources related to Ubuntu.
The website is built using Flask, a lightweight web framework for Python, and is designed to
be fast, secure, and easy to navigate. It includes various sections such as documentation,
support, community, and more, making it a comprehensive resource for Ubuntu users and enthusiasts.
platforms:
amd64:
extensions:
- flask-framework
parts:
build-ui:
plugin: nil
source: .
source-type: local
build-snaps:
- node/22/stable
override-build: |
set -eux
# install dependencies
npm install -g yarn
yarn install
# build the UI
yarn run build
mkdir -p "$CRAFT_PART_INSTALL/flask/app"
cp -r static "$CRAFT_PART_INSTALL/flask/app/"
flask-framework/install-app:
prime:
# by default, only the files in app/, templates/, static/, migrate, migrate.sh,
# migrate.py and app.py are copied into the image. You can modify the list
# below to override the default list and include or exclude specific
# files/directories in your project.
# note: prefix each entry with "flask/app/" followed by the local path.
- flask/app/.env
- flask/app/app.py
- flask/app/webapp
- flask/app/templates
- flask/app/static
- flask/app/scripts
- flask/app/redirects.yaml
- flask/app/deleted.yaml
- flask/app/releases.yaml
- flask/app/navigation.yaml
- flask/app/secondary-navigation.yaml
- flask/app/appliances.yaml
- flask/app/subscriptions.yaml