Add VI and alias support in the docker container 97/10197/1
authorjose.lausuch <jose.lausuch@ericsson.com>
Wed, 17 Feb 2016 15:19:04 +0000 (16:19 +0100)
committerJose Lausuch <jose.lausuch@ericsson.com>
Thu, 18 Feb 2016 12:48:59 +0000 (12:48 +0000)
When editing a file with VI in the container, the
keyboard is not properly setup. This options will
help to do things more smoothly..

Change-Id: I4c9004a4df067d7bbb558461dd98d76e32e64591
Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
(cherry picked from commit 80ddf6005f1e1afbcbc3183f2a0ced1a66fdfe8b)

docker/Dockerfile

index 3c5a2a6..8424b5f 100644 (file)
@@ -31,6 +31,8 @@ LABEL version="0.1" description="OPNFV Functest Docker container"
 ENV HOME /home/opnfv
 ENV repos_dir /home/opnfv/repos
 ENV creds /home/opnfv/functest/conf/openstack.creds
+ENV TERM xterm
+ENV COLORTERM gnome-terminal
 WORKDIR /home/opnfv
 
 # Packaged dependencies
@@ -80,3 +82,7 @@ ADD http://download.cirros-cloud.net/0.3.4/cirros-0.3.4-x86_64-disk.img /home/op
 
 RUN gpg --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
 RUN curl -L https://get.rvm.io | bash -s stable
+
+RUN echo -e "set nocompatible\nset backspace=2" >> /home/opnfv/.vimrc
+RUN echo "set nocompatible" >> /home/opnfv/.exrc
+RUN echo "alias ll='ls -lh'" >> /home/opnfv/.bash_aliases
\ No newline at end of file