Skip to content

Commit 56aaf0d

Browse files
authored
Initial implementation (#2)
* Initial implementation * Update `README` * Update `README` * Pin `loadimpact/k6` to a release * Add `init.sh` * Update `README` * Extract common headers into a variable * import `options` into scenarios * Parameterize `email` * Add `setup` and `teardown` functions * Update `README` * Update `scenarios` * Update `scenarios` * Update `docs` * Update `docs` * Update `docs` * Update `README` * Update `README` * Update `README` * Update `README` * Update `README` * Update `README` * Update `README`
1 parent d41d787 commit 56aaf0d

17 files changed

+939
-11
lines changed

.dockerignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
.git
2+
.gitignore
3+
.editorconfig
4+
.idea
5+
*.iml

.editorconfig

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# top-most EditorConfig file
2+
root = true
3+
4+
# Unix-style newlines with a newline ending every file
5+
[*]
6+
end_of_line = lf
7+
insert_final_newline = true
8+
9+
# Override for Makefile
10+
[{Makefile, makefile, GNUmakefile}]
11+
indent_style = tab
12+
indent_size = 4
13+
14+
[Makefile.*]
15+
indent_style = tab
16+
indent_size = 4
17+
18+
[shell]
19+
indent_style = tab
20+
indent_size = 4
21+
22+
[*.sh]
23+
indent_style = tab
24+
indent_size = 4

.gitignore

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,2 @@
1-
# Local .terraform directories
2-
**/.terraform/*
3-
4-
# .tfstate files
5-
*.tfstate
6-
*.tfstate.*
7-
8-
# .tfvars files
9-
*.tfvars
1+
.idea
2+
*.iml

Dockerfile.grafana

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
FROM grafana/grafana:5.1.3
2+
3+
USER root
4+
5+
RUN apt-get update && apt-get -y install curl
6+
7+
# Change the default data directory (otherwise grafanadb won't persist)
8+
RUN mkdir /var/lib/grafanadb
9+
ENV GF_PATHS_DATA /var/lib/grafanadb
10+
11+
# Init Grafana and preconfigure data source to be influxdb
12+
RUN ./init.sh
13+
14+
CMD ["/run.sh"]

Dockerfile.influxdb

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
FROM influxdb:1.2.2
2+
3+
USER root
4+
5+
# Create db
6+
RUN /bin/bash -c "influxd run & sleep 5 && influx -execute 'CREATE DATABASE k6' && kill %1 && sleep 5"
7+
8+
CMD ["influxd"]

Dockerfile.k6

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
FROM loadimpact/k6:0.20.0
2+
3+
USER root
4+
5+
WORKDIR /root/
6+
7+
ENV PATH "$PATH:/root"
8+
9+
ENTRYPOINT ["./k6"]

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@
186186
same "printed page" as the copyright notice for easier
187187
identification within third-party archives.
188188

189-
Copyright [yyyy] [name of copyright owner]
189+
Copyright 2018 Cloud Posse, LLC
190190

191191
Licensed under the Apache License, Version 2.0 (the "License");
192192
you may not use this file except in compliance with the License.

0 commit comments

Comments
 (0)