ENT-1012 - Make sure bashrc is properly set for container (#218)

This commit is contained in:
Tommy Lillehagen 2017-12-19 19:22:09 +00:00 committed by GitHub
parent dd59b06c62
commit 0e8c7b0b87
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 1 deletions

View File

@ -86,7 +86,6 @@ VOLUME ${SGX_SDK}
RUN mkdir -p ${CODE}
RUN mkdir -p ${HOME}
RUN mkdir -p ${SGX_SDK}
RUN echo "PS1='container> '" > ${HOME}/.bashrc
WORKDIR ${CODE}
# Set up Java and SGX environment

View File

@ -285,6 +285,7 @@ in_container() {
local tty=""
shift 1
mkdir -p ${HOME}/.container
echo 'export PS1="$ "' > ${HOME}/.container/.bashrc
if [ "${TTY_MODE}" == "on" ]; then
tty="-t"