-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Dockerfile for development container and update configs
- Loading branch information
Showing
6 changed files
with
197 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# Sample .bashrc for SuSE Linux | ||
# Copyright (c) SuSE GmbH Nuernberg | ||
|
||
# There are 3 different types of shells in bash: the login shell, normal shell | ||
# and interactive shell. Login shells read ~/.profile and interactive shells | ||
# read ~/.bashrc; in our setup, /etc/profile sources ~/.bashrc - thus all | ||
# settings made here will also take effect in a login shell. | ||
# | ||
# NOTE: It is recommended to make language settings in ~/.profile rather than | ||
# here, since multilingual X sessions would not work properly if LANG is over- | ||
# ridden in every subshell. | ||
|
||
# Some applications read the EDITOR variable to determine your favourite text | ||
# editor. So uncomment the line below and enter the editor of your choice :-) | ||
#export EDITOR=/usr/bin/vim | ||
#export EDITOR=/usr/bin/mcedit | ||
|
||
# For some news readers it makes sense to specify the NEWSSERVER variable here | ||
#export NEWSSERVER=your.news.server | ||
|
||
# If you want to use a Palm device with Linux, uncomment the two lines below. | ||
# For some (older) Palm Pilots, you might need to set a lower baud rate | ||
# e.g. 57600 or 38400; lowest is 9600 (very slow!) | ||
# | ||
#export PILOTPORT=/dev/pilot | ||
#export PILOTRATE=115200 | ||
|
||
test -s ~/.alias && . ~/.alias || true | ||
|
||
|
||
export HEADLESS=1 | ||
alias go="docker run --net=host -u `id -u`:`id -g` -v /home/`whoami`:/home/`whoami` -v /etc/passwd:/etc/passwd -v /opt/poky-focus/2.7.1:/opt/poky-focus/2.7.1 --entrypoint 'tmux' --rm -it ide_`whoami`:latest" | ||
|
||
function cdf() | ||
{ | ||
cd "$(dirname "$(find . -name $1 | head -1)")" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"detachKeys" : "ctrl-k,k" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,18 @@ | ||
[credential] | ||
helper = cache --timeout=3600 | ||
[alias] | ||
hist = log --pretty=format:\"%h %ad | %s%d [%an]\" --graph --date=short | ||
lg1 = log --graph --abbrev-commit --decorate --date=relative --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)' -n 30 | ||
|
||
lg = !"git lg1 --all" | ||
|
||
graphviz = "!f() { echo 'digraph git {' ; git log --pretty='format: %h -> { %p };' "$@" | sed 's/[0-9a-f][0-9a-f]*/"&"/g' ; echo ; git log --pretty='format: "%h" [label="%h: %s"];' "$@" ; echo '}'; }; f" git graphviz | dot -Tpng -o a.png | ||
[core] | ||
repositoryformatversion = 0 | ||
filemode = true | ||
bare = false | ||
logallrefupdates = true | ||
editor = vim | ||
[user] | ||
name = Rafq77 | ||
[http] | ||
sslVerify = false | ||
[credential] | ||
helper = store | ||
[user] | ||
name = Rafq77 | ||
email = [email protected] | ||
[diff] | ||
tool = vimdiff | ||
[core] | ||
excludesfile = /home/sosr/.gitignore_global | ||
[pull] | ||
rebase = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
|
||
# build image | ||
# docker build --build-arg http_proxy=http://3128 -t focus-dev . | ||
# docker run -u `id -u`:`id -g` --net=host -v /home/sosr:/home/sosr -v /etc/passwd:/etc/passwd --rm -it ide_sosr:latest | ||
|
||
FROM ubuntu:disco | ||
|
||
ARG USER_NAME="sosr" | ||
ARG PW="sosr" | ||
|
||
ENV USER_NAME $USER_NAME | ||
|
||
# Install Base system | ||
RUN \ | ||
apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y \ | ||
cmake \ | ||
git \ | ||
clang \ | ||
vim \ | ||
g++ \ | ||
zsh \ | ||
make \ | ||
python \ | ||
python-jinja2 \ | ||
python-pkg-resources \ | ||
valgrind \ | ||
exuberant-ctags \ | ||
fonts-powerline \ | ||
locales \ | ||
wget \ | ||
fzf \ | ||
ripgrep \ | ||
graphviz \ | ||
doxygen \ | ||
xvfb \ | ||
tmux && \ | ||
rm -rf /var/cache/apt/archives && \ | ||
rm -rf /*.deb | ||
|
||
# Provide vzug specific font | ||
COPY ./fonts/* /usr/share/fonts/ | ||
|
||
RUN \ | ||
chmod a+rx /usr/share/fonts/*.ttf && \ | ||
ln -s /usr/lib/x86_64-linux-gnu/dri /usr/lib/dri && \ | ||
ln -s /lib/x86_64-linux-gnu/ld-2.29.so /lib/ld-linux-x86-64.so.2 && \ | ||
ln -s /lib/x86_64-linux-gnu/libc.so.6 /lib64/libc.so.6 && \ | ||
ln -s /opt /esm && \ | ||
ln -s /esm/poky-focus /esm/poky-focus-1.0 && \ | ||
mkdir -p /opt/poky-focus | ||
|
||
RUN \ | ||
locale-gen en_US.UTF-8 && \ | ||
adduser --quiet --disabled-password --shell /bin/zsh --home /home/$USER_NAME --gecos "User" $USER_NAME && \ | ||
echo "${USER_NAME}:${PW}" | chpasswd && usermod -aG sudo $USER_NAME | ||
|
||
# the user we're applying this too (otherwise it most likely install for root) | ||
USER $USER_NAME | ||
ENV TERM screen-256color-bce | ||
ENV ZSH_THEME agnoster | ||
ENV LANG "en_US.UTF-8" | ||
ENV FZF_DEFAULT_COMMAND "rg --files --hidden" | ||
|
||
|
||
WORKDIR /home/$USER_NAME | ||
|
||
RUN wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | zsh || true ; #chmod +x ./install.sh; sh ./install.sh; rm ./install.sh # | ||
|
||
ENTRYPOINT ["zsh"] | ||
|