Repository navigation
Expand file tree
/
Copy pathrockcraft.yaml
More file actions
74 lines (72 loc) · 2.77 KB
/
Copy pathrockcraft.yaml
File metadata and controls
74 lines (72 loc) · 2.77 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
name: ubuntu-com
# NOTE: the "pack-rock" job in .github/workflows/pack.yaml runs
# `rockcraft pack --destructive-mode` directly on the GitHub Actions runner
# hence it derives the `base:` field below (see the "resolve-base" job in
# pack.yaml)
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/"
fetch-mirrors-rss:
# Fetches the Ubuntu mirror list, used to build the mirror list served
plugin: dump
source: http://launchpad.net/ubuntu/+cdmirrors-rss
source-type: file
organize:
"+cdmirrors-rss": flask/app/etc/ubuntu-mirrors-rss.xml
flask-framework/install-app:
# The built JS/CSS assets are provided exclusively by the `build-ui` part
# (which runs `yarn run build` inside the container). Exclude them here so
# we don't stage stale, locally-built copies that conflict with build-ui.
stage:
- -flask/app/static/js/dist
- -flask/app/static/css
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/robots.txt
- 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
- flask/app/dynamic-sitemaps.yaml
- flask/app/products.yaml
- flask/app/announcement-bar.yaml