-
Notifications
You must be signed in to change notification settings - Fork 30
/
Copy pathmelange.yaml
37 lines (36 loc) · 1.09 KB
/
melange.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
package:
name: giropops-senhas
version: 0.1
description: Password Generator by LinuxTips
dependencies:
runtime:
- python3
environment:
contents:
keyring:
- ./melange.rsa.pub
repositories:
- https://dl-cdn.alpinelinux.org/alpine/edge/main
- https://dl-cdn.alpinelinux.org/alpine/edge/community
packages:
- alpine-baselayout-data
- ca-certificates-bundle
- busybox
- gcc
- musl-dev
- python3
- python3-dev
- py3-pip
- py3-virtualenv
pipeline:
- name: Build Python application
runs: |
EXECDIR="${{targets.destdir}}/usr/bin"
WEBAPPDIR="${{targets.destdir}}/usr/share/webapps/giropops-senhas"
mkdir -p "${EXECDIR}" "${WEBAPPDIR}"
echo "#!/usr/share/webapps/giropops-senhas/venv/bin/python3" > "${EXECDIR}/giropops-senhas"
cat app.py >> "${EXECDIR}/giropops-senhas"
chmod +x "${EXECDIR}/giropops-senhas"
virtualenv "${WEBAPPDIR}/venv"
cp -r templates/ static/ ${WEBAPPDIR}/
sh -c "source '${WEBAPPDIR}/venv/bin/activate' && pip install -r requirements.txt"