Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GREENWOOD_VERSION argument not being interpolated in Dockerfile #1

Open
thescientist13 opened this issue Sep 19, 2024 · 0 comments
Open
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@thescientist13
Copy link
Member

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}   
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant