Skip to content

Commit

Permalink
chore: enable image for readOnlyRootFilesystem
Browse files Browse the repository at this point in the history
with symlink to tmp for index.html
  • Loading branch information
evegufy committed Feb 1, 2024
1 parent 1cfcf0d commit 817d353
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/inject-dynamic-env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,5 @@ custom_env_vars='{PORTAL_ASSETS_URL:"'$PORTAL_ASSETS_URL'",PORTAL_BACKEND_URL:"'
custom_env_vars_anchor='{PORTAL_ASSETS_URL:"http://localhost:3000/assets",PORTAL_BACKEND_URL:"https://portal-backend.example.org",CENTRALIDP_URL:"https://centralidp.example.org/auth",BPDM_API_URL:"https://business-partners.example.org/pool/api",SEMANTICS_URL:"https://semantics.example.org",MANAGED_IDENTITY_WALLETS_NEW_URL:"https://managed-identity-wallets-new.example.org"}'
index_html_reference=`cat /usr/share/nginx/html/index.html.reference`
index_html=${index_html_reference//$custom_env_vars_anchor/$custom_env_vars}
echo "$index_html" > /usr/share/nginx/html/index.html
echo "$index_html" > /tmp/index.html
ln -s /tmp/index.html /usr/share/nginx/html/index.html

0 comments on commit 817d353

Please sign in to comment.