Could use some help as I'm running into a few issues with setting up Dagger + Go SDK to invoke an angular build.
I'm a little crunched on time so can't go to far down the rabbit hole, so maybe a little help can get me over the few issues I'm running into?
First issue:
node := client.Container().From("alpine:latest"). // Trimmed down to almost 6m vs node images at several hundred mb
WithExec([]string{"apk", "add", "--update", "nodejs", "npm"})
Works great. Now I move on to running the setup commands and get errors with no details on why.
const AngularVersion = "13"
node = node.WithMountedDirectory(".", src).
WithWorkdir("/src")
path := "dist/"
node = node.WithExec([]string{"npm", "install", "-g", "@angular/cli"}) // fmt.Sprintf("@angular/cli@%s", AngularVersion)}).
node = node.WithExec([]string{"npm", "install", "--ci"})
output := node.Directory(path)
I get issues with both the npm install globally and the ci (which i expect as I need to figure out private authentication stuff).
That said, this is all I get for the npm global install.
#2 ERROR: process "npm install -g @angular/cli" did not complete successfully: exit code: 1
Error: input:1: container.from.withExec.withMountedDirectory.withWorkdir.withExec.withExec.directory process "npm install -g @angular/cli" did not complete successfully: exit code: 1
I can run docker run --rm -it alpine:latest /bin/sh and run this stuff manually without an error.