mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-10 23:36:14 -05:00
ref https://linear.app/ghost/issue/ENG-1959/extend-setupjs-to-modify-config-as-appropriate-for-full-docker-dev - When switching from local development to docker, there are a few configuration parameters that need to be updated to e.g. point to the right database host within the docker network. - Setting these values with environment variables doesn't work well because the configuration passed via environment overrides the configuration set in tests, and thus points tests to the wrong database. - This commit adds a yarn docker:setup command to the root of the repo, to make it easier to get started with a full docker compose based workflow. It edits you config.local.json file to update the necessary settings for running Ghost in docker compose. - It also updates the clean.js script such that it will run successfully regardless of whether it is run locally or in docker. - Finally, this commit also adds convenience commands for developing and running tests in docker compose
10 lines
No EOL
245 B
Bash
Executable file
10 lines
No EOL
245 B
Bash
Executable file
#!/bin/bash
|
|
|
|
# Mounting local code into the container overwrites the `node_modules` directories
|
|
# so we need to install dependencies again
|
|
yarn install --frozen-lockfile --prefer-offline
|
|
|
|
yarn nx run-many -t build:ts
|
|
|
|
# Execute the CMD
|
|
exec "$@" |