Given the headaches people seem to go through trying to get a fully
functional development environment setup for akaros, I've taken some
time over the past few days to put together a docker container for
akaros development.
It comes preinstalled with the akaros cross compiler, checked-out
versions of the akaros and go-akaros repos, and a number of useful
tools for working with akaros in general (vim, emacs, qemu-kvm, etc.).
When ran, the docker container will mount a home directory stored on
your workstation, so any work you do inside the container will persist
across invocations (so long as these changes are isolated to your home
directory). All you have to do is set up docker on your workstation
and the scripts contained in this repo take care of the rest.
These scripts basically launch a detached docker container with
hostname 'akaros-devel' that you can ssh into and interact with as if
it was a remote workstation.
Info for installing docker on ubuntu 14.04 can be found at the bottom
of the README associate with the project.
The project itself is hosted at github and can be found here:
https://github.com/klueska/akaros-devel-docker
Let me know if you have any troubles/suggestions for improvements.
Kevin
I tried playing around with this a bit myself (including getting
things working natively on mac through boot2docker), but was running
into some issues with both the bootstrap script and the mounting of
the home directory. Also, my docker image assumes that it has access
to kvm (because the hardware it runs on supports VTx), but the
tinycore VM that boot2docker is based on doesn't seem to emulate this.
I think it would be great if we could get this wokring natively from
the mac (without no 'boot2docker ssh' necessary). I can send you over
my notes if you have some time and want to try and get this working.
Kevin
apt-get install -y \
bison \
build-essential \
emacs \
flex \
gawk \
git \
man \
ncurses-dev \
openssh-server \
qemu-kvm \
qemu-system-x86 \
screen \
vim
which ones did you actually need? given that this was driven by
someone not having stuff like bison installed. is the list just:
bison, flex, gawk, and whatever is in build-essential? (gcc / glibc /
binutils?).
anyway, i was hoping you had a handy list of things to add to the top
of tools/compiler/gcc-glibc/Makefile, but if not, then it's not a big
deal.