#Welcome The slowness might be called by
1 messages · Page 1 of 1 (latest)
here's the code from the step i'm currently on
import Client, { connect } from "@dagger.io/dagger"
// initialize Dagger client
connect(async (client: Client) => {
// get Node image
// get Node version
const node = client.container().from("node:16").withExec(["node", "-v"])
// execute
const version = await node.stdout()
// print output
console.log("Hello from Dagger and Node " + version)
})
here's the link: https://docs.dagger.io/sdk/nodejs/783645/get-started
re logging i've tried the following env variables i found somewhere else in the docs without any luck:
export DAGGER_LOG_FORMAT="plain"
export DAGGER_LOG_LEVEL="trace"
there’s an argument you can pass to connect to configure a log output
ahh thank you
i was also referencing this video from 3 months ago https://youtu.be/cuqmq_aTNfY?t=253
The Dagger Node.js SDK contains everything you need to develop your CI/CD pipelines in Typescript or Javascript, run them in containers anywhere.
In this demo, we’ll show you how to create a CI tool to test your Node.js application against multiple Node.js versions.
which tipped me off that i should be getting more in the logs
Okay i have logs now which his nice:
weirdly the bulk of the delay seems to be from before connecting with the engine
this is not expected, would you mind filing an issue?
it may be caused by the auto-install logic. The client library will check for a running or out-of-date engine and if not there, will download it automatically. You may be experiencing an issue with that feature
that could be. i think i installed a version of the engine last summer