Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix ambiguous flags in Dockerfile example #33417

Merged
merged 3 commits into from Feb 5, 2022
Merged

Conversation

vertti
Copy link
Contributor

@vertti vertti commented Jan 18, 2022

At least with Docker 20.10.11 this Dockerfile fails to both adduser and addgroup commands due to ambiguous flags. The error message for example for addgroup is:

#5 0.292 Option g is ambiguous (gecos, gid, group)
#5 0.292 Option s is ambiguous (shell, system)

This PR switches both commands to use the long-format flags. I think they are also more understandable for the readers of the Dockerfile.

At least with Docker xx this Dockerfile fails to both `adduser` and `addgroup` commands due to ambiguous flags. The error message for example for `addgroup` is:

```
vercel#5 0.292 Option g is ambiguous (gecos, gid, group)
vercel#5 0.292 Option s is ambiguous (shell, system)
```
This PR switches both commands to use the long-format flags. I think they are also more understandable for the readers of the Dockerfile.
@ijjk ijjk added the examples Issue/PR related to examples label Jan 18, 2022
Copy link
Member

@balazsorban44 balazsorban44 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, I just tested it (Ubuntu 21.10, Docker 20.10.12), and FWIW, I did not get the warning, but I agree that it's still better for readability anyway.

Had a small comment only, could you address it?

examples/with-docker/Dockerfile Outdated Show resolved Hide resolved
ijjk and others added 2 commits February 5, 2022 15:19
Co-authored-by: Balázs Orbán <info@balazsorban.com>
@ijjk ijjk merged commit 97b5c0a into vercel:canary Feb 5, 2022
natew pushed a commit to natew/next.js that referenced this pull request Feb 16, 2022
* Fix ambiguous flags in Dockerfile example

At least with Docker xx this Dockerfile fails to both `adduser` and `addgroup` commands due to ambiguous flags. The error message for example for `addgroup` is:

```
vercel#5 0.292 Option g is ambiguous (gecos, gid, group)
vercel#5 0.292 Option s is ambiguous (shell, system)
```
This PR switches both commands to use the long-format flags. I think they are also more understandable for the readers of the Dockerfile.

* Apply suggestions from code review

Co-authored-by: Balázs Orbán <info@balazsorban.com>

Co-authored-by: JJ Kasper <jj@jjsweb.site>
Co-authored-by: Balázs Orbán <info@balazsorban.com>
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 8, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
examples Issue/PR related to examples
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants