Skip to content

Misc fixes & improvements on install script #306

Merged
paigewilliams merged 5 commits into
mainfrom
install-script-debugging
Jun 24, 2026
Merged

Misc fixes & improvements on install script #306
paigewilliams merged 5 commits into
mainfrom
install-script-debugging

Conversation

@paigewilliams

Copy link
Copy Markdown
Collaborator

changes:

  • mount media to local filesystem in docker-compose.prod.local.yaml (task)
  • build the proxy image as part of the install script (task)
  • checks for the 3 main containers in for the success message

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Updates the Linux Docker environment installer and the prod.local compose configuration to support a host-mounted media directory, ensure the proxy image is built, and improve the “success” signal by checking multiple containers.

Changes:

  • Bind-mount media/ from the host filesystem into web and proxy in docker-compose.prod.local.yaml (replacing the named media_volume).
  • Extend the install script to create a media/ directory and build the proxy image.
  • Update install-time verification to check web, db, and proxy containers (but currently with a shell syntax error and brittle timing).

Reviewed changes

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

File Description
scripts/Linux/install-docker-env.sh Creates a host media directory, builds the proxy, and verifies multiple containers after docker compose up.
docker/docker-compose.prod.local.yaml Switches media from a named volume to a host bind mount and sets a fixed proxy container name.

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

Comment thread scripts/Linux/install-docker-env.sh Outdated
Comment thread scripts/Linux/install-docker-env.sh Outdated
Comment thread scripts/Linux/install-docker-env.sh Outdated
Comment on lines 82 to 86
echo "Verifying that the containers are running..."
if [ "$(docker container inspect -f '{{.State.Status}}' "tekdb_web" 2>/dev/null)" = "running" ]; then
if [ "$(docker container inspect -f '{{.State.Status}}' "tekdb_web" 2>/dev/null)" = "running" ] && [ "$(docker container inspect -f '{{.State.Status}}' "db" 2>/dev/null)" = "running" ] && [ "$(docker container inspect -f '{{.State.Status}}' "tekdb_proxy" 2>/dev/null)" = "running" ]; then;
echo "TEKDB containers are running successfully."
else
echo "Failed to start TEKDB containers. Please check the Docker logs for more information."

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I agree w/ Copilot here - that extra ; after the then breaks the syntax.

A: I don't think this runs (I can't run other local scripts with this syntax)
B: If it did run, I think the clause would be ended, the 'true' result would always run, and the 'false' result would never run (if bash didn't choke on interpreting else as a standalone commaned)

@rhodges rhodges left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Please fix syntax in install-docker-env.sh line 83.

Also the mkdir -p suggestions are worth considering.

Comment thread scripts/Linux/install-docker-env.sh Outdated
Comment thread scripts/Linux/install-docker-env.sh Outdated
Comment on lines 82 to 86
echo "Verifying that the containers are running..."
if [ "$(docker container inspect -f '{{.State.Status}}' "tekdb_web" 2>/dev/null)" = "running" ]; then
if [ "$(docker container inspect -f '{{.State.Status}}' "tekdb_web" 2>/dev/null)" = "running" ] && [ "$(docker container inspect -f '{{.State.Status}}' "db" 2>/dev/null)" = "running" ] && [ "$(docker container inspect -f '{{.State.Status}}' "tekdb_proxy" 2>/dev/null)" = "running" ]; then;
echo "TEKDB containers are running successfully."
else
echo "Failed to start TEKDB containers. Please check the Docker logs for more information."

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I agree w/ Copilot here - that extra ; after the then breaks the syntax.

A: I don't think this runs (I can't run other local scripts with this syntax)
B: If it did run, I think the clause would be ended, the 'true' result would always run, and the 'false' result would never run (if bash didn't choke on interpreting else as a standalone commaned)

@rhodges rhodges left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Groovy

@paigewilliams paigewilliams merged commit 140e458 into main Jun 24, 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