Menu

Register Goose with the Fastify Command
📰

Register Goose with the Fastify Command

DEV Community: docker·flisk·about 4 hours ago
#LAVPMBch
#devtodocker#devto#dev#dockerfile#flisk
Reading 0:00
15s threshold

Part 3 of Any language on Flisk. From the Flisk project root, with the Dockerfile from part 2 already in place:

flisk resource goose-api --type bring-your-own --stack shop \ --dockerfile ./Dockerfile --health-path /health \ --path services/shop/goose-api --port 4500 --yes

Enter fullscreen mode

Exit fullscreen mode

That is the Fastify command with the names changed. --yes skips the create prompt. --port 4500 must be free and inside 4000–5999. Drop --port to take the next free port.

--path must stay inside the project directory. A path outside it is refused with Path must be within the project directory .

The manifest Flisk writes

Your Dockerfile stays. The new file looks like the example at the top of the BYO doc:

{ "appName" : "goose-api" , "appType" : "bring-your-own" , "stack" : "shop" , "port" : 4500 , "healthCheckPath" : "/health" , "dockerfile" : "./Dockerfile" }

Enter fullscreen mode

Exit fullscreen mode

Read what the CLI wrote before you edit it.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.