Solved

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


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!

icon

Best answer by jlutherthomas 15 June 2021, 18:56

View original

2 replies

Badge +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.

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