Skip to content

Could not use option --use-local #34

@izhangzhihao

Description

@izhangzhihao

We are build the FC inside a gitlab CI(without Docker in Docker support, using gitlab runner imageregistry.hub.docker.com/aliyunfc/runtime-python3.10:build-3.1.0), when build FC2.0 it works fine but after upgrade using 3.0 with --use-local it still try to pull docker image.

s build --use-local -t s.$ENV.yaml
s deploy --use-local -y -t s.$ENV.yaml
start deploy FC3 at function-compute-3/fc3-poc
deploying:  env:  staging
[2024-10-12 06:11:43][WARN][s_cli] It is not recommended to run the command as root user.
Downloading[/v3/packages/fc3/zipball/0.0.47]...
Download fc3 successfully
⌛  Steps for [build] of [hello-world-app]
====================
[2024-10-12 06:11:45][INFO][hello_world] runCommand ===>  
docker pull registry.hub.docker.com/aliyunfc/runtime-python3.10:build-3.1.0 
/bin/sh: 1: docker: not found
✖ [hello_world] failed to [build] (0.12s)
 
✖ [hello_world] failed to [build]:
====================
Error Message:
command failed with code 127
 
Env:       @serverless-devs/s: 3.1.1, linux-x64 node-v16.20.2                 
Logs:      /root/.s/logs/1012061143                                           
Feedback:  https://github.com/Serverless-Devs/Serverless-Devs/issues

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions