mirror of
https://github.com/GNS3/gns3-registry.git
synced 2024-12-24 15:06:43 +00:00
23 lines
652 B
Docker
23 lines
652 B
Docker
FROM alpine:latest
|
|
|
|
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
|
|
|
|
# Enable bash completion
|
|
RUN echo -e "source /etc/bash/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
|
|
|
|
VOLUME [ "/root", "/etc/openvswitch" ]
|
|
|
|
ADD init.sh /etc/openvswitch/
|
|
|
|
CMD /etc/openvswitch/init.sh; bash
|