android


Can't run start.sh for GCM Playground sample application


I'm very new to the google cloud messaging concept, and wanted to try out the Playground sample application but can't even get the start.sh script to run properly in the docker machine. I also nave no experience with docker, but did everything that was asked when installing and setting up the default docker machine.
What I am trying to do exactly, is going to the parent folder of gcm-playground where the start.sh script is located (this is done from the Docker Quickstart Terminal) and executing ./start.sh.
I get the following error:
./start.sh
==> Working in web/
==> Install gulp
./start.sh: line 31: sudo: command not found
==> Install bower
./start.sh: line 38: sudo: command not found
==> Install npm dependencies
npm WARN unmet dependency C:\Users\my-PC\Documents\gcm-playground\web\node_modules\gulp-cssmin requires gulp-rename#'~1.1.0' but will load
npm WARN unmet dependency C:\Users\my-PC\Documents\gcm-playground\web\node_modules\gulp-rename,
npm WARN unmet dependency which is version 1.2.2
npm WARN unmet dependency C:\Users\my-PC\Documents\gcm-playground\web\node_modules\gulp-autoprefixer\node_modules\gulp-util requires object-assign#'^3.0.0' but will load
npm WARN unmet dependency C:\Users\my-PC\Documents\gcm-playground\web\node_modules\gulp-autoprefixer\node_modules\object-assign,
npm WARN unmet dependency which is version 2.1.1
npm WARN unmet dependency C:\Users\my-PC\Documents\gcm-playground\web\node_modules\gulp-autoprefixer\node_modules\gulp-util requires through2#'^2.0.0' but will load
npm WARN unmet dependency C:\Users\my-PC\Documents\gcm-playground\web\node_modules\gulp-autoprefixer\node_modules\through2,
npm WARN unmet dependency which is version 0.6.5
npm WARN unmet dependency C:\Users\my-PC\Documents\gcm-playground\web\node_modules\gulp-minify-html\node_modules\gulp-util requires through2#'^2.0.0' but will load
npm WARN unmet dependency C:\Users\my-PC\Documents\gcm-playground\web\node_modules\gulp-minify-html\node_modules\through2,
npm WARN unmet dependency which is version 0.6.5
==> Install bower dependencies
./start.sh: line 45: bower: command not found
==> Running gulp for building
./start.sh: line 48: gulp: command not found
==> Starting Docker containers
Starting gcmplayground_server_1
Starting gcmplayground_web_1
Attaching to gcmplayground_server_1, gcmplayground_web_1
[33mweb_1 | [0mmodule.js:341
[33mweb_1 | [0m throw err;
[33mweb_1 | [0m ^
[33mweb_1 | [0m
[33mweb_1 | [0mError: Cannot find module 'orchestrator'
[33mweb_1 | [0m at Function.Module._resolveFilename (module.js:339:15)
[33mweb_1 | [0m at Function.Module._load (module.js:290:25)
[33mweb_1 | [0m at Module.require (module.js:367:17)
[33mweb_1 | [0m at require (internal/module.js:16:19)
[33mweb_1 | [0m at Object.<anonymous> (/src/gcm-playground/web/node_modules/gulp/index.js:4:20)
[33mweb_1 | [0m at Module._compile (module.js:413:34)
[33mweb_1 | [0m at Object.Module._extensions..js (module.js:422:10)
[33mweb_1 | [0m at Module.load (module.js:357:32)
[33mweb_1 | [0m at Function.Module._load (module.js:314:12)
[33mweb_1 | [0m at Module.require (module.js:367:17)
[33mgcmplayground_web_1 exited with code 1
[0m[36mserver_1 | [0m<stream:stream from="gcm.googleapis.com" id="E4B3B4A6A882DFBA" version="1.0" xmlns:stream="http://etherx.jabber.org/streams" xmlns="jabber:client">
[36mserver_1 | [0m<stream:features><mechanisms xmlns="urn:ietf:params:xml:ns:xmpp-sasl"><mechanism>X-OAUTH2</mechanism><mechanism>X-GOOGLE-TOKEN</mechanism><mechanism>PLAIN</mechanism></mechanisms></stream:features>
[36mserver_1 | [0m<success xmlns="urn:ietf:params:xml:ns:xmpp-sasl"/>
[36mserver_1 | [0m<stream:stream from="gcm.googleapis.com" id="79E04671C097B032" version="1.0" xmlns:stream="http://etherx.jabber.org/streams" xmlns="jabber:client">
[36mserver_1 | [0m<stream:features><bind xmlns="urn:ietf:params:xml:ns:xmpp-bind"/><session xmlns="urn:ietf:params:xml:ns:xmpp-session"/></stream:features>
[36mserver_1 | [0m<iq id="70b7ced5e631b767" type="result"><bind xmlns="urn:ietf:params:xml:ns:xmpp-bind"><jid>822820668927#gcm.googleapis.com/A3DF7156</jid></bind></iq>
[36mserver_1 | [0m
And I think it is because the sudo command, which is contained in the start.sh script is not recognized by docker. I already tried to find a way to somehow install sudo for docker, but with no luck so far.
I am obviously doing something wrong here, but please someone have this explained to me because I lack in experience..
NOTE: I am using Windows.

Related Links

Android: How to create an expanding list like in Youtube app
Translate in Android using Google API
Import Android project error
Back button doesn't show up on Honeycomb but does on Ice Cream Sandwich
linking facebook sdk to android project
Android: Using <include/> to clone layouts, while using the same onClick button functions
How to fix “Call requires API level 11” with Android Activity?
Make each item from listview appear when the listview is inside a linear layout
Android bitmap shift/move issues
How to obtain android:versionName from Manifest?
Encog runs too slow on Android, what to do?
$.mobile.loading('show') not work in phonegap app
Simulate localization in a Android device with debug mode
java.lang.IllegalStateException: Can not perform this action after onSaveInstanceState with DialogFragment
How to reduce the length of a hexadecimal string in Android?
DOM parser not working on Android Ice cream Sandwich

Categories

HOME
algorithm
kentico
facebook-oauth
object
mysql-workbench
yahoo-finance
replace
seo
newrelic
xbee
aws-cli
rom
vxml
web-hosting
square
opengl-3
modal-dialog
elasticsearch-5
fabric.io
dkim
java.util.logging
intershop
fileserver
google-content-api
google-data-studio
git-extensions
smartclient
google-container-registry
jmp
gmm
poedit
hta
android-sharedpreferences
delimiter
ms-access-2003
firebase-analytics
soot
user-defined-functions
bioinformatics
ntp
send
mustache
hibernate-search
reverse
least-squares
python-pptx
sql-server-ce
reactivekit
node-mssql
apns-php
verifiable-c
css-position
news
odoo-website
movilizer
plan-9
dtsearch
geotiff
jqchart
gameplay-kit
renaming
pocketsphinx-android
donations
burrows-wheeler-transform
observablecollection
clipboard.js
cassia
design-principles
wiredep
branch-and-bound
skspritenode
snackbar
zxspectrum
bcache
ghcjs
webfinger
strawberry-perl
malformedurlexception
jjaql
dct
dsym
cfcache
square-bracket
oocss
printdialog
jquery-1.9
windows-98
chart-director
pdfviewer
patricia-trie
lambdaj
inkcanvas
jdb
multiplexing
mapping-by-code
mysql-error-1205
webdev.webserver
vs-android
ajax-polling
dsl-tools
cldc
information-management
contentpresenter
change-management

Resources

Encrypt Message