operator-sdk icon indicating copy to clipboard operation
operator-sdk copied to clipboard

Samples - Change the memcached image used in the samples so that we do not need to use RunAsUser

Open camilamacedo86 opened this issue 3 years ago • 4 comments

What is the problem

I cannot run the samples on Openshift

Why

Because we are setting RunAsUser(1001) therefore, it will not work on OCP

Proposed Solution

Change the Memcached image: https://github.com/docker-library/memcached/pull/79 ( To have the USER ID define )

OR

maintain a short Dockerfile that's auto-built with just FROM memcached \n USER 11211:11211 (if it has to be baked into the image itself)

camilamacedo86 avatar Jul 07 '22 22:07 camilamacedo86

c/c @everettraven @rashmigottipati

camilamacedo86 avatar Jul 07 '22 22:07 camilamacedo86

Done a PR to see if we can update the image: https://github.com/docker-library/memcached/pull/79

It was tested locally and the Pod worked successfully without RunAsUser as expected:

pod/foozjpc-sample-654c75bf8f-fgbvv 1/1 Running 0 115s

camilamacedo86 avatar Jul 09 '22 23:07 camilamacedo86

blocked until https://github.com/docker-library/memcached/pull/79 merges, but @camilamacedo86 will keep an eye on it.

asmacdo avatar Jul 11 '22 18:07 asmacdo

I am unable to get the PR https://github.com/docker-library/memcached/pull/79 merged.

Therefore, the other solution is to maintain a short Dockerfile that's auto-built with just FROM memcached \n USER 11211:11211 (if it has to be baked into the image itself)

Remove the assignment to allow others to work on this one. Also, I improved the description to make it more clear.

camilamacedo86 avatar Aug 15 '22 21:08 camilamacedo86

Issues go stale after 90d of inactivity.

Mark the issue as fresh by commenting /remove-lifecycle stale. Stale issues rot after an additional 30d of inactivity and eventually close. Exclude this issue from closing by commenting /lifecycle frozen.

If this issue is safe to close now please do so with /close.

/lifecycle stale

openshift-bot avatar Nov 14 '22 01:11 openshift-bot

Stale issues rot after 30d of inactivity.

Mark the issue as fresh by commenting /remove-lifecycle rotten. Rotten issues close after an additional 30d of inactivity. Exclude this issue from closing by commenting /lifecycle frozen.

If this issue is safe to close now please do so with /close.

/lifecycle rotten /remove-lifecycle stale

openshift-bot avatar Dec 14 '22 08:12 openshift-bot

Rotten issues close after 30d of inactivity.

Reopen the issue by commenting /reopen. Mark the issue as fresh by commenting /remove-lifecycle rotten. Exclude this issue from closing again by commenting /lifecycle frozen.

/close

openshift-bot avatar Jan 14 '23 00:01 openshift-bot

@openshift-bot: Closing this issue.

In response to this:

Rotten issues close after 30d of inactivity.

Reopen the issue by commenting /reopen. Mark the issue as fresh by commenting /remove-lifecycle rotten. Exclude this issue from closing again by commenting /lifecycle frozen.

/close

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

openshift-ci[bot] avatar Jan 14 '23 00:01 openshift-ci[bot]