-
Notifications
You must be signed in to change notification settings - Fork 57
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
Extension compliance updates #35
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,3 +18,5 @@ k6 | |
|
||
.idea/ | ||
.DS_Store | ||
|
||
*test.db |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,13 +2,13 @@ | |
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same with this script, I would remove it. The way to simplify the Docker CLI is to use Docker Compose, but for this simple extension, I don't think we need it either. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Leaving this as the CGO support is required to switch to the xk6 docker image. |
||
set -e | ||
|
||
if [ $# -ne 1 ]; then | ||
echo "Usage: ./docker-run.sh <SCRIPT_NAME>" | ||
if [ $# -lt 1 ]; then | ||
echo "Usage: ./docker-run.sh <SCRIPT_NAME> [additional k6 args]" | ||
exit 1 | ||
fi | ||
|
||
# By default, we're assuming you created the extended k6 image as "grafana/k6-for-sql:latest". | ||
# If not, override the name on the command-line with `IMAGE_NAME=...`. | ||
IMAGE_NAME=${IMAGE_NAME:="grafana/k6-for-sql:latest"} | ||
|
||
docker run -v $PWD:/scripts -it --rm $IMAGE_NAME run /scripts/$1 | ||
docker run -v $PWD:/scripts -it --rm $IMAGE_NAME run /scripts/$1 ${@:2} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should drop this Dockerfile now that xk6 has one. And update the note in the README with the right command to build xk6-sql with it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
xk6 image does not yet support CGO_ENABLED as required for SQLite3 support. I created an issue in xk6 for this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As I mentioned in the issue, this doesn't require any changes in the
grafana/xk6
image.So I'd still prefer removing this Dockerfile and the
docker-run.sh
script.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should keep this until xk6 docker image is actually able to build the binary. Once we can build using
CGO_ENABLED
, I'll be more than happy to update the documentation and remove theDockerfile
anddocker-run.sh
files.