Skip to content

Commit

Permalink
Restores composer and build_assets steps in run_first to address dock…
Browse files Browse the repository at this point in the history
…er volume mounting issue
  • Loading branch information
clpetersonucf committed Nov 4, 2024
1 parent f6128a5 commit 28da569
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions docker/run_first.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,17 @@ elif [ "$choice" == "2" ]; then
echo "Building containers. This will take a few minutes..."
docker compose build app webserver fakes3

# install php composer deps
docker compose run --rm --no-deps app composer install --ignore-platform-reqs
else
echo "Invalid choice. Try again."
exit 1
fi

# Install php composer deps
# Even though these are present on the images already, the assets don't exist locally
# When docker compose volume mounts the project, the local filesystem takes precedence
# As such it's required to rerun this process to bring the host machine into parity
docker compose run --rm --no-deps app composer install --ignore-platform-reqs

# run migrations and seed any db data needed for a new install
docker compose run --rm app /wait-for-it.sh mysql:3306 --timeout=120 --strict -- composer oil-install-quiet

Expand All @@ -66,6 +70,9 @@ docker compose run --rm app bash -c 'php oil r widget:install_from_config'
# Install any widgets in the tmp dir
source run_widgets_install.sh '*.wigt'

# Same deal as composer: the assets are available in the images but not locally
source run_build_assets.sh

# create a dev user based on your current shell user (password will be 'kogneato') MATERIA_DEV_PASS=whatever can be used to set a custom pw
source run_create_me.sh

Expand Down

0 comments on commit 28da569

Please sign in to comment.