email
Some checks failed
K8S Fission Deployment / Deployment fission functions (push) Failing after 30s
Some checks failed
K8S Fission Deployment / Deployment fission functions (push) Failing after 30s
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"namespace": "default",
|
"namespace": "default",
|
||||||
"environments": {
|
"environments": {
|
||||||
"user-avatar-py": {
|
"user-email-py": {
|
||||||
"image": "ghcr.io/fission/python-env",
|
"image": "ghcr.io/fission/python-env",
|
||||||
"builder": "ghcr.io/fission/python-builder",
|
"builder": "ghcr.io/fission/python-builder",
|
||||||
"mincpu": 50,
|
"mincpu": 50,
|
||||||
@@ -17,16 +17,16 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"packages": {
|
"packages": {
|
||||||
"ailbl-user-avatar": {
|
"ailbl-user-email": {
|
||||||
"buildcmd": "./build.sh",
|
"buildcmd": "./build.sh",
|
||||||
"sourcearchive": "package.zip",
|
"sourcearchive": "package.zip",
|
||||||
"env": "user-avatar-py"
|
"env": "user-email-py"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"function_common": {
|
"function_common": {
|
||||||
"pkg": "ailbl-user-avatar",
|
"pkg": "ailbl-user-email",
|
||||||
"secrets": [
|
"secrets": [
|
||||||
"fission-ailbl-user-avatar-env"
|
"fission-ailbl-user-email-env"
|
||||||
],
|
],
|
||||||
"executor": {
|
"executor": {
|
||||||
"select": "newdeploy",
|
"select": "newdeploy",
|
||||||
@@ -46,7 +46,7 @@
|
|||||||
"maxmemory": 500
|
"maxmemory": 500
|
||||||
},
|
},
|
||||||
"secrets": {
|
"secrets": {
|
||||||
"fission-ailbl-user-avatar-env": {
|
"fission-ailbl-user-email-env": {
|
||||||
"literals": [
|
"literals": [
|
||||||
"PG_HOST=160.30.113.113",
|
"PG_HOST=160.30.113.113",
|
||||||
"PG_PORT=45432",
|
"PG_PORT=45432",
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"namespace": "default",
|
"namespace": "default",
|
||||||
"secrets": {
|
"secrets": {
|
||||||
"fission-ailbl-user-avatar-env": {
|
"fission-ailbl-user-email-env": {
|
||||||
"literals": [
|
"literals": [
|
||||||
"PG_HOST=160.30.113.113",
|
"PG_HOST=160.30.113.113",
|
||||||
"PG_PORT=45432",
|
"PG_PORT=45432",
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"namespace": "default",
|
"namespace": "default",
|
||||||
"secrets": {
|
"secrets": {
|
||||||
"fission-ailbl-user-avatar-env": {
|
"fission-ailbl-user-email-env": {
|
||||||
"literals": [
|
"literals": [
|
||||||
"S3_BUCKET=ailbl",
|
"S3_BUCKET=ailbl",
|
||||||
"S3_ENDPOINT_URL=http://160.30.113.113:9000",
|
"S3_ENDPOINT_URL=http://160.30.113.113:9000",
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"namespace": "default",
|
"namespace": "default",
|
||||||
"secrets": {
|
"secrets": {
|
||||||
"fission-ailbl-user-avatar-env": {
|
"fission-ailbl-user-email-env": {
|
||||||
"literals": [
|
"literals": [
|
||||||
"PG_HOST=160.30.113.113",
|
"PG_HOST=160.30.113.113",
|
||||||
"PG_PORT=45432",
|
"PG_PORT=45432",
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"namespace": "default",
|
"namespace": "default",
|
||||||
"secrets": {
|
"secrets": {
|
||||||
"fission-ailbl-user-avatar-env": {
|
"fission-ailbl-user-email-env": {
|
||||||
"literals": [
|
"literals": [
|
||||||
"PG_HOST=160.30.113.113",
|
"PG_HOST=160.30.113.113",
|
||||||
"PG_PORT=45432",
|
"PG_PORT=45432",
|
||||||
|
|||||||
@@ -1,10 +0,0 @@
|
|||||||
# Load từ .env và cung cấp cho app
|
|
||||||
import os
|
|
||||||
|
|
||||||
class Config:
|
|
||||||
ALLOWED_EXTENSIONS = {'png', 'jpg', 'jpeg', 'gif', 'webp'}
|
|
||||||
MAX_FILE_SIZE = 5 * 1024 * 1024 # 5MB
|
|
||||||
|
|
||||||
# vì làm microservice nên không cần dùng biến môi trường nữa, khi mà dùng thì khai báo ở trên đầu luôn
|
|
||||||
# Nó khác với mô hình bình thường là config.py chỉ để khai báo cấu hình tĩnh thôi
|
|
||||||
# ALLOWED_IMAGE_TYPES = {"image/jpeg", "image/png", "image/gif", "image/webp"}
|
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
Flask==3.1.0
|
# Flask==3.1.0
|
||||||
psycopg2-binary==2.9.10
|
# psycopg2-binary==2.9.10
|
||||||
pydantic==2.11.3
|
# pydantic==2.11.3
|
||||||
minio==7.2.5
|
# minio==7.2.5
|
||||||
Pillow==10.4.0
|
# Pillow==10.4.0
|
||||||
boto3==1.35.70
|
# boto3==1.35.70
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
gitdb==4.0.11
|
|
||||||
GitPython==3.1.41
|
|
||||||
smmap==5.0.1
|
|
||||||
Flask==2.1.1
|
|
||||||
requests==2.32.2
|
|
||||||
Reference in New Issue
Block a user