Skip to content

Commit

Permalink
more docker compose updates
Browse files Browse the repository at this point in the history
  • Loading branch information
erickgonzalez committed Aug 13, 2024
1 parent 7e31a3f commit fb4db21
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions .github/actions/run-integration-tests/src/integration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,14 +85,14 @@ export const COMMANDS: Commands = {
}

const START_DEPENDENCIES_CMD: Command = {
cmd: 'docker-compose',
cmd: 'docker compose',
args: ['-f', 'open-distro-compose.yml', '-f', `${dbType}-compose.yml`, 'up'],
workingDir: dockerFolder,
env: DEPS_ENV[dbType as keyof DatabaseEnvs]
}

const STOP_DEPENDENCIES_CMD: Command = {
cmd: 'docker-compose',
cmd: 'docker compose',
args: ['-f', 'open-distro-compose.yml', '-f', `${dbType}-compose.yml`, 'down'],
workingDir: dockerFolder,
env: DEPS_ENV[dbType as keyof DatabaseEnvs]
Expand Down
8 changes: 4 additions & 4 deletions .github/actions/run-postman-tests/src/postman.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,13 +130,13 @@ const startDeps = async () => {
=======================================`)

if (includeAnalytics) {
execCmdAsync(toCommand('docker-compose', ['-f', 'analytics-compose.yml', 'up'], dockerFolder))
execCmdAsync(toCommand('docker compose', ['-f', 'analytics-compose.yml', 'up'], dockerFolder))
await waitFor(140, 'Analytics Infrastructure')
}

execCmdAsync(
toCommand(
'docker-compose',
'docker compose',
['-f', 'open-distro-compose.yml', '-f', `${dbType}-compose.yml`, '-f', 'dotcms-compose.yml', 'up'],
dockerFolder,
DEPS_ENV
Expand All @@ -155,7 +155,7 @@ const stopDeps = async () => {
===================================`)
if (includeAnalytics) {
try {
await execCmd(toCommand('docker-compose', ['-f', 'analytics-compose.yml', 'down', '-v'], dockerFolder))
await execCmd(toCommand('docker compose', ['-f', 'analytics-compose.yml', 'down', '-v'], dockerFolder))
} catch (err) {
console.error(`Error stopping dependencies: ${err}`)
}
Expand All @@ -164,7 +164,7 @@ const stopDeps = async () => {
try {
await execCmd(
toCommand(
'docker-compose',
'docker compose',
['-f', 'open-distro-compose.yml', '-f', `${dbType}-compose.yml`, '-f', 'dotcms-compose.yml', 'down', '-v'],
dockerFolder,
DEPS_ENV
Expand Down
4 changes: 2 additions & 2 deletions cicd/local-cicd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ function startDependencies {
local test_type=${1}
echo "Starting ${test_type} dependencies"

executeCmd "docker-compose
executeCmd "docker compose
-f open-distro-compose.yml
-f ${INPUT_DB_TYPE}-compose.yml
up
Expand All @@ -83,7 +83,7 @@ function stopDependencies {
local test_type=${1}
echo "Stopping ${test_type} dependencies"

executeCmd "docker-compose
executeCmd "docker compose
-f open-distro-compose.yml
-f ${INPUT_DB_TYPE}-compose.yml
down"
Expand Down
2 changes: 1 addition & 1 deletion core-web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"build:prod": "nx run dotcms-ui:build:production",
"build:dotcms-block-editor": "ng build dotcms-block-editor --configuration production --optimization --output-hashing=none && cat dist/apps/dotcms-block-editor/{generator-runtime,runtime,polyfills,main}.js > ../dotCMS/src/main/webapp/html/dotcms-block-editor.js",
"build:dotcms-webcomponents": "nx build dotcms-webcomponents",
"docker:test": "npm run docker:build;IMAGE_BASE_NAME=core-web docker-compose -f docker-compose-running-test.yml up",
"docker:test": "npm run docker:build;IMAGE_BASE_NAME=core-web docker compose -f docker-compose-running-test.yml up",
"docker:build": "docker build -t core-web .",
"analyze": "ng build --stats-json;webpack-bundle-analyzer dist/stats.json",
"docs:json": "compodoc -p ./tsconfig.base.json -e json -d .",
Expand Down
2 changes: 1 addition & 1 deletion dotCMS/src/main/enterprise

0 comments on commit fb4db21

Please sign in to comment.