This message was deleted.
# infisical-feedback
s
This message was deleted.
✅ 1
a
Ohh @Gregorius Agung Narindra Aditantyo good suggestion indeed. This is because openshift expects docker image should not have root access. CC: @Maidul Islam
m
Hey @Gregorius Agung Narindra Aditantyo I made these changes but it increased our build times 4X over. We’ll need to figure out why that is the case before we make this change in
main
. If you haven’t already can you please make a github issue for this so that it is more accessible to others?
a
@Maidul Islam i think i know why that occured. Its because the files inside, as. its final output it needs to apply chown to each file recursively. To resolve this i guess easy way would be just do it by creating an app directory before hand
m
Like apply the user/group to the
/app
folder before adding things into it?
a
yup that will resolve it
that's what i used to do it for this
m
@Gregorius Agung Narindra Aditantyo also suggested https://gist.github.com/narindraditantyo/7e77c64f61e686da493ab1098d468ac5 for backend image. Putting it here so it is all in one place
g
Hi @Akhil Mohan, I can confirm that recursive chown after the folder filled with files might be the cause of slow build time
Applying user/group to
app
folder before adding things into it doesn't solve the problem and still causing errors like this:
a
when u do like that i think u need to also pass a flag so that anything inside later also get the same effect
g
I'll make a github issue tomorrow to help monitor this😄
🙌 1
m
thank you so much!
g
Hi @Maidul Islam, GitHub issue has been created and can be checked at https://github.com/Infisical/infisical/issues/840 Looking forward to the next update😄
m
@Gregorius Agung Narindra Aditantyo thanks for making the issue! Do you think you’ll have time to look into any way to keep the similar build times with these proposed changes? It seems to me like adding
chown
slows down the build significantly
g
@Maidul Islam Sure, will do!😄
m
just merged your PR, looks like no impact on build times
The next release will be built using that docker file
nice work!
g
Thanks!😄
Fix for the frontend one is still a work in progress, need to figure out some way first to prevent slow build times
m
sounds good! keep us in the loop
g
Hi @Maidul Islam! I already created PR for the frontend one on https://github.com/Infisical/infisical/pull/848, maybe you can review it first and check if it affects the build time😄