-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add use the docker to execute scripts in jl
- Loading branch information
Showing
4 changed files
with
47 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
FROM julia:1.11 | ||
|
||
WORKDIR /app | ||
|
||
COPY . . | ||
|
||
RUN julia -e 'using Pkg; Pkg.add("Stressify")' | ||
|
||
CMD ["julia", "--project=."] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import Pkg | ||
Pkg.activate(".") | ||
using Stressify | ||
|
||
#execute for the one VU for one iteration | ||
Stressify.options( | ||
vus = 1, | ||
iterations = 1, | ||
duration = nothing | ||
) | ||
|
||
results = Stressify.run_test( | ||
Stressify.http_get("https://httpbin.org/get"), | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters