Hackers only! Note that we always recommend to run Apollo on Ubuntu. Other platforms may be not full featured and lack of testing.
- Make sure you have installed docker-machine, docker and virtualbox.
brew install docker docker-machine
brew cask install virtualbox- Start a Linux based docker machine.
docker-machine create --driver virtualbox --virtualbox-memory 4096 apolloYou should allocate at least 4GB memory. But, of course, the more resources, the better. For example:
docker-machine create --driver virtualbox \
--virtualbox-cpu-count 2 \
--virtualbox-memory 8192 \
apolloBring up the container and start to work!
bash docker/scripts/mac/dev_start.sh
bash docker/scripts/mac/dev_into.shThe followed procedure inside the docker container is independent with your MacOS. Try build and release.
[Inside container] bash apollo.sh build
[Inside container] ...- Your docker machine might go down in some situations such as suspending your MacOS. You should bring it up again:
docker-machine restart apollo- Your docker machine is generally running behind a NAT. You can get the address with:
docker-machine ip apolloRemember to use it to access Apollo infras such as Dreamview, while not "localhost" or "127.0.0.1".
- Your cert to the docker machine might expire as time goes by. If you see something like:
You can attempt to regenerate them using 'docker-machine regenerate-certs [name]'.
Just follow that instruction and run
docker-machine regenerate-certs apollo