Skip to content

Conversation

@nzapo
Copy link

@nzapo nzapo commented Apr 2, 2022

The currently built container image works fine if you want to
invoke artillery through a single docker command. But if you want to run
multiple artillery commands in the same container instance, or if you
want to use Artillery's container image as a base layer, then you ran
into issues such #1394.

The issue us that the executable in the path is named run instead of
artillery. To address this while maintain compatibility for any users
depending on the existing executable we can run an npm install which
will setup artillery as if it had been installed globally.

Fixes #1394.

Fixes artilleryio#1394.

The currently built container image works fine if you want to
invoke artillery through a single docker command. But if you want to run
multiple artillery commands in the same container instance, or if you
want to use Artillery's container image as a base layer, then you ran
into issues such artilleryio#1394.

The issue us that the executable in the path is named `run` instead of
`artillery`. To address this while maintain compatibility for any users
depending on the existing executable we can run an `npm install` which
will setup artillery as if it had been installed globally.
@nzapo nzapo force-pushed the dockerfile-npm-link branch from 21b5866 to 5209e4e Compare April 9, 2022 12:19
Copy link

@YassinEldeeb YassinEldeeb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Latest Docker image doesn't include artillery command

2 participants