Skip to content

Commit

Permalink
what's wrong with docker exec?
Browse files Browse the repository at this point in the history
  • Loading branch information
m5r committed Jul 4, 2024
1 parent 64887d4 commit 8009130
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions test/e2e/cht-docker-utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const dockerHelperScript = path.resolve(dockerHelperDirectory, './cht-docker-com
const downloadDockerHelperScript = () => new Promise((resolve, reject) => {
const file = fs.createWriteStream(dockerHelperScript, { mode: 0o755 });
https
.get('https://raw.githubusercontent.com/medic/cht-core/master/scripts/docker-helper-4.x/cht-docker-compose.sh', (response) => {
.get('https://raw.githubusercontent.com/medic/cht-core/dnm-docker-helper-experiments/scripts/docker-helper-4.x/cht-docker-compose.sh', (response) => {
response.pipe(file);
file.on('finish', () => file.close(resolve));
file.on('error', () => file.close(reject));
Expand All @@ -28,10 +28,9 @@ const ensureScriptExists = async () => {
}

if (!fs.existsSync(dockerHelperScript)) {
console.log('downloading script');
await downloadDockerHelperScript();
console.log(fs.readFileSync(dockerHelperScript).toString());

Check warning on line 32 in test/e2e/cht-docker-utils.js

View workflow job for this annotation

GitHub Actions / E2E tests

Unexpected console statement

Check warning on line 32 in test/e2e/cht-docker-utils.js

View workflow job for this annotation

GitHub Actions / Build for Node version 18.x

Unexpected console statement

Check warning on line 32 in test/e2e/cht-docker-utils.js

View workflow job for this annotation

GitHub Actions / Build for Node version 20.x

Unexpected console statement

Check warning on line 32 in test/e2e/cht-docker-utils.js

View workflow job for this annotation

GitHub Actions / E2E tests

Unexpected console statement

Check warning on line 32 in test/e2e/cht-docker-utils.js

View workflow job for this annotation

GitHub Actions / Build for Node version 18.x

Unexpected console statement

Check warning on line 32 in test/e2e/cht-docker-utils.js

View workflow job for this annotation

GitHub Actions / Build for Node version 20.x

Unexpected console statement
}
console.log(fs.readFileSync(dockerHelperScript).toString());
};

const sleep = (ms) => new Promise(resolve => setTimeout(resolve, ms));
Expand Down

0 comments on commit 8009130

Please sign in to comment.