OpenAPITools / OpenAPITools/openapi-generator-cli

[BUG] Docker build outputting root:root directory/file permissions

未关闭
#647 3 条评论 12 个 reaction 已指派 1 人 在 GitHub 查看

@kay-schecker 已经在做这个了。

开始于 2022年6月3日。

bug
主要语言
TypeScript
星标
2k
派生
208
平均合并
7 小时 12 分钟
30 天内合并 PR
6

描述

⚠️ Important Notice

Please differentiate the bug

This repository is not responsible for the actual code generation. If you have problems with the code generation, please open the bug at OpenAPITools/openapi-generator.

Please also check if the bug is already known before you open a new bug.


🐛 Bug Report:

Describe the bug

Docker image generates directory/files with root:root permissions instead of the current user.

Steps to Reproduce

Steps to reproduce the behavior:

  1. Run the build using a docker image
Expected behavior

It generates the build using the current user and group.

Screenshots

image

Operation System (please complete the following information):
  • OS: Ubuntu
Package System (please complete the following information):
  • Version [e.g. 22]
Additional context

Probably needs an additional Docker parameter when running the build to specify the user and group. https://docs.docker.com/engine/reference/run/#user

docker run --user $(id -u):$(id -g)

贡献指南

这个仓库没有索引到贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。