# a base image using ksh93 on a ubi9 base including openshift oc
|
FROM ubi9
|
LABEL author="Olaf Bohlen <olbohlen@eenfach.de>"
|
|
# copy included oc client and ksh93
|
COPY bin/ /usr/bin/
|
|
RUN chmod 755 /usr/bin/oc /usr/bin/ksh && \
|
ln /usr/bin/oc /usr/bin/kubectl && \
|
usermod -s /usr/bin/ksh root && \
|
printf "PS1=\"(!) $(uname -n):\$PWD# \"\n" >/root/.kshrc && \
|
printf "set -o vi\nEDITOR=vi\nexport EDITOR\n" >>/root/.kshrc
|
|
# we want ksh
|
ENTRYPOINT ["/usr/bin/ksh", "-c"]
|
CMD ["/usr/bin/ksh"]
|