-
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1481562
commit fe71168
Showing
1 changed file
with
32 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
import { test } from '../../../src/modules/helpers/test.js'; | ||
import { assert } from '../../../src/modules/essentials/assert.js'; | ||
import { docker } from '../../../src/modules/helpers/container.js'; | ||
|
||
const projectName = 'poku'; | ||
const serviceName = 'node-23'; | ||
|
||
test(`Compatibility Tests: ${serviceName}`, async () => { | ||
const dockerfile = docker.dockerfile({ | ||
containerName: serviceName, | ||
tagName: `${projectName}-${serviceName}`, | ||
}); | ||
|
||
await dockerfile.remove(); | ||
|
||
const compose = docker.compose({ | ||
build: true, | ||
cwd: './test/__docker__', | ||
detach: false, | ||
serviceName, | ||
projectName, | ||
// verbose: true, | ||
}); | ||
|
||
const result = await compose.up(); | ||
|
||
if (!result) { | ||
assert.fail(`See the logs by running \`docker logs ${serviceName}\``); | ||
} | ||
|
||
await dockerfile.remove(); | ||
}); |