better named tests and log local-docker params
parent
fe9da282a7
commit
0cc6270b68
|
|
@ -3620,7 +3620,7 @@ class LocalDockerCloudRunner {
|
||||||
cloud_runner_logger_1.default.log(commands);
|
cloud_runner_logger_1.default.log(commands);
|
||||||
const { workspace, actionFolder } = model_1.Action;
|
const { workspace, actionFolder } = model_1.Action;
|
||||||
let myOutput = '';
|
let myOutput = '';
|
||||||
yield docker_1.default.run(image, { workspace, actionFolder }, false, commands, {
|
yield docker_1.default.run(image, Object.assign({ workspace, actionFolder }, model_1.CloudRunner.buildParameters), false, commands, {
|
||||||
listeners: {
|
listeners: {
|
||||||
stdout: (data) => {
|
stdout: (data) => {
|
||||||
myOutput += data.toString();
|
myOutput += data.toString();
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -4,7 +4,7 @@ import CloudRunnerLogger from '../../services/cloud-runner-logger';
|
||||||
import { ProviderInterface } from '../provider-interface';
|
import { ProviderInterface } from '../provider-interface';
|
||||||
import CloudRunnerSecret from '../../services/cloud-runner-secret';
|
import CloudRunnerSecret from '../../services/cloud-runner-secret';
|
||||||
import Docker from '../../../docker';
|
import Docker from '../../../docker';
|
||||||
import { Action } from '../../../../model';
|
import { Action, CloudRunner } from '../../../../model';
|
||||||
|
|
||||||
class LocalDockerCloudRunner implements ProviderInterface {
|
class LocalDockerCloudRunner implements ProviderInterface {
|
||||||
inspect(): Promise<string> {
|
inspect(): Promise<string> {
|
||||||
|
|
@ -62,7 +62,7 @@ class LocalDockerCloudRunner implements ProviderInterface {
|
||||||
|
|
||||||
const { workspace, actionFolder } = Action;
|
const { workspace, actionFolder } = Action;
|
||||||
let myOutput = '';
|
let myOutput = '';
|
||||||
await Docker.run(image, { workspace, actionFolder }, false, commands, {
|
await Docker.run(image, { workspace, actionFolder, ...CloudRunner.buildParameters }, false, commands, {
|
||||||
listeners: {
|
listeners: {
|
||||||
stdout: (data: Buffer) => {
|
stdout: (data: Buffer) => {
|
||||||
myOutput += data.toString();
|
myOutput += data.toString();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue