Skip to content

feat: add wait-for-database startup script and HOST environment variable support - #1

Merged
jamsden merged 1 commit into
masterfrom
feature/docker-compose-automation
Jun 7, 2026
Merged

jamsden merged 1 commit into
masterfrom
feature/docker-compose-automation

Conversation

@berezovskyi

Copy link
Copy Markdown
Member

No description provided.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds startup ergonomics for local/dev/CI by introducing a start.sh script that waits for Fuseki readiness, starts the Node server, and runs the EU-Rent population script, while also expanding environment-variable configurability for host and Jena endpoint.

Changes:

  • Make the EU-Rent population script configurable via BMM_SERVER_URL.
  • Add start.sh to wait for Fuseki, start the server, and run database population.
  • Add HOST and JENA_URL environment variable support in runtime configuration, and update the startup log banner.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 5 comments.

File Description
testing/populate-eurent.sh Allows overriding the server base URL via BMM_SERVER_URL.
start.sh New startup script that waits for Fuseki/server readiness and runs EU-Rent population.
src/env.ts Adds HOST bind support and allows overriding jenaURL via JENA_URL.
src/app.ts Updates startup logging output/banner.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread start.sh Resolved
Comment thread start.sh Resolved
Comment thread start.sh

# Run the population script
echo "Server is up! Running database population..."
./testing/populate-eurent.sh
Comment thread src/app.ts
Comment on lines +60 to +62
console.log('\n============================================================');
console.log('Browse the OSLC BMM Server at: http://localhost:' + env.listenPort + '/');
console.log('============================================================\n');
Comment thread src/env.ts
appBase,
ldpBase,
jenaURL: config.jenaURL,
jenaURL: process.env.JENA_URL || config.jenaURL,
@berezovskyi
berezovskyi force-pushed the feature/docker-compose-automation branch from 2365025 to 4a8210a Compare June 6, 2026 18:32
@jamsden
jamsden merged commit 699c7fd into master Jun 7, 2026
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.

3 participants