Sunday, May 31, 2015

my CoreOS .profile

One of the things that I like about CoreOS is that it has a "toolbox"
toolbox is a small script that launches a container to let you bring in your favorite debugging or admin tools. --CoreOS
And as point in fact I am currently using it as my development environment even though I should probably be creating a devbox instead. ("we" already know that this is bad Dockerfile design)

My .profile currently looks like:
$cat .profile
#!/bin/sh
echo "Configuring the environment"
export GOPATH=$HOME/_vendor:$HOME:$HOME/src/bitbucket.org/netcentrix/gwtcmp/_vendor
export PATH=$PATH:$HOME/bin:$HOME/_vendor/bin
export PS1="\[\033[01;32m\]\u@\h\[\033[01;34m\] \w \$\[\033[00m\]"
if [ ! -e $HOME/.gitconfig ]; then
git config --global alias.co checkout
git config --global alias.br branch
git config --global alias.ci commit
git config --global alias.st status
git config --global alias.unstage 'reset HEAD --'
git config --global alias.last 'log -1 HEAD'
fi
export CDPATH=.:~:~/src/bitbucket.org/netcentrix:~/src/bitbucket.org/oneoffcode
uptime
Some of the downsides here is (a) only one SSH sessions (b) spawn get's hung when the sessions times out and I have to log into the host to kill the container. (c) shares the IP address with the host OS [not a big deal]. At least my development is going well for the moment.

No comments:

Post a Comment

dead pixels

I have never had a dead pixel so when I read: Small numbers (1-3) of stuck or dead pixels are a characteristic of LCD screens. These are n...