Skip to content

Commit 6bec7df

Browse files
authored
update documentation and locale settings (#2411)
Signed-off-by: Drupad Panchal <[email protected]>
1 parent daac6fa commit 6bec7df

File tree

2 files changed

+2
-23
lines changed

2 files changed

+2
-23
lines changed

OracleManagementAgent/README.md

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -101,27 +101,6 @@ Oracle Management Agent image uses the official `oraclelinux:7-slim` container i
101101
$ rm /var/lib/docker/volumes/mgmtagent-volume/_data/mgmtagent_secret/input.rsp
102102
```
103103

104-
#### Steps to run Management Agent as root user
105-
106-
Management Agent can be run as the root user if access to specific locations (example: `/var/log`) within the container environment are restricted to only the root user as described in the following steps. Please also note that the steps given below must be applied prior to container creation. Applying these changes after creating the container is not supported.
107-
108-
##### Steps to run as root when using Docker Compose
109-
110-
1. Update the .env file to override the agent run-as-user environment variable
111-
```shell
112-
$ echo "RUN_AGENT_AS_USER=root" >> .env
113-
```
114-
**Note: Modifying this environment variable after container creation is not supported. Refer to volume cleanup in Helpful administration commands section and then startover.**
115-
116-
##### Steps to run as root when using Docker CLI
117-
118-
1. Start a container overriding the agent run-as-user environment variable
119-
```shell
120-
$ docker run -d --env RUN_AGENT_AS_USER=root --name mgmtagent-container --hostname mgmtagent1 -v mgmtagent-volume:/opt/oracle:rw --restart unless-stopped oracle/mgmtagent-container:latest
121-
```
122-
**Note: Setting this environment variable after container creation is not supported. Refer to volume cleanup in Helpful administration commands section and then startover.**
123-
124-
125104
#### Steps to execute custom user operations
126105

127106
Users can provide custom shell script commands to execute before starting Management Agent as described in the following steps

OracleManagementAgent/dockerfiles/latest/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,9 @@ RUN set -eux; \
4040
unzip \
4141
&& rm -rf /var/cache/yum
4242

43-
# Default to UTF-8 file.encoding
43+
# Specify locale settings
4444
ENV LANG en_US.UTF-8
45-
ENV LC_ALL=en_US.UTF-8
45+
ENV LC_ALL C
4646

4747
# Copy container scripts to initialize the environment and start Management Agent
4848
COPY ./container-scripts/*.sh /opt/oracle-mgmtagent-bootstrap/scripts/

0 commit comments

Comments
 (0)