Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/docker/base/Dockerfile.j2 b/docker/base/Dockerfile.j2
- index afcc5b3..a40c34a 100644 (file)
- --- a/docker/base/Dockerfile.j2
- +++ b/docker/base/Dockerfile.j2
- @@ -10,6 +10,9 @@ ENV KOLLA_BASE_DISTRO {{ base_distro }}
- ENV KOLLA_INSTALL_TYPE {{ install_type }}
- ENV KOLLA_INSTALL_METATYPE {{ install_metatype }}
- +# PS1 var when used /bin/sh shell
- +ENV PS1="(docker::$(printenv KOLLA_SERVICE_NAME))[$(id -un)@$(hostname -s) $(pwd)]$ "
- +
- # For RPM Variants, enable the correct repositories - this should all be done
- # in the base image so repos are consistent throughout the system. This also
- # enables to provide repo overrides at a later date in a simple fashion if we
- @@ -189,4 +192,10 @@ RUN touch /usr/local/bin/kolla_extend_start \
- && chmod 440 /etc/sudoers \
- && groupadd kolla
- +# Customize PS1 to be used with bash shell
- +COPY kolla_bashrc /tmp/
- +RUN cat /tmp/kolla_bashrc >> /etc/bash.bashrc
- +RUN cat /tmp/kolla_bashrc >> ~/.bashrc
- +RUN rm -f /tmp/kolla_bashrc
- +
- CMD ["kolla_start"]
- diff --git a/docker/base/kolla_bashrc b/docker/base/kolla_bashrc
- new file mode 100644 (file)
- index 0000000..815720c
- --- /dev/null
- +++ b/docker/base/kolla_bashrc
- @@ -0,0 +1,4 @@
- +
- +#### Custom data added by Kolla
- +
- +PS1="(docker::${KOLLA_SERVICE_NAME})[\u@\h \W]\\$ "
Advertisement
Add Comment
Please, Sign In to add comment