Skip to content

Conversation

@nikitastryuk
Copy link
Contributor

@nikitastryuk nikitastryuk commented Sep 26, 2025

The Run-time Placeholder solution involves building frontend with a generic placeholder, like API_URL, in the index.html file. When the Docker container starts, a script reads an environment variable and replaces that placeholder with the actual API URL, allowing you to use the same build artifact for any environment without rebuilding.

docker run --name embucket --rm -p 8080:8080 -p 3000:3000 -e API_URL="https://api.embucket.com" embucket/embucket

Part of #1333

@github-actions
Copy link
Contributor

SLT Targeted Testing: No relevant SLT tests found for the changes in this PR. No testing required.

@github-actions
Copy link
Contributor

SLT Targeted Testing: No relevant SLT tests found for the changes in this PR. No testing required.

@github-actions
Copy link
Contributor

SLT Targeted Testing: No relevant SLT tests found for the changes in this PR. No testing required.

@github-actions
Copy link
Contributor

SLT Targeted Testing: No relevant SLT tests found for the changes in this PR. No testing required.

@github-actions
Copy link
Contributor

SLT Targeted Testing: No relevant SLT tests found for the changes in this PR. No testing required.

@nikitastryuk nikitastryuk merged commit 5ea62b9 into main Sep 26, 2025
11 checks passed
@nikitastryuk nikitastryuk deleted the dynamic_ui_hostname_docker_version branch September 26, 2025 15:56
YaroslavLitvinov added a commit that referenced this pull request Sep 26, 2025
* update slatedb to v0.8.2

* use less durable but faster option when put history items

* [UI] Static hostname issue fix (Run-time Placeholder solution)  (#1770)

* CI: Generate build artifacts (dist.tar) [skip ci]

---------

Co-authored-by: Nikita Striuk <32720808+nikitastryuk@users.noreply.github.com>
Co-authored-by: github-actions[bot] <1310417+github-actions[bot]@users.noreply.github.com>
YaroslavLitvinov added a commit that referenced this pull request Sep 26, 2025
* update slatedb to v0.8.2

* use less durable but faster option when put history items

* [UI] Static hostname issue fix (Run-time Placeholder solution)  (#1770)

* CI: Generate build artifacts (dist.tar) [skip ci]

---------

Co-authored-by: Nikita Striuk <32720808+nikitastryuk@users.noreply.github.com>
Co-authored-by: github-actions[bot] <1310417+github-actions[bot]@users.noreply.github.com>
DanCodedThis added a commit that referenced this pull request Sep 26, 2025
* [UI] Static hostname issue fix (Run-time Placeholder solution)  (#1770)

* CI: Generate build artifacts (dist.tar) [skip ci]

---------

Co-authored-by: Nikita Striuk <32720808+nikitastryuk@users.noreply.github.com>
Co-authored-by: github-actions[bot] <1310417+github-actions[bot]@users.noreply.github.com>
DanCodedThis pushed a commit that referenced this pull request Sep 30, 2025
* update slatedb to v0.8.2

* use less durable but faster option when put history items

* [UI] Static hostname issue fix (Run-time Placeholder solution)  (#1770)

* CI: Generate build artifacts (dist.tar) [skip ci]

---------

Co-authored-by: Nikita Striuk <32720808+nikitastryuk@users.noreply.github.com>
Co-authored-by: github-actions[bot] <1310417+github-actions[bot]@users.noreply.github.com>
DanCodedThis added a commit that referenced this pull request Sep 30, 2025
* [UI] Static hostname issue fix (Run-time Placeholder solution)  (#1770)

* CI: Generate build artifacts (dist.tar) [skip ci]

---------

Co-authored-by: Nikita Striuk <32720808+nikitastryuk@users.noreply.github.com>
Co-authored-by: github-actions[bot] <1310417+github-actions[bot]@users.noreply.github.com>
DanCodedThis pushed a commit that referenced this pull request Sep 30, 2025
* update slatedb to v0.8.2

* use less durable but faster option when put history items

* [UI] Static hostname issue fix (Run-time Placeholder solution)  (#1770)

* CI: Generate build artifacts (dist.tar) [skip ci]

---------

Co-authored-by: Nikita Striuk <32720808+nikitastryuk@users.noreply.github.com>
Co-authored-by: github-actions[bot] <1310417+github-actions[bot]@users.noreply.github.com>
DanCodedThis added a commit that referenced this pull request Sep 30, 2025
* [UI] Static hostname issue fix (Run-time Placeholder solution)  (#1770)

* CI: Generate build artifacts (dist.tar) [skip ci]

---------

Co-authored-by: Nikita Striuk <32720808+nikitastryuk@users.noreply.github.com>
Co-authored-by: github-actions[bot] <1310417+github-actions[bot]@users.noreply.github.com>
DanCodedThis added a commit that referenced this pull request Sep 30, 2025
* Add ClickBench benchmark + use Embucket experimental build (#1782)

* Add missing #[test] attribute to test_make_cors_middleware (#1783)

The test function was not being recognized by the test runner because it was missing the #[test] attribute.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude <noreply@anthropic.com>

* api ui queries schema fix (#1789)

* feat: add option to disable result caching for Snowflake benchmarks, … (#1786)

* feat: add option to disable result caching for Snowflake benchmarks, update logging

* feat: improve run type handling and update result paths logic

* feat: update path name logic

* feat: update path name in get_results_path logic here as well

* Update benchmark/benchmark.py

Co-authored-by: andheroe <3786879+andheroe@users.noreply.github.com>

* feat: make oneliner from previous results_folder logic

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: andheroe <3786879+andheroe@users.noreply.github.com>

* docs: update README to clarify caching options for benchmarks (#1797)

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* api: UI OpenAPI snake_case schema fix (#1799)

* schema fixes + requested changes from pr #1749

* more schema fixes

* camelCase

* camelCase for ErrorResponse

* flaky test

* [UI] Codegen rerun, NCU (#1791)

* codegen

* API_URL env

* openapi

* ncu

* CI: Generate build artifacts (dist.tar) [skip ci]

* Basic benchmarking crate (#1784)

* Merge lock

* Basic benchmarking crate

* Basic benchmarking crate

* Basic benchmarking crate

* Fix readme

* Fix versions

* Create catalog

* Fix clippy

* Fix cargo

* workflow complete (#1792)

* remove `dedicated_executor` (#1772)

* Yaro/slatedb durability config2 (#1773)

* update slatedb to v0.8.2

* use less durable but faster option when put history items

* [UI] Static hostname issue fix (Run-time Placeholder solution)  (#1770)

* CI: Generate build artifacts (dist.tar) [skip ci]

---------

Co-authored-by: Nikita Striuk <32720808+nikitastryuk@users.noreply.github.com>
Co-authored-by: github-actions[bot] <1310417+github-actions[bot]@users.noreply.github.com>

* push main into experimental (#1775)

* [UI] Static hostname issue fix (Run-time Placeholder solution)  (#1770)

* CI: Generate build artifacts (dist.tar) [skip ci]

---------

Co-authored-by: Nikita Striuk <32720808+nikitastryuk@users.noreply.github.com>
Co-authored-by: github-actions[bot] <1310417+github-actions[bot]@users.noreply.github.com>

---------

Co-authored-by: andheroe <3786879+andheroe@users.noreply.github.com>
Co-authored-by: Sergei Turukin <rampage644@gmail.com>
Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: Yevhenii Niestierov <123905136+YevheniiNiestierov@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Nikita Striuk <32720808+nikitastryuk@users.noreply.github.com>
Co-authored-by: github-actions[bot] <1310417+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Artem Osipov <59066880+osipovartem@users.noreply.github.com>
Co-authored-by: Yaroslav Litvinov <yaroslav@embucket.com>
DanCodedThis pushed a commit that referenced this pull request Sep 30, 2025
* update slatedb to v0.8.2

* use less durable but faster option when put history items

* [UI] Static hostname issue fix (Run-time Placeholder solution)  (#1770)

* CI: Generate build artifacts (dist.tar) [skip ci]

---------

Co-authored-by: Nikita Striuk <32720808+nikitastryuk@users.noreply.github.com>
Co-authored-by: github-actions[bot] <1310417+github-actions[bot]@users.noreply.github.com>
DanCodedThis added a commit that referenced this pull request Sep 30, 2025
* [UI] Static hostname issue fix (Run-time Placeholder solution)  (#1770)

* CI: Generate build artifacts (dist.tar) [skip ci]

---------

Co-authored-by: Nikita Striuk <32720808+nikitastryuk@users.noreply.github.com>
Co-authored-by: github-actions[bot] <1310417+github-actions[bot]@users.noreply.github.com>
DanCodedThis added a commit that referenced this pull request Sep 30, 2025
* Add ClickBench benchmark + use Embucket experimental build (#1782)

* Add missing #[test] attribute to test_make_cors_middleware (#1783)

The test function was not being recognized by the test runner because it was missing the #[test] attribute.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude <noreply@anthropic.com>

* api ui queries schema fix (#1789)

* feat: add option to disable result caching for Snowflake benchmarks, … (#1786)

* feat: add option to disable result caching for Snowflake benchmarks, update logging

* feat: improve run type handling and update result paths logic

* feat: update path name logic

* feat: update path name in get_results_path logic here as well

* Update benchmark/benchmark.py

Co-authored-by: andheroe <3786879+andheroe@users.noreply.github.com>

* feat: make oneliner from previous results_folder logic

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: andheroe <3786879+andheroe@users.noreply.github.com>

* docs: update README to clarify caching options for benchmarks (#1797)

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* api: UI OpenAPI snake_case schema fix (#1799)

* schema fixes + requested changes from pr #1749

* more schema fixes

* camelCase

* camelCase for ErrorResponse

* flaky test

* [UI] Codegen rerun, NCU (#1791)

* codegen

* API_URL env

* openapi

* ncu

* CI: Generate build artifacts (dist.tar) [skip ci]

* Basic benchmarking crate (#1784)

* Merge lock

* Basic benchmarking crate

* Basic benchmarking crate

* Basic benchmarking crate

* Fix readme

* Fix versions

* Create catalog

* Fix clippy

* Fix cargo

* workflow complete (#1792)

* remove `dedicated_executor` (#1772)

* Yaro/slatedb durability config2 (#1773)

* update slatedb to v0.8.2

* use less durable but faster option when put history items

* [UI] Static hostname issue fix (Run-time Placeholder solution)  (#1770)

* CI: Generate build artifacts (dist.tar) [skip ci]

---------

Co-authored-by: Nikita Striuk <32720808+nikitastryuk@users.noreply.github.com>
Co-authored-by: github-actions[bot] <1310417+github-actions[bot]@users.noreply.github.com>

* push main into experimental (#1775)

* [UI] Static hostname issue fix (Run-time Placeholder solution)  (#1770)

* CI: Generate build artifacts (dist.tar) [skip ci]

---------

Co-authored-by: Nikita Striuk <32720808+nikitastryuk@users.noreply.github.com>
Co-authored-by: github-actions[bot] <1310417+github-actions[bot]@users.noreply.github.com>

---------

Co-authored-by: andheroe <3786879+andheroe@users.noreply.github.com>
Co-authored-by: Sergei Turukin <rampage644@gmail.com>
Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: Yevhenii Niestierov <123905136+YevheniiNiestierov@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Nikita Striuk <32720808+nikitastryuk@users.noreply.github.com>
Co-authored-by: github-actions[bot] <1310417+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Artem Osipov <59066880+osipovartem@users.noreply.github.com>
Co-authored-by: Yaroslav Litvinov <yaroslav@embucket.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