Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to run from within container? #1722

Open
trimblemario opened this issue May 10, 2023 · 1 comment
Open

Ability to run from within container? #1722

trimblemario opened this issue May 10, 2023 · 1 comment

Comments

@trimblemario
Copy link

I have looked for this answer a few places, and maybe I am just missing it, but I'd like to be able to run this in docker-compose and kubernetes.

The former would require a volume mount, and then I'm assuming it needs environment variables to point it to the directory with configs (or maybe the exact file(s) - I'm not sure).

The latter would be environment variables and probably just copying the files into the image in the Dockerfile.

Are there any examples or can someone please help me run both of these (or either)?

@JUN-KOBAYASHI
Copy link
Contributor

Hi,trimblemario

There are no particular difficulties.
A docker image is also available.
https://hub.docker.com/r/blazemeter/taurus/

for example:

docker pull blazemeter/taurus
mkdir -p /tmp/_taurus
cat > /tmp/_taurus/test.yaml
execution:
- concurrency: 10
  ramp-up: 1m
  hold-for: 1m30s
  scenario: simple
  
scenarios:
  simple:
    think-time: 0.75
    requests:
    - http://blazedemo.com/
    - http://blazedemo.com/vacation.html

## CTRL+D

docker run -it --rm -v /tmp/_taurus:/bzt-configs blazemeter/taurus  /tmp/_taurus/test.yaml

It is also possible to download the source code and BUILD it.
It is a good idea to build and work on the source code if you want to run it continuously.

You can also download the source code and BUILD it.

If you want to run continuously, it is better to BUILD the source code and work with it.

It is convenient to change the "ENTRYPOINT" in the Dockerfile and start the shell, in the container, so you can log in.
I am running "taurus" on vmware's PhotonOS.

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

No branches or pull requests

2 participants