Skip to content

Commit 29ab1ae

Browse files
committed
Added generator
1 parent 2dfce9b commit 29ab1ae

4 files changed

Lines changed: 466 additions & 1 deletion

File tree

FlyFast-load-generator/Dockerfile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
FROM python:3.7-slim-buster
2+
3+
WORKDIR /app/FlyFast-load-generator
4+
COPY . .
5+
6+
ENV FLYFAST_HOST_URL="localhost"
7+
ENV FLYFAST_HOST_PORT="80"
8+
9+
CMD python3 main.py -host $FLYFAST_HOST_URL -p $FLYFAST_HOST_PORT -steps 30 40 50 40 -num_minutes 1

FlyFast-load-generator/README.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# FlyFast - Data Generator
2+
3+
This repository contains the source code for the Load Generator of FlyFast.
4+
5+
To view the full source code and to run the whole application through Docker, head over to [FlyFast](https://github.com/Aternity/FlyFast).
6+
7+
## Requirements
8+
9+
1. [Git](https://git-scm.com/) (Optional)
10+
2. a Docker host, for example [Docker Desktop](https://www.docker.com/products/docker-desktop) (Optional)
11+
3. [Python 3.7](https://www.python.org/downloads/release/python-370/) (Required)
12+
4. [WebUI](https://github.com/Aternity/FlyFast-WebUI) (Required Only For Having A UI)
13+
5. [FlightSearch](https://github.com/Aternity/FlyFast-FlightSearch) (Required Only For Making Backend Calls)
14+
15+
## Getting Started
16+
1. You can either start the application using [Python](#step-by-step-using-python) or [Docker](#step-by-step-using-docker).
17+
18+
## Step by Step Using Python
19+
1. Start the application.
20+
```
21+
py main.py -host localhost -p 80 -steps 10 20 30 40 30 20 -num_minutes 2
22+
```
23+
24+
## Step by Step Using Docker
25+
1. Build our docker:
26+
```
27+
docker build . -t flyfast-load-generator
28+
```
29+
2. Run our docker container:
30+
```
31+
docker run --rm -e FLYFAST_HOST_URL=http://localhost -e FLYFAST_HOST_PORT=80 flyfast-load-generator
32+
```

0 commit comments

Comments
 (0)