-
Notifications
You must be signed in to change notification settings - Fork 106
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
Upgrade Node to 22 and update the dependenies to be compatible with node 22 as node v16 is depricated #554
Upgrade Node to 22 and update the dependenies to be compatible with node 22 as node v16 is depricated #554
Conversation
Dockerfile.dev
Outdated
@@ -44,7 +44,9 @@ RUN mv /app/database-docker/db/ /app/ && rm -rf /app/database-docker/ | |||
RUN echo "host all all 0.0.0.0/0 md5" >> /etc/postgresql/15/main/pg_hba.conf | |||
RUN echo "listen_addresses='*'" >> /etc/postgresql/15/main/postgresql.conf | |||
RUN sed -i "s/^port = .*/port = ${DB_PORT}/" /etc/postgresql/15/main/postgresql.conf | |||
RUN npm install --global yarn --force | |||
RUN curl -fsSL https://deb.nodesource.com/setup_18.x | bash - \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not sure whether this was required or not. As the base image in this dockerfile is middlewareeng/oss-base
, and I suppose this image is being built from Dockerfile.prebuilt(Where I upgraded to node 18)
If my understanding of the code is correct then changes to this file can be removed and a new commit can be made to middlewareeng/oss-base
with the updates in the Dockerfile.prebuilt
I am not so sure about my understanding of this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not sure whether this was required or not. As the base image in this dockerfile is
middlewareeng/oss-base
, and I suppose this image is being built from Dockerfile.prebuilt(Where I upgraded to node 18) If my understanding of the code is correct then changes to this file can be removed and a new commit can be made tomiddlewareeng/oss-base
with the updates in the Dockerfile.prebuiltI am not so sure about my understanding of this
yep. Not needed here
Dockerfile.dev
Outdated
RUN curl -fsSL https://deb.nodesource.com/setup_22.x | bash - \ | ||
&& apt-get install -y nodejs \ | ||
&& npm install --global yarn |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this required in the dev setup, if we are already using the pre-built base image. This would slow down the dev process.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you push the pre-built base image with the latest changes so I can remove this one? As the old base image has node 16
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Push into dockerhub I mean
I will update the base image today @thesujai. |
3b7284d
to
48ac02f
Compare
Reverted it! @adnanhashmi09 |
I have pushed the latest build with node 22 of oss-base. Please test your PR once and check if everything works. Please rebase and test your pr once. Seems to work fine for me. |
Linked Issue(s)
Fixes #553
Acceptance Criteria fulfillment
Proposed changes (including videos or screenshots)
NA
Further comments
NA