#Uknown command -- dagger init [GCP Cloud Run Deploymen]

1 messages · Page 1 of 1 (latest)

abstract sage
#

Hey everybody,

I was following this tutorial to convert. a makefile into a dagger pipeline..
But as i hit dagger init i got this error ''Error: unknown command "init" for "dagger"
Run 'dagger --help' for usage.''

any idea where could this come from? Outdated doc?

orchid goblet
#

Heya @abstract sage, what tutorial were you following?

abstract sage
orchid goblet
#

aha, yeah, so these these docs are archived - in the banner, this is for dagger 0.1x

abstract sage
#

oh ! i didnt notice it. my bad.

#

I was using the up to date one.. closed it.. google the tutorial and the archived one was up in SEO

orchid goblet
abstract sage
#

thanks!

orchid goblet
#

oh no worries ❤️

#

hope the makefile conversion goes well 😄 i've had the idea sitting in the back of my head that it would be really cool to be able to automate that, but makefiles are generally just a bit of a pain to parse

abstract sage
#

hhhh i highly agree!

actually it's pretty simple:

''# Define variables
PROJECT_ID := project_id
REGION := region
REPO_NAME := tax
APP_NAME := app

Set default target

.DEFAULT_GOAL := deploy

Build Docker image

build:
gcloud builds submit
--tag gcr.io/$(PROJECT_ID)/$(APP_NAME)
--project=$(PROJECT_ID)

Deploy to Cloud Run

deploy:
gcloud run deploy $(APP_NAME)
--image gcr.io/$(PROJECT_ID)/$(APP_NAME)
--project=$(PROJECT_ID)
--region=$(REGION)
--platform managed
--allow-unauthenticated''