简体   繁体   English

如何在 Ubuntu 20.04 Docker 容器内运行 Renovate?

[英]How to run Renovate inside a Ubuntu 20.04 Docker container?

I want to run Renovate inside aa Ubuntu 20.04 docker container, but renovate does not seem to work.我想在 aa Ubuntu 20.04 docker 容器中运行Renovate ,但 renovate 似乎不起作用。 Here are the step to repdocue my setting:这是重新设置我的设置的步骤:

docker run -it ubuntu:20.04 /bin/bash
apt update
apt upgrade
printf 'y\n1\n\1n' | apt install nodejs
apt install -y npm
npm install -g renovate
renovate --version

renovate --version gives me: renovate --version给了我:

/usr/local/lib/node_modules/renovate/dist/logger/index.js:13
let logContext = process.env.LOG_CONTEXT ?? (0, nanoid_1.nanoid)();
                                          ^

SyntaxError: Unexpected token ?
    at Module._compile (internal/modules/cjs/loader.js:723:23)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
    at Module.load (internal/modules/cjs/loader.js:653:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
    at Function.Module._load (internal/modules/cjs/loader.js:585:3)
    at Module.require (internal/modules/cjs/loader.js:692:17)
    at require (internal/modules/cjs/helpers.js:25:18)
    at Object.<anonymous> (/usr/local/lib/node_modules/renovate/dist/renovate.js:5:18)
    at Module._compile (internal/modules/cjs/loader.js:778:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
root@3b484953056f:/# renovate --version
/usr/local/lib/node_modules/renovate/dist/logger/index.js:13
let logContext = process.env.LOG_CONTEXT ?? (0, nanoid_1.nanoid)();
                                          ^

SyntaxError: Unexpected token ?
    at Module._compile (internal/modules/cjs/loader.js:723:23)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
    at Module.load (internal/modules/cjs/loader.js:653:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
    at Function.Module._load (internal/modules/cjs/loader.js:585:3)
    at Module.require (internal/modules/cjs/loader.js:692:17)
    at require (internal/modules/cjs/helpers.js:25:18)
    at Object.<anonymous> (/usr/local/lib/node_modules/renovate/dist/renovate.js:5:18)
    at Module._compile (internal/modules/cjs/loader.js:778:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)

Any ideas what I am doing wrong here?有什么想法我在这里做错了吗? Do I need to setup RENOVATE_LOG_CONTEXT ?我需要设置RENOVATE_LOG_CONTEXT吗? If so, how can this be done?如果是这样,如何做到这一点?

renovate github discussions is more active than this, you should try there next time. renovate github 讨论比这个更活跃,你下次应该去那里试试。

you should look into github repository, check this repository out for ubuntu example: https://github.com/renovatebot/docker-ubuntu/blob/master/Dockerfile您应该查看 github 存储库,检查此存储库以获取 ubuntu 示例: https://github.com/renovatebot/docker-ubuntu/blob

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在 Docker 容器内运行和编译代码 - Run and compile code inside a Docker container 如何观看Docker容器内NestJs应用程序中开发的文件更改 - How to watch file changes developing in NestJs app inside Docker container 如何在Ubuntu LXC容器中安装节点模块(express,typescript,ws等)? - How to install node modules (express, typescript, ws etc) inside Ubuntu LXC container? 在Docker容器内创建的目录未反映在主机上 - Directory created inside docker container not reflecting on host machine 在 docker 容器中链接或安装本地 typescript 库 - link or install local typescript library inside docker container 带打字稿的Docker容器内的CRA需要很长时间 - CRA inside docker container with typescript takes very long time 使用VS Code调试在Docker容器中使用ts节点运行的TypeScript应用程序时,如何正确设置断点? - How to be able to set up breakpoints correctly when using VS Code to debug a TypeScript app run using ts-node in a Docker container? 如何在 docker 中为 AWS lambda 安装 puppeteer? - how to install puppeteer for AWS lambda inside docker? nestjs grpc 客户端无法将 dns 解析为 docker 容器内的 grpc 服务 - nestjs grpc client cannot resolve dns to grpc service inside docker container 如何在 JSX 中使用条件将容器包装在映射函数中 - TypeScript - How to wrap a container inside a map function with conditional in JSX - TypeScript
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM