Fix history monitoring stuff in Dockerfile (AVATAO baseimage bashrc)

This commit is contained in:
Kristóf Tóth 2018-03-05 16:17:56 +01:00
parent 100ec96e63
commit 7dd2512300

View File

@ -62,11 +62,15 @@ ENV PYTHONPATH="/usr/local/lib/" \
TFW_TERMINADO_DIR="/tmp/terminado_server" \ TFW_TERMINADO_DIR="/tmp/terminado_server" \
TFW_FRONTEND_DIR="/srv/frontend" \ TFW_FRONTEND_DIR="/srv/frontend" \
TFW_HISTFILE="/home/${AVATAO_USER}/.bash_history" \ TFW_HISTFILE="/home/${AVATAO_USER}/.bash_history" \
PROMPT_COMMAND="history -a" \ PROMPT_COMMAND="history -a"
HISTFILESIZE=1000 \
HISTSIZE=1000
RUN echo "shopt -s cmdhist && shopt -s histappend" >> .bashrc RUN echo "shopt -s cmdhist\n" \
"shopt -s histappend\n" \
"unset HISTCONTROL\n" \
"export HISTFILESIZE=1000\n" \
"export HISTSIZE=1000\n" \
'PROMPT_COMMAND="history -a"\n' \
>> /home/${AVATAO_USER}/.bashrc
COPY nginx/nginx.conf ${TFW_NGINX_CONF} COPY nginx/nginx.conf ${TFW_NGINX_CONF}
COPY nginx/components/ ${TFW_NGINX_COMPONENTS} COPY nginx/components/ ${TFW_NGINX_COMPONENTS}