2022-02-05 10:19:43 +00:00
|
|
|
FROM alpine:latest
|
2016-04-07 08:21:15 +00:00
|
|
|
|
2024-05-09 13:44:06 +00:00
|
|
|
RUN apk add --no-cache openvswitch nano bash bash-completion
|
2024-05-08 17:26:22 +00:00
|
|
|
|
|
|
|
# Make bash the default shell
|
|
|
|
RUN sed -i s,/bin/ash,/bin/bash, /etc/passwd
|
|
|
|
|
|
|
|
# Enable bash completion
|
2024-05-14 09:37:11 +00:00
|
|
|
RUN echo -e "source /etc/bash/bash_completion.sh" >> ~/.bashrc
|
2016-04-07 08:21:15 +00:00
|
|
|
|
2024-05-09 13:44:06 +00:00
|
|
|
# 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
|
|
|
|
|
2024-05-14 09:37:11 +00:00
|
|
|
VOLUME [ "/root", "/etc/openvswitch" ]
|
2022-07-08 19:07:09 +00:00
|
|
|
|
2024-05-14 09:37:11 +00:00
|
|
|
ADD init.sh /etc/openvswitch/
|
2016-04-07 08:21:15 +00:00
|
|
|
|
2024-05-14 09:37:11 +00:00
|
|
|
CMD /etc/openvswitch/init.sh; bash
|