docker-images icon indicating copy to clipboard operation
docker-images copied to clipboard

[Building k8s extensions for database SingleInstance] -u option is throwing an unknown option error

Open mfabbri opened this issue 2 years ago • 2 comments

Hi all,

building the k8s extensions for the single database image, I found an issue. The unknown option error was thrown by the

/usr/bin/python -u

in

https://github.com/oracle/docker-images/blob/main/OracleDatabase/SingleInstance/extensions/k8s/lock.py#L1

By removing the -u, I was able to fix the issue.

Thanks

mfabbri avatar Sep 10 '22 12:09 mfabbri

@mfabbri For which database version have you tried building k8s extension ??

abhisbyk avatar Sep 12 '22 10:09 abhisbyk

Hi @abhisbyk: 19.3 Enterprise Edition

mfabbri avatar Sep 12 '22 11:09 mfabbri

This happened to me when I cloned the docker-images git repository on a Windows machine and the line endings on some files, including lock.py, were changed to CRLF. Executing this before cloning fixed the problem:

git config --global core.autocrlf false

zsrv avatar Jan 05 '23 15:01 zsrv

Thank you @zsrv ! This tip fixed the issue!

mfabbri avatar Jan 11 '23 20:01 mfabbri