Skip to content

Commit

Permalink
Personal information remove from gcc-cmake-gl
Browse files Browse the repository at this point in the history
  • Loading branch information
bunop committed Mar 25, 2015
1 parent f577f41 commit 8a6a28c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 13 deletions.
17 changes: 8 additions & 9 deletions coding/gcc-cmake-gl/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,23 +24,22 @@ RUN apt-get install -y vim
# RUN apt-get clean && apt-get autoclean && rm -rf /tmp/* /var/tmp/*

# Add a new user
RUN groupadd -g 1000 paolo
RUN useradd --uid 1000 --gid 1000 -m --shell /bin/bash paolo
RUN useradd -m developer

# Setting useful environment variables
WORKDIR /home/paolo
WORKDIR /home/developer

# overwrite .bashrc
COPY bashrc /home/paolo/.bashrc
COPY vimrc /home/paolo/.vimrc
copy gitconfig /home/paolo/.gitconfig
RUN chown paolo: .bashrc .vimrc .gitconfig
COPY bashrc /home/developer/.bashrc
COPY vimrc /home/developer/.vimrc
copy gitconfig /home/developer/.gitconfig
RUN chown developer: .bashrc .vimrc .gitconfig

# Set home directory as VOLUME
VOLUME /home/paolo
VOLUME /home/developer

# Setting the user
USER paolo
USER developer

# default command to reattach istance
CMD ["/bin/bash"]
2 changes: 1 addition & 1 deletion coding/gcc-cmake-gl/bashrc
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ shopt -s cmdhist
# for setting history length see HISTSIZE and HISTFILESIZE in bash(1)
HISTFILESIZE=5000
HISTSIZE=5000
#HISTTIMEFORMAT='%F %T '
HISTTIMEFORMAT='%F %T '
HISTIGNORE="ls:ll:exit:clear:cd:top:htop*:history*:rm*"

# check the window size after each command and, if necessary,
Expand Down
3 changes: 0 additions & 3 deletions coding/gcc-cmake-gl/gitconfig
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,5 @@
pretty = %h - %an, %ar : %s
[merge]
tool = vimdiff
[user]
name = Paolo Cozzi
email = [email protected]
[alias]
mytree = log --graph --pretty=format:'%C(yellow)%h%Creset%C(red)%d%Creset %C(white bold)%s%Creset %C(white dim)(by %an %ar)%Creset' --all

0 comments on commit 8a6a28c

Please sign in to comment.