Skip to main content
Solved

How to change UID and GID of fmeserver engine user in docker version of FME Server >2020?


skime
Contributor

UID and GID in FME Server engine docker is having 1363 and 1363 values. I would like to change it to 3001 and 3001 (I have servers with such ids prepared).

I have tried to set up environment variables as it is done in FME Server Core docker image:

            - name: FMESERVER_UID

              value: '3001'

            - name: FMESERVER_GID

              value: '3001'

 

But it's not working. Do you have any clues or ideas?

 

Thank you!

Best answer by jlutherthomas

Hi @skime​ 

 

Those env vars look correct, and should work on the engine and core image. You might need to start the container as root as it needs to do some permission changing stuff before it will start the engine as the user with the passed in gid/uid.

View original

Forum|alt.badge.img+2

Hi @skime​ 

 

Those env vars look correct, and should work on the engine and core image. You might need to start the container as root as it needs to do some permission changing stuff before it will start the engine as the user with the passed in gid/uid.


skime
Contributor
  • Contributor
  • June 16, 2021

Hello @jlutherthomas​ 

 

Thank you for the suggestion. We are deploying our FME Server to Kubernetes so we had to add in engine deployment:

      securityContext:
        runAsUser: 0

+ variables that I mentioned in the first post and it worked like a charm. Thank you!


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings