diff --git a/docker/openvswitch/Dockerfile b/docker/openvswitch/Dockerfile index 27c915c..8ad3c1b 100644 --- a/docker/openvswitch/Dockerfile +++ b/docker/openvswitch/Dockerfile @@ -1,6 +1,6 @@ FROM alpine:latest -RUN apk add --no-cache --update openvswitch nano bash bash-completion +RUN apk add --no-cache openvswitch nano bash bash-completion # Make bash the default shell RUN sed -i s,/bin/ash,/bin/bash, /etc/passwd @@ -8,6 +8,13 @@ RUN sed -i s,/bin/ash,/bin/bash, /etc/passwd # Enable bash completion RUN echo -e "source /etc/profile.d/bash_completion.sh" >> ~/.bashrc +# Enable openvswitch bash completion +RUN echo -e "source /usr/share/bash-completion/completions/ovs-vsctl-bashcomp.bash" >> ~/.bashrc +RUN echo -e "source /usr/share/bash-completion/completions/ovs-appctl-bashcomp.bash" >> ~/.bashrc + +# Configure the prompt +RUN echo -e "PS1='\h:\w\$ '" >> ~/.bashrc + RUN mkdir /var/run/openvswitch VOLUME /etc/openvswitch/