-
Notifications
You must be signed in to change notification settings - Fork 10
Define official Docker images #16
Comments
Just to confirm, these would be images which an application would extend Just a thought, what if we support an I'm tempted to suggest |
There are two things that kinda "stump" me:
I think the API makes the decision for us. Using |
In the perfect world, yes. e.g. FROM redwoodjs/web:0.49.1
COPY web .
COPY yarn.lock .
... I'm not entirely sure how or if this could be done (including boilerplate and building) but it would definitely be awesome if possible and without to much complexity.
I'm not entirely sure what you mean by eject. Care to elaborate? 🙂
When it comes to "special Dockerfiles", it would be neat with a
I agree. I often see docker-compose as part of the development cycle and sometimes forget that it's also a part of some production deployments, and definitely a valid approach. I'll remove it from this Issue and put it in another one. 💖
Really good points! I'm not sure. Maybe the officially supported one is basically
+1 |
Im also a fan of Having a base layer redwood image to start with would be great! However there are two issues which need to be addressed:
|
Agreed
I guess there could be some build time to save, if the base image would only hold some dependencies to copy in, but ultimately might just be a headache to maintain. I'll see if I can throw together something.
Yeah, thanks for creating that issue. While I don't mind switching over to canary from time to time, I ended up doing this to globally install with the appropriate version. [...]
# Install jq
RUN apk update && apk add jq && rm -rf /var/cache/apk/*
# Get Redwood version from api/package.json and it's @redwoodjs/api dependency
# Also, let's remove potential `^` character from the version.
RUN RW_VERSION=$(jq -r '.dependencies["@redwoodjs/api"]' api/package.json | sed 's/\^//')
# Install dependencies
RUN yarn install
# Install additional dependencies
RUN yarn add @redwoodjs/api-server@${RW_VERSION} @redwoodjs/internal@${RW_VERSION}
[...] Edit RUN RW_VERSION=$(cat package.json | grep "@redwoodjs/api" | cut -d ":" -f2 | sed 's/[^a-zA-Z0-9\.\-]*//g') |
Closing issue in preparation for archiving. |
This issue seeks to define what official RedwoodJS Docker images should be supported and maintained by the community.
Production
Discussion on Dockerfiles and it's implementation
Suggestions
yarn rw serve
- examplestandal-cli-both
standal-ce-nginx
,jeliasson-nginx
standal-ce-nginx
,jeliasson-nginx
Todo
Overall
yarn rw-server api
overyarn rw serve api
Build tracking
standal-ce-nginx
standal-cli-both
jeliasson-nginx
The text was updated successfully, but these errors were encountered: