Skip to content

docs: add info on osx docker builds#459

Merged
mattklein123 merged 3 commits intomasterfrom
change-user-to-root
Feb 10, 2017
Merged

docs: add info on osx docker builds#459
mattklein123 merged 3 commits intomasterfrom
change-user-to-root

Conversation

@RyanMcG
Copy link
Copy Markdown
Contributor

@RyanMcG RyanMcG commented Feb 10, 2017

id -u and id -g was not finding a matching user in the container which caused issues running various commands.

id -u and id -g was not finding a matching user in the container which caused issues running various commands.
@mattklein123
Copy link
Copy Markdown
Member

Running as root universally should not be necessary, but I don't know specifically why @htuch added the user stuff in the first place. Perhaps he can comment.

@htuch
Copy link
Copy Markdown
Member

htuch commented Feb 10, 2017

If you run as root, the build/ and generated/ trees on the bind mounted volume (i.e. your Envoy directory) are owned by root. This makes removing them or modifying files a pain. I guess we could solve the problem by umask as well, I'm a bit surprised this is an issue though, it works fine for me with the usual build process.

Can you either dig into this or provide an alternative command that doesn't leave around artifacts that can't be removed without a sudo? Thanks.

@RyanMcG
Copy link
Copy Markdown
Contributor Author

RyanMcG commented Feb 10, 2017

Well, I am not getting root owned artifacts in my bound dir, so that's odd. I think the root of the problem is that the my laptop's users are not synchronized with the container. Just differences from running on a Mac?

@htuch
Copy link
Copy Markdown
Member

htuch commented Feb 10, 2017

Yeah, it looks like the treatment of ownership and users with bind mounts is completely different on Docker OS X, https://docs.docker.com/docker-for-mac/osxfs/. It seems fine to run as root in terms of build artifacts as you note, and using the invoking user's UID/GID doesn't help any. On Linux, it's still useful to do this though as UID/GID are shared.

Can you change your PR to provide an alternative for OS X and a one line summary for why we do it one way on Linux and another on OS X?

@moderation
Copy link
Copy Markdown
Contributor

FWIW I get root owned artifacts on Xubuntu 16:10 using the Docker container build method. There is some possibility I got the steps outlined at https://docs.docker.com/engine/installation/linux/linux-postinstall/#/manage-docker-as-a-non-root-user incorrect.

@RyanMcG
Copy link
Copy Markdown
Contributor Author

RyanMcG commented Feb 10, 2017

@htuch that sounds like the issue then. I'll try to update the instructions here.

Ryan McGowan added 2 commits February 10, 2017 11:27
@htuch
Copy link
Copy Markdown
Member

htuch commented Feb 10, 2017

Thanks, LGTM.

@RyanMcG
Copy link
Copy Markdown
Contributor Author

RyanMcG commented Feb 10, 2017

@htuch @mattklein123 @moderation updated. Let me know what you think.

@mattklein123 mattklein123 changed the title Change user and group to root:root docs: add info on osx docker builds Feb 10, 2017
@mattklein123 mattklein123 merged commit 5413f7f into master Feb 10, 2017
@mattklein123 mattklein123 deleted the change-user-to-root branch February 10, 2017 19:37
@moderation
Copy link
Copy Markdown
Contributor

@RyanMcG Works great! Really good not to have to sudo remove the build directory before rebuilding. Thanks.

alyssawilk pushed a commit that referenced this pull request Feb 12, 2018
Description:
If the xff_num_trusted_hops config option is set to a number greater than zero, trust the specified number of additional addresses at the end of the X-Forwarded-For request header.

Risk Level: High
(because this change interacts with the internal/external request security model)

Testing: New test cases included

Docs Changes: #479

Release Notes: Included

Fixes: #2503

API Changes: #459

Signed-off-by: Brian Pane bpane@pinterest.com
rshriram pushed a commit to rshriram/envoy that referenced this pull request Oct 30, 2018
jplevyak added a commit to jplevyak/envoy that referenced this pull request Apr 13, 2020
…on (envoyproxy#459)

* Ensure that headers/trailers/metadata are available after StopIteration
until "continue" is called.  Includes test.

Signed-off-by: John Plevyak <jplevyak@gmail.com>
wolfguoliang pushed a commit to wolfguoliang/envoy that referenced this pull request Jan 23, 2021
…roxy#459)

* zh-translation:docs/root/configuration/overview/extension.rst

* fix translation issue
jpsim pushed a commit that referenced this pull request Nov 28, 2022
```
export READWRITE_USER="usr";
export READWRITE_API_KEY="psswrd";
export ARTIFACT_HOST_URL="foo.api.com";
python bazel/upload_maven.py --version=LOCAL-SNAPSHOT-1.0.0
```

Signed-off-by: Alan Chiu <achiu@lyft.com>

For an explanation of how to fill out the fields, please see the relevant section
in [PULL_REQUESTS.md](https://github.com/envoyproxy/envoy/blob/master/PULL_REQUESTS.md)

Description: add a pythons script for maven upload and local development
Risk Level: low
Testing: to private artifactory
Docs Changes: n/a
Release Notes: n/a
[Optional Fixes #Issue]
[Optional Deprecated:]

Signed-off-by: JP Simard <jp@jpsim.com>
jpsim pushed a commit that referenced this pull request Nov 29, 2022
```
export READWRITE_USER="usr";
export READWRITE_API_KEY="psswrd";
export ARTIFACT_HOST_URL="foo.api.com";
python bazel/upload_maven.py --version=LOCAL-SNAPSHOT-1.0.0
```

Signed-off-by: Alan Chiu <achiu@lyft.com>

For an explanation of how to fill out the fields, please see the relevant section
in [PULL_REQUESTS.md](https://github.com/envoyproxy/envoy/blob/master/PULL_REQUESTS.md)

Description: add a pythons script for maven upload and local development
Risk Level: low
Testing: to private artifactory
Docs Changes: n/a
Release Notes: n/a
[Optional Fixes #Issue]
[Optional Deprecated:]

Signed-off-by: JP Simard <jp@jpsim.com>
mathetake pushed a commit that referenced this pull request Mar 3, 2026
**Commit Message**

extproc: add GenAI metrics to track token usage and latency

Adds GenAI metrics according to the OpenTelemetry Semantic Conventions
for Generative AI Metrics [1].
Note those metrics are still in experimental phase and may still be
subject to change.

1: https://opentelemetry.io/docs/specs/semconv/gen-ai/gen-ai-metrics/

**Related Issues/PRs (if applicable)**

This is a follow-up of
envoyproxy/ai-gateway#432, implementing the
remaining review comments. 

---------

Signed-off-by: Huamin Chen <hchen@redhat.com>
Signed-off-by: Ignasi Barrera <ignasi@tetrate.io>
mathetake added a commit that referenced this pull request Mar 3, 2026
**Commit Message**

This changes the stat collection behavior so that token latency metrics
are only recorded on stream=true requests. This was brought up in an
offline discussion and otherwise the metrics doesn't make sense.

**Related Issues/PRs (if applicable)**

#459

Signed-off-by: Takeshi Yoneda <t.y.mathetake@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants