Skip to content

Commit

Permalink
Initial implementation (#2)
Browse files Browse the repository at this point in the history
* 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`
  • Loading branch information
aknysh authored May 24, 2018
1 parent d41d787 commit 56aaf0d
Show file tree
Hide file tree
Showing 17 changed files with 939 additions and 11 deletions.
5 changes: 5 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.git
.gitignore
.editorconfig
.idea
*.iml
24 changes: 24 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# top-most EditorConfig file
root = true

# Unix-style newlines with a newline ending every file
[*]
end_of_line = lf
insert_final_newline = true

# Override for Makefile
[{Makefile, makefile, GNUmakefile}]
indent_style = tab
indent_size = 4

[Makefile.*]
indent_style = tab
indent_size = 4

[shell]
indent_style = tab
indent_size = 4

[*.sh]
indent_style = tab
indent_size = 4
11 changes: 2 additions & 9 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,2 @@
# Local .terraform directories
**/.terraform/*

# .tfstate files
*.tfstate
*.tfstate.*

# .tfvars files
*.tfvars
.idea
*.iml
14 changes: 14 additions & 0 deletions Dockerfile.grafana
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
FROM grafana/grafana:5.1.3

USER root

RUN apt-get update && apt-get -y install curl

# Change the default data directory (otherwise grafanadb won't persist)
RUN mkdir /var/lib/grafanadb
ENV GF_PATHS_DATA /var/lib/grafanadb

# Init Grafana and preconfigure data source to be influxdb
RUN ./init.sh

CMD ["/run.sh"]
8 changes: 8 additions & 0 deletions Dockerfile.influxdb
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
FROM influxdb:1.2.2

USER root

# Create db
RUN /bin/bash -c "influxd run & sleep 5 && influx -execute 'CREATE DATABASE k6' && kill %1 && sleep 5"

CMD ["influxd"]
9 changes: 9 additions & 0 deletions Dockerfile.k6
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
FROM loadimpact/k6:0.20.0

USER root

WORKDIR /root/

ENV PATH "$PATH:/root"

ENTRYPOINT ["./k6"]
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@
same "printed page" as the copyright notice for easier
identification within third-party archives.

Copyright [yyyy] [name of copyright owner]
Copyright 2018 Cloud Posse, LLC

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

0 comments on commit 56aaf0d

Please sign in to comment.