At the moment this code is not working and no solution seems to be available:
#2
It you need to quickly setup a local Pebble SDK I suggest you to use:
https://github.com/ltpitt/vagrant-pebble-sdk
This repo contains how to manually install the key components of CloudPebble as submodules into a Vagrant Linux VM. It also contains a
docker-compose
file that will assemble all of them into something that runs like a real CloudPebble instance. A big thank you from me and the whole Pebble community to the awesome Katharine Berry - (https://twitter.com/KatharineBerry) for making this possible.
- Pebble SSO is not available; only local accounts work.
- Websocket installs are not available because pebble SSO is not available
- Oracle VirtualBox (how to install: https://www.virtualbox.org/wiki/Downloads)
- Vagrant (how to install: https://www.vagrantup.com/intro/getting-started/install.html)
WARNING: patience and a cup of coffee are needed :)
git clone https://github.com/ltpitt/vagrant-cloudpebble-composed.git && cd vagrant-cloudpebble-composed && vagrant up
Simply access from your host machine via browser http://localhost
NOTE: you do not need to clone the repo if you want to install manually
vagrant init ubuntu/xenial64
vagrant up
vagrant ssh
IMPORTANT: remember to add RAM to the VM, I've had success with 2GB but I didn't try other values, default value WILL NOT WORK
sudo apt-get remove docker docker-engine docker.io -y
sudo apt-get update && sudo apt-get install apt-transport-https ca-certificates curl software-properties-common -y && curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - && sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" && sudo apt-get update && sudo apt-get install docker-ce -y && sudo docker run hello-world
If everything went fine you should see the Docker "Hello World" and you can proceed to the next step
sudo apt-get install docker-compose -y
sudo apt remove nodejs npm && curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash - && sudo apt-get install -y nodejs
git clone https://github.com/ltpitt/vagrant-cloudpebble-composed.git && cd vagrant-cloudpebble-composed && git clone https://github.com/ltpitt/cloudpebble.git && git clone https://github.com/ltpitt/cloudpebble-qemu-controller.git && git clone https://github.com/ltpitt/cloudpebble-ycmd-proxy.git
cd cloudpebble/ext && git clone https://github.com/pebble/pebblejs.git cloudpebble/ext && cd ../../
sudo chmod +x dev_setup.sh && sudo ./dev_setup.sh
sudo docker-compose up
docker stop $(docker ps -a -q)
docker rm $(docker ps -a -q)
docker rmi $(docker images -q)
Point your web browser to http://localhost
- 0.0.1
- Vagrantfile is now included, manual steps are tested.
- A bug prevents images to be cloned from github repo
Davide Nastri – [email protected]
Distributed under the GPL license. See LICENSE
for more information.
https://github.com/ltpitt/vagrant-cloudpebble-composed
- Fork it (https://github.com/ltpitt/vagrant-cloudpebble-composed/fork)
- Create your feature branch (
git checkout -b feature/fooBar
) - Commit your changes (
git commit -am 'Add some fooBar'
) - Push to the branch (
git push origin feature/fooBar
) - Create a new Pull Request