Giter Site home page Giter Site logo

Comments (5)

anycodes avatar anycodes commented on July 17, 2024

云端构建会在五一回来之后尽快支持的。

关于你说的pip的话阿里云的镜像压根找不到supabase这个包,五一回来之后,我们会升级build能力,会支持自定义源

from start-web-framework.

wanghaisheng avatar wanghaisheng commented on July 17, 2024
# ------------------------------------
#   If you need English case, you can refer to [s_en.yaml] file
# ------------------------------------
#   欢迎您使用阿里云函数计算 FC 组件进行项目开发
#   组件仓库地址:https://github.com/devsapp/fc
#   组件帮助文档:https://www.serverless-devs.com/fc/readme
#   Yaml参考文档:https://www.serverless-devs.com/fc/yaml/readme
#   关于:
#      - Serverless Devs和FC组件的关系、如何声明/部署多个函数、超过50M的代码包如何部署
#      - 关于.fcignore使用方法、工具中.s目录是做什么、函数进行build操作之后如何处理build的产物
#   等问题,可以参考文档:https://www.serverless-devs.com/fc/tips
#   关于如何做CICD等问题,可以参考:https://www.serverless-devs.com/serverless-devs/cicd
#   关于如何进行环境划分等问题,可以参考:https://www.serverless-devs.com/serverless-devs/extend
#   更多函数计算案例,可参考:https://github.com/devsapp/awesome/
#   有问题快来钉钉群问一下吧:33947367
# ------------------------------------
edition: 1.0.0
name: web-framework-app
# access 是当前应用所需要的密钥信息配置:
# 密钥配置可以参考:https://www.serverless-devs.com/serverless-devs/command/config
# 密钥使用顺序可以参考:https://www.serverless-devs.com/serverless-devs/tool#密钥使用顺序与规范
access: "{{ access }}"

vars: # 全局变量
  region: "{{ region }}"
  service:
    name: "{{ serviceName }}"
    description: 'Serverless Devs Web Framework Service'

services:
  framework: # 业务名称/模块名称
    # 如果只想针对 framework 下面的业务进行相关操作,可以在命令行中加上 framework,例如:
    # 只对framework进行构建:s framework build
    # 如果不带有 framework ,而是直接执行 s build,工具则会对当前Yaml下,所有和 framework 平级的业务模块(如有其他平级的模块,例如下面注释的next-function),按照一定顺序进行 build 操作
    component: fc # 组件名称,Serverless Devs 工具本身类似于一种游戏机,不具备具体的业务能力,组件类似于游戏卡,用户通过向游戏机中插入不同的游戏卡实现不同的功能,即通过使用不同的组件实现不同的具体业务能力
    actions:       # 自定义执行逻辑,关于actions 的使用,可以参考:https://www.serverless-devs.com/serverless-devs/yaml#行为描述
      pre-deploy: # 在deploy之前运行
        - run: pip3 install -i https://pypi.tuna.tsinghua.edu.cn/simple -r requirements.txt  # 要执行的系统命令,类似于一种钩子的形式
          path: ./                                    # 执行系统命令/钩子的路径
#        - component: fc build --use-docker               # 要运行的组件,格式为【component: 组件名 命令 参数】(可以通过s cli registry search --type Component 获取组件列表)
#        - plugin: myplugin                               # 与运行的插件 (可以通过s cli registry search --type Plugin 获取组件列表)
#          args:                                          # 插件的参数信息
#            testKey: testValue
#      post-deploy: # 在deploy之后运行
#        - component: fc versions publish # 要运行的命令行
    props: # 组件的属性值
      region: ${vars.region}         # 关于变量的使用方法,可以参考:https://www.serverless-devs.com/serverless-devs/yaml#变量赋值
      service: ${vars.service}
      function:
        name: "{{ functionName }}"
        description: 'Serverless Devs Web Framework Function'
        codeUri: './'
        runtime: custom
        timeout: 60
      triggers:
        - name: httpTrigger
          type: http
          config:
            authType: anonymous
            methods:
              - GET
      customDomains:
        - domainName: auto
          protocol: HTTP
          routeConfigs:
            - path: '/*'
#  next-function: # 第二个函数的案例,仅供参考
#    # 如果在当前项目下执行 s deploy,会同时部署模块:
#    #   helloworld:服务hello-world-service,函数cpp-event-function
#    #   next-function:服务hello-world-service,函数next-function-example
#    # 如果想单独部署当前服务与函数,可以执行 s + 模块名/业务名 + deploy,例如:s next-function deploy
#    # 如果想单独部署当前函数,可以执行 s + 模块名/业务名 + deploy function,例如:s next-function deploy function
#    # 更多命令可参考:https://www.serverless-devs.com/fc/readme#文档相关
#    component: fc
#    props:
#      region: ${vars.region}
#      service: ${vars.service} # 应用整体的服务配置
#      function: # 定义一个新的函数
#        name: next-function-example
#        description: 'hello world by serverless devs'

@anycodes 编译老是卡住 有啥解决办法吗 还是说我yml写的不对 没啥可改的地方 就是源码路径改一下

# ------------------------------------
#   If you want to use this file directly, please add [-t/--template] parameter, for example [s deploy -t s_en.yaml]
# ------------------------------------
#   Welcome to use Alibaba Cloud Function Compute FC components for project development
#   Component warehouse address: https://github.com/devsapp/fc
#   Component help documentation: https://www.serverless-devs.com/fc/readme
#   Yaml reference documentation: https://www.serverless-devs.com/fc/yaml/readme
#   About:
#     - The relationship between Serverless Devs and FC components, how to declare/deploy multiple functions, how to deploy code packages over 50M
#     - About the usage of .fcignore, what the .s directory in the tool does, and how to process the build product after the function performs the build operation
#   and other issues, you can refer to the documentation: https://www.serverless-devs.com/fc/tips
#   For questions about how to do CICD, please refer to: https://www.serverless-devs.com/serverless-devs/cicd
#   For issues such as how to divide the environment, please refer to: https://www.serverless-devs.com/serverless-devs/extend
#   For more function calculation cases, please refer to: https://github.com/devsapp/awesome/blob/main/README_en.md
#   If you have any questions, please come to the DingTalk group and ask: 33947367
# ------------------------------------
edition: 1.0.0
name: tiktoka-downloader-app
# access is the key information configuration required by the current application:
# Key configuration can refer to: https://www.serverless-devs.com/serverless-devs/command/config
# For the order of key usage, please refer to: https://www.serverless-devs.com/serverless-devs/tool#Key usage order and specification
# access: "{{ access }}"

vars: # global variables
  region: cn-hangzhou
  service:
    name: "{{ serviceName }}"
    description: 'hello world by serverless devs'

services:
  helloworld: # business name/module name
    # If you only want to perform related operations on the business below helloworld, you can add helloworld to the command line, for example:
    # Build only helloworld: s helloworld build
    # If s build is directly executed without helloworld, the tool will perform the same operation on all business modules at the same level as helloworld under the current Yaml (if there are other level modules, such as the next-function commented below), according to certain Sequential build operations
    component: fc    # The name of the component. The Serverless Devs tool itself is similar to a game console and does not have specific business capabilities. The component is similar to a game card. Users can achieve different functions by inserting different game cards into the game console, that is, by using Different components implement different specific business capabilities
    actions:         # Customize execution logic. For the use of actions, please refer to: https://www.serverless-devs.com/serverless-devs/yaml#Behavior description
      pre-deploy:    # run before deploy
        - component: fc build --use-docker --dockerfile ./Dockerfile.aliyun # The component to run, the format is [component: component name command parameter] (you can get the component list through s cli registry search --type Component)
#        - run: docker build xxx                  # System command to execute, similar to a hook
#          path: ./src                            # The path to execute system commands/hooks
#        - plugin: myplugin                       # and running plugins (you can get a list of components via s cli registry search --type Plugin)
#          args:                                  # parameter information of the plugin
#            testKey: testValue
#      post-deploy:                               # run after deploy
#        - component: fc versions publish         # command line to run
    props:
      region: ${vars.region}              # 关于变量的使用方法,可以参考:https://www.serverless-devs.com/serverless-devs/yaml#变量赋值
      service: ${vars.service}
      function:
        name: "{{ functionName }}"
        description: 'hello world by serverless devs'
        caPort: 9000
        memorySize: 2560
        timeout: 60
        runtime: custom-container
        customContainerConfig:
          image: "{{ acrRegistry }}"
        codeUri: ./
      triggers:
        - name: httpTrigger
          type: http
          config:
            authType: anonymous
            methods:
              - GET
              - POST
      customDomains:
        - domainName: auto
          protocol: HTTP
          routeConfigs:
            - path: /*
              methods:
                - GET
                - POST
#  next-function: # 第二个函数的案例,仅供参考
#    # 如果在当前项目下执行 s deploy,会同时部署模块:
#    #   helloworld:服务hello-world-service,函数cpp-event-function
#    #   next-function:服务hello-world-service,函数next-function-example
#    # 如果想单独部署当前服务与函数,可以执行 s + 模块名/业务名 + deploy,例如:s next-function deploy
#    # 如果想单独部署当前函数,可以执行 s + 模块名/业务名 + deploy function,例如:s next-function deploy function
#    # 更多命令可参考:https://www.serverless-devs.com/fc/readme#文档相关
#    component: fc
#    props:
#      region: ${vars.region}
#      service: ${vars.service} # 应用整体的服务配置
#      function: # 定义一个新的函数
#        name: next-function-example
#        description: 'hello world by serverless devs'

from start-web-framework.

wanghaisheng avatar wanghaisheng commented on July 17, 2024
certifi==2021.10.8
charset-normalizer==2.0.11
click==8.0.3
colorama==0.4.4
Flask==2.0.2
idna==3.3
itsdangerous==2.0.1
Jinja2==3.0.3
MarkupSafe==2.0.1
pywebio==1.5.2
retrying==1.3.3
six==1.16.0
tornado==6.1
ua-parser==0.10.0
urllib3==1.26.8
user-agents==2.2.0
Werkzeug==2.0.2
gunicorn
pyscreenshot
lazyEdge
requests
selenium_stealth
selenium
pillow
pandas
plane
undetected-chromedriver
opencv-python-headless
numpy
sentry-sdk
environs
cachetools
psycopg2-binary 
pytz
webdriver_manager
fastapi-cloudauth
python-firebase
firebase-admin
supabase
playwright==1.18.1
python-dotenv
tenacity==8.0.1

from start-web-framework.

anycodes avatar anycodes commented on July 17, 2024

卡住的原因是,你依赖太多了。应该是在执行中,并没有卡住。
你可以发一些截图,描述一下你判断卡住的依据

from start-web-framework.

wanghaisheng avatar wanghaisheng commented on July 17, 2024

@anycodes


  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/60/2e/dec1cc18c51b8df33c7c4d0a321b084cf38e1733b98f9d15018880fb4970/pytz-2022.1-py2.py3-none-any.whl (503 kB)
Collecting webdriver_manager
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/c5/75/ed5b098c7ccef65c29c005cd817a41cd3fead5ddab97a254bb2ad817df9c/webdriver_manager-3.5.4-py2.py3-none-any.whl (18 kB)
Collecting fastapi-cloudauth
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/e6/18/552e2b5e984a9cea10059b69294daa1ada66113d0b2212d02027e6c81491/fastapi_cloudauth-0.4.3-py3-none-any.whl (14 kB)
Collecting python-firebase
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/32/e6/88b799753e64aeb0f24040b98c94012994cf9517c889dee4f8a49ac89400/python-firebase-1.2.tar.gz (10 kB)
Collecting firebase-admin
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/8b/07/437c61ea8f597c22cfe9bd801484ab9e449d7c16f8ec50fcf8d18f421c74/firebase_admin-5.2.0-py3-none-any.whl (115 kB)
ERROR: Could not find a version that satisfies the requirement playwright (from versions: none)
ERROR: No matching distribution found for playwright
WARNING: You are using pip version 21.2.4; however, version 21.3.1 is available.
You should consider upgrading via the '/usr/local/bin/python -m pip install --upgrade pip' command.
✖ Message:

ERROR:

Error: Command failed with exit code 1: pip3 install -i https://pypi.tuna.tsinghua.edu.cn/simple -r requirements.txt
    at makeError (/usr/local/lib/node_modules/@serverless-devs/s/node_modules/execa/lib/error.js:60:11)
    at Function.module.exports.sync (/usr/local/lib/node_modules/@serverless-devs/s/node_modules/execa/index.js:194:17)
    at Hook.<anonymous> (/usr/local/lib/node_modules/@serverless-devs/s/node_modules/@serverless-devs/core/dist/common/execCommand/component/hook.js:147:49)
    at step (/usr/local/lib/node_modules/@serverless-devs/s/node_modules/@serverless-devs/core/dist/common/execCommand/component/hook.js:44:23)
    at Object.next (/usr/local/lib/node_modules/@serverless-devs/s/node_modules/@serverless-devs/core/dist/common/execCommand/component/hook.js:25:53)
    at /usr/local/lib/node_modules/@serverless-devs/s/node_modules/@serverless-devs/core/dist/common/execCommand/component/hook.js:19:71
    at new Promise (<anonymous>)
    at __awaiter (/usr/local/lib/node_modules/@serverless-devs/s/node_modules/@serverless-devs/core/dist/common/execCommand/component/hook.js:15:12)
    at Hook.commandExecute (/usr/local/lib/node_modules/@serverless-devs/s/node_modules/@serverless-devs/core/dist/common/execCommand/component/hook.js:139:16)
    at Hook.<anonymous> (/usr/local/lib/node_modules/@serverless-devs/s/node_modules/@serverless-devs/core/dist/common/execCommand/component/hook.js:92:51)
TraceId:     96cbc71d96041651753274084

比如这种 本地的话 lib安装完全没问题 但放上去就no match version

from start-web-framework.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.