Skip to content

Commit 5d75316

Browse files
committed
Make OPENSEARCH_DASHBOARDS_HOME args works correctly in dashboards dockerfile
Signed-off-by: leedonggyu <[email protected]>
1 parent 7962e40 commit 5d75316

5 files changed

+5
-12
lines changed

docker/release/config/opensearch-dashboards/opensearch-dashboards-docker-entrypoint-1.x.sh

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,6 @@
1515
#
1616
# --opensearch.startupTimeout=60
1717

18-
# Setup Home Directory
19-
export OPENSEARCH_DASHBOARDS_HOME=/usr/share/opensearch-dashboards
20-
2118
opensearch_dashboards_vars=(
2219
console.enabled
2320
console.proxyConfig
@@ -176,7 +173,7 @@ function setupSecurityDashboardsPlugin {
176173
function runOpensearchDashboards {
177174
longopts=()
178175
for opensearch_dashboards_var in ${opensearch_dashboards_vars[*]}; do
179-
# 'opensearch.hosts' -> 'OPENSEARCH_URL'
176+
# 'opensearch.hosts' -> 'OPENSEARCH_HOSTS'
180177
env_var=$(echo ${opensearch_dashboards_var^^} | tr . _)
181178

182179
# Indirectly lookup env var values via the name of the var.

docker/release/config/opensearch-dashboards/opensearch-dashboards-docker-entrypoint-2.x.sh

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,6 @@
1515
#
1616
# --opensearch.startupTimeout=60
1717

18-
# Setup Home Directory
19-
export OPENSEARCH_DASHBOARDS_HOME=/usr/share/opensearch-dashboards
20-
2118
opensearch_dashboards_vars=(
2219
console.enabled
2320
console.proxyConfig
@@ -188,7 +185,7 @@ function setupSecurityDashboardsPlugin {
188185
function runOpensearchDashboards {
189186
longopts=()
190187
for opensearch_dashboards_var in ${opensearch_dashboards_vars[*]}; do
191-
# 'opensearch.hosts' -> 'OPENSEARCH_URL'
188+
# 'opensearch.hosts' -> 'OPENSEARCH_HOSTS'
192189
env_var=$(echo ${opensearch_dashboards_var^^} | tr . _)
193190

194191
# Indirectly lookup env var values via the name of the var.

docker/release/config/opensearch-dashboards/opensearch-dashboards-docker-entrypoint-default.x.sh

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,6 @@
1515
#
1616
# --opensearch.startupTimeout=60
1717

18-
# Setup Home Directory
19-
export OPENSEARCH_DASHBOARDS_HOME=/usr/share/opensearch-dashboards
20-
2118
opensearch_dashboards_vars=(
2219
console.enabled
2320
console.proxyConfig
@@ -188,7 +185,7 @@ function setupSecurityDashboardsPlugin {
188185
function runOpensearchDashboards {
189186
longopts=()
190187
for opensearch_dashboards_var in ${opensearch_dashboards_vars[*]}; do
191-
# 'opensearch.hosts' -> 'OPENSEARCH_URL'
188+
# 'opensearch.hosts' -> 'OPENSEARCH_HOSTS'
192189
env_var=$(echo ${opensearch_dashboards_var^^} | tr . _)
193190

194191
# Indirectly lookup env var values via the name of the var.

docker/release/dockerfiles/opensearch-dashboards.al2.dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ WORKDIR $OPENSEARCH_DASHBOARDS_HOME
7272

7373
# Set PATH
7474
ENV PATH=$PATH:$OPENSEARCH_DASHBOARDS_HOME/bin
75+
ENV OPENSEARCH_DASHBOARDS_HOME=$OPENSEARCH_DASHBOARDS_HOME
7576

7677
# Change user
7778
USER $UID

docker/release/dockerfiles/opensearch-dashboards.al2023.dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ WORKDIR $OPENSEARCH_DASHBOARDS_HOME
7373

7474
# Set PATH
7575
ENV PATH=$PATH:$OPENSEARCH_DASHBOARDS_HOME/bin
76+
ENV OPENSEARCH_DASHBOARDS_HOME=$OPENSEARCH_DASHBOARDS_HOME
7677

7778
# Change user
7879
USER $UID

0 commit comments

Comments
 (0)