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

Getting error on installing git from dockerfile #39

Open
ramandeep2008singh opened this issue Jan 29, 2025 · 1 comment
Open

Getting error on installing git from dockerfile #39

ramandeep2008singh opened this issue Jan 29, 2025 · 1 comment
Assignees
Labels

Comments

@ramandeep2008singh
Copy link

Hello,

I am trying to follow the instructions stated in README's docker-compose section and i get this error on step-2 (docker compose up -d)

`[+] Running 0/0
[+] Running 0/1Building 0.1s
[+] Building 1.8s (12/17) docker:desktop-linux
=> [k6 internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 452B 0.0s
=> WARN: FromAsCasing: 'as' and 'FROM' keywords' casing do not match (line 1) 0.0s
=> [k6 internal] load metadata for docker.io/library/alpine:3.20 0.0s
=> [k6 internal] load metadata for docker.io/library/golang:1.22-alpine3.20 1.2s
=> [k6 auth] library/golang:pull token for registry-1.docker.io 0.0s
=> [k6 internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> [k6 builder 1/6] FROM docker.io/library/golang:1.22-alpine3.20@sha256:316ed04bea321c6a003f9ff2752d58454d0efa584e07d7173ce6dd9b0d50cd54 0.0s
=> => resolve docker.io/library/golang:1.22-alpine3.20@sha256:316ed04bea321c6a003f9ff2752d58454d0efa584e07d7173ce6dd9b0d50cd54 0.0s
=> [k6 internal] load build context 0.0s
=> => transferring context: 3.03kB 0.0s
=> CANCELED [k6 stage-1 1/4] FROM docker.io/library/alpine:3.20@sha256:31687a2fdd021f85955bf2d0c2682e9c0949827560e1db546358ea094f740f12 0.6s
=> => resolve docker.io/library/alpine:3.20@sha256:31687a2fdd021f85955bf2d0c2682e9c0949827560e1db546358ea094f740f12 0.6s
=> CACHED [k6 builder 2/6] WORKDIR /go/src/go.k6.io/k6 0.0s
=> CACHED [k6 builder 3/6] ADD . . 0.0s
=> ERROR [k6 builder 4/6] RUN apk --no-cache add git 0.5s
=> [k6 auth] library/alpine:pull token for registry-1.docker.io 0.0s

[k6 builder 4/6] RUN apk --no-cache add git:
0.077 fetch https://dl-cdn.alpinelinux.org/alpine/v3.20/main/aarch64/APKINDEX.tar.gz
0.315 20ED72BCFFFF0000:error:0A000086:SSL routines:tls_post_process_server_certificate:certificate verify failed:ssl/statem/statem_clnt.c:2091:
0.318 WARNING: fetching https://dl-cdn.alpinelinux.org/alpine/v3.20/main: Permission denied
0.318 fetch https://dl-cdn.alpinelinux.org/alpine/v3.20/community/aarch64/APKINDEX.tar.gz
0.506 20ED72BCFFFF0000:error:0A000086:SSL routines:tls_post_process_server_certificate:certificate verify failed:ssl/statem/statem_clnt.c:2091:
0.508 WARNING: fetching https://dl-cdn.alpinelinux.org/alpine/v3.20/community: Permission denied
0.509 ERROR: unable to select packages:
0.509 git (no such package):
[+] Running 0/1red by: world[git]
⠏ Service k6 Building 1.9s
failed to solve: process "/bin/sh -c apk --no-cache add git" did not complete successfully: exit code: 1`

Could you please assist in whats wrong here?
Thanks a ton in advance!

@ramandeep2008singh
Copy link
Author

ramandeep2008singh commented Jan 29, 2025

I have also tried running the tests from my terminal using build with xk6 approach:

xk6 build --with github.com/grafana/xk6-output-influxdb

and

K6_INFLUXDB_ORGANIZATION=k6io \ K6_INFLUXDB_BUCKET=demo \ K6_INFLUXDB_TOKEN=EEKpryGZk8pVDXmIuy484BKUxM5jOEDv7YNoeNZUbsNbpbPbP6kK_qY9Zsyw7zNnlZ7pHG16FYzNaqwLMBUz8g== \ ./k6 run -o xk6-influxdb=http://localhost:8086 ./build/scenario.spec.js

But it gives me following error:

ERRO[0000] GoError: unknown module: k6/x/nats at go.k6.io/k6/js.(*requireImpl).require-fm (native) at webpack://k6-performance-testing/external%20commonjs%20%22k6/x/nats%22:1:34(156) at file:///Users/xxx/Documents/xxx/xxx-xxx-xxx/build/scenario.spec.js:539:12(3) hint="script exception"

And, when I build xk6 with xk6-nats:
xk6 build --with github.com/ydarias/xk6-nats@latest

it gives me further this error:

`K6_INFLUXDB_ORGANIZATION=k6io \
K6_INFLUXDB_BUCKET=demo
K6_INFLUXDB_TOKEN=EEKpryGZk8pVDXmIuy484BKUxM5jOEDv7YNoeNZUbsNbpbPbP6kK_qY9Zsyw7zNnlZ7pHG16FYzNaqwLMBUz8g==
./k6 run -o xk6-influxdb=http://localhost:8086 ./build/scenario.spec.js

      /\      |‾‾| /‾‾/   /‾‾/   
 /\  /  \     |  |/  /   /  /    
/  \/    \    |     (   /   ‾‾\  

/ \ | |\ \ | (‾) |
/ __________ \ |__| _\ ____/ .io

Init [--------------------------------------]
default [--------------------------------------]
ERRO[0000] invalid output type 'xk6-influxdb', available types are: cloud, csv, experimental-prometheus-rw, influxdb, json, statsd `

And, I removed the xk6 from the execution command, which furthere asked me to use the build with
xk6 build --with github.com/grafana/xk6-output-influxdb

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants