ubi9 base image with ksh93 instead of bash and including oc client
Olaf Bohlen
2022-12-29 af23e6adac7722f72fcdfe2734b8d8aca8ec8859
commit | author | age
af23e6 1 # a base image using ksh93 on a ubi9 base including openshift oc
OB 2 FROM ubi9
3 LABEL author="Olaf Bohlen <olbohlen@eenfach.de>"
4
5 # copy included oc client and ksh93
6 COPY bin/ /usr/bin/
7
8 RUN chmod 755 /usr/bin/oc /usr/bin/ksh && \
9     ln /usr/bin/oc /usr/bin/kubectl && \
10     usermod -s /usr/bin/ksh root && \
11     printf "PS1=\"(!) $(uname -n):\$PWD# \"\n" >/root/.kshrc && \
12     printf "set -o vi\nEDITOR=vi\nexport EDITOR\n" >>/root/.kshrc
13
14 # we want ksh
15 ENTRYPOINT ["/usr/bin/ksh", "-c"]
16 CMD ["/usr/bin/ksh"]