python - Google Cloud Platform Runtimes Common FTL AttributeError 'NoneType' 对象没有属性 'rsplit'
问题描述
请你帮我解决这个问题。我正在尝试通过 ftl 制作一个 dockerfile 并得到一个错误。
我的系统:
python3 --version => Python 3.7.3
node -v => v12.18.0
npm -v => 6.14.4
system_profiler SPSoftwareDataType =>
Software:
System Software Overview:
System Version: macOS 10.15.5 (19F101)
Kernel Version: Darwin 19.5.0
Boot Volume: Macintosh HD
Boot Mode: Normal
Secure Virtual Memory: Enabled
System Integrity Protection: Enabled
我遵循以下步骤:
1- mkdir examples
2- cd examples
3- npm init -y
4- echo 'console.log("hello world");' >> file.js
5- echo 'FROM node:12.18.0-alpine' >> dockerfile
6- echo 'WORKDIR /app' >> dockerfile
7- echo 'cp file.js ./' >> dockerfile
8- echo 'CMD ["node","file.js"]' >> dockerfile
9- python ./ftl.par --directory=$(pwd) --name=image --tar_base_image_path=$(pwd)
注意:来自https://storage.googleapis.com/gcp-container-tools/ftl/node/latest/ftl.par的 flt.par
我收到一个错误:
INFO FTL version node-v0.18.0
INFO Beginning FTL build for node
INFO FTL arg passed: exposed_ports None
INFO FTL arg passed: cache_repository None
INFO FTL arg passed: tar_base_image_path /Users/smhmayboudi/Developer/kaniko/examples
INFO FTL arg passed: export_cache_stats False
INFO FTL arg passed: builder_output_path None
INFO FTL arg passed: name image
INFO FTL arg passed: ttl 168
INFO FTL arg passed: global_cache False
INFO FTL arg passed: cache True
INFO FTL arg passed: upload True
INFO FTL arg passed: sh_c_prefix False
INFO FTL arg passed: fail_on_error True
INFO FTL arg passed: base None
INFO FTL arg passed: output_path None
INFO FTL arg passed: cache_key_version v0.18.0
INFO FTL arg passed: cache_salt
INFO FTL arg passed: directory /Users/smhmayboudi/Developer/kaniko/examples
INFO FTL arg passed: entrypoint None
INFO FTL arg passed: additional_directory None
INFO FTL arg passed: destination_path srv
INFO FTL arg passed: verbosity NOTSET
INFO starting: full build
INFO starting: builder initialization
INFO builder initialization took 0 seconds
INFO full build took 0 seconds
Traceback (most recent call last):
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py", line 174, in _run_module_as_main
"main", fname, loader, pkg_name)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py", line 72, in run_code
exec code in run_globals
File "./ftl.par/main.py", line 65, in
File "./ftl.par/main.py", line 52, in main
File "./ftl.par/main/ftl/node/builder.py", line 31, in init
File "./ftl.par/main/ftl/common/builder.py", line 89, in init
File "./ftl.par/containerregistry/client/docker_name.py", line 182, in init
AttributeError: 'NoneType' object has no attribute 'rsplit'
解决方案
推荐阅读
- reactjs - 找不到 React-icons 模块:无法解析“../lib”
- python - 如何找出字母表和字母转换频率?
- javascript - 我如何自动将某人移回频道?
- python - 从字符串中搜索模式
- reactjs - 在按钮 onClick 上使用 this.props.history 导航到另一个页面 reactJS
- kotlin - 如何在Activity中调用挂起函数?
- python - 如何使对象在画布中相互反弹
- node.js - 无法创建新的测试 Apollo Server
- ios - CocoaPods M1 不生成 .xcworkspace 文件
- asp.net - 如何编辑 ASP.net?