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"] |