Skip to content
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

Update Docker environment and instructions #7

Merged
merged 3 commits into from
Jan 26, 2022
Merged

Conversation

ppcano
Copy link
Contributor

@ppcano ppcano commented Jan 26, 2022

To make it work and consistent with https://github.com/grafana/xk6-output-timescaledb/

@ppcano ppcano requested a review from codebien January 26, 2022 15:11
Copy link
Collaborator

@codebien codebien left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Few comments, thanks for it 🙏

Dockerfile Outdated Show resolved Hide resolved
Dockerfile Outdated Show resolved Hide resolved
Dockerfile Outdated Show resolved Hide resolved
Dockerfile Outdated
--with github.com/grafana/xk6-output-influxdb=.
RUN apk --no-cache add git
RUN CGO_ENABLED=0 go install go.k6.io/xk6/cmd/xk6@latest
RUN CGO_ENABLED=0 xk6 build --with github.com/grafana/xk6-output-influxdb=. --output /tmp/k6
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
RUN CGO_ENABLED=0 xk6 build --with github.com/grafana/xk6-output-influxdb=. --output /tmp/k6
RUN CGO_ENABLED=0 xk6 build --with github.com/grafana/xk6-output-influxdb=.

Why not use the default folder?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@codebien -> Line 11 -> COPY --from=builder /tmp/k6 /usr/bin/k6

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it is the motivation why the Line 11 before was COPY --from=builder /go/bin/k6 /usr/bin/k6 for using the default Go binary folder

@ppcano ppcano merged commit 961e9e5 into main Jan 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants