Skip to content

Commit

Permalink
docs: prepare next release notes
Browse files Browse the repository at this point in the history
  • Loading branch information
szkiba committed Oct 1, 2023
1 parent e89d3cf commit feb2b31
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions releases/v0.3.0.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<!--
SPDX-FileCopyrightText: 2023 Iván SZKIBA
SPDX-License-Identifier: AGPL-3.0-only
-->

k6x `v0.3.0` is here 🎉!

Main new features:

- [Docker Image](#docker-image) [#6](https://github.com/szkiba/k6x/issues/6)
- [Add dependencies on the command line](#add-dependencies-on-the-command-line) ([#10](https://github.com/szkiba/k6x/issues/10))

## Add dependencies on the command line

In some cases, it may be useful to add dependencies on the command line without modifying the test script.

Additional dependencies and version constraints can be specified on the command line with the --with flag.

`--with dependency` you can specify additional dependencies and version constraints, the form of the `dependency` is the same as that used in the `"use k6 with"` pragma (practically the same as the string after the `use k6 with`)

```
k6x run --with k6/x/mock script.js
```

*The example above adds the xk6-mock extension to the list of dependencies.*

## Docker Image

In certain circumstances, it can be useful to run k6x using the docker engine itself, as a drop-in replacement of the k6 docker image. Therefore, it is advisable to publish in the form of a docker image that contains the tools necessary for building (golang, git).

The [szkiba/k6x](https://hub.docker.com/r/szkiba/k6x) docker image is available from the Docker Hub.

The k6x docker builder (`--builder docker`) now uses the k6x docker image instead of the xk6 docker image to build the k6 binary. This results in a significant reduction in build time. The speed increase is due to the use of persistent go cache. The `k6x-cache` volume is a persistent local docker volume. This is where the go cache and the go module cache are placed.

0 comments on commit feb2b31

Please sign in to comment.