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

OracleWebLogic K8s sample chmod "Operation not permitted" #695

Closed
gnunn1 opened this Issue Dec 30, 2017 · 2 comments

Comments

3 participants
@gnunn1

gnunn1 commented Dec 30, 2017

Trying to build the docker file in OracleWebLogic/samples/wls-K8s/wls-12213-domain gives the following errors:

Step 9/12 : RUN chmod +x /u01/oracle/*.sh /u01/oracle/*.py
 ---> Running in c8906490bf6d
chmod: changing permissions of '/u01/oracle/provision-domain.sh': Operation not permitted
chmod: changing permissions of '/u01/oracle/startadmin.sh': Operation not permitted
chmod: changing permissions of '/u01/oracle/startms.sh': Operation not permitted
chmod: changing permissions of '/u01/oracle/add-app-to-domain.py': Operation not permitted
chmod: changing permissions of '/u01/oracle/provision-domain.py': Operation not permitted
chmod: changing permissions of '/u01/oracle/shutdown-servers.py': Operation not permitted

I believe the issue is that docker doesn't assign the previously set user to files when using COPY. I modified the COPy section as follows and now it works:

# Copy scripts
# --------------------------------
USER root
COPY container-scripts/* /u01/oracle/
RUN chown oracle:oracle /u01/oracle/*.sh
RUN chown oracle:oracle /u01/oracle/*.py
USER oracle
RUN chmod +x /u01/oracle/*.sh /u01/oracle/*.py
@mriccell

This comment has been minimized.

Show comment
Hide comment
@mriccell

mriccell Jan 23, 2018

Member

@gnunn1 Thanks so much for your contribution! Do you mind creating a merge request with the solution that works?

Member

mriccell commented Jan 23, 2018

@gnunn1 Thanks so much for your contribution! Do you mind creating a merge request with the solution that works?

@mriccell

This comment has been minimized.

Show comment
Hide comment
@mriccell

mriccell Apr 12, 2018

Member

Correct permissions of scripts in the domain image (#690)

Member

mriccell commented Apr 12, 2018

Correct permissions of scripts in the domain image (#690)

@mriccell mriccell closed this Apr 12, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment