Skip to content

GREENWOOD_VERSION argument not being interpolated in Dockerfile #1

@thescientist13

Description

@thescientist13

In the Dockerfile, for convenience, we have the version of Greenwood to be used as an ARG, just like NODE_VERSION

ARG GREENWOOD_VERSION=alpha

# ...

RUN npm i @greenwood/cli@${GREENWOOD_VERSION}

However, in our example above, in which we're using the alias alpha, we are actually just getting whatever is latest on npm (0.29.4) instead of the latest alpha (0.30.0-alpha.6)

[+] Running 1/0
 ✔ Container greenwood-demo-platform-docker-server-1  Created                                                              0.0s 
Attaching to server-1
server-1  | 
server-1  | > [email protected] start
server-1  | > npm run serve
server-1  | 
server-1  | 
server-1  | > [email protected] serve
server-1  | > greenwood serve
server-1  | 
server-1  | -------------------------------------------------------
server-1  | Welcome to Greenwood (v0.29.4) ♻️
server-1  | -------------------------------------------------------
server-1  | Initializing project config
server-1  | Initializing project workspace contexts
server-1  | Loading graph from build output...
server-1  | Loading manifest from build output...
server-1  | Loading resources from build output...
server-1  | Running Greenwood with the serve command.
server-1  | Started server at http://localhost:8080

It seems that per the logs, maybe it is not getting interpolated correctly? Maybe we just have the syntax wrong?

 => CACHED [server deps 2/2] RUN npm i @greenwood/cli@${GREENWOOD_VERSION}   

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions