Giter Site home page Giter Site logo

docker-forcedroid's Introduction

Hi there ๐Ÿ‘‹

  • ๐Ÿ”ญ I am a Senior Fullstack Engineer, working with TypeScript mostly on ReactJS (10 years) and NestJS.
  • ๐ŸŒฑ Iโ€™m currently learning DDD, Clean Architecture and how to be a better trainer.
  • ๐Ÿ‘ฏ Iโ€™m looking to collaborate on an interesting FOSS.
  • ๐Ÿค” Iโ€™m looking for help with how to be a better writer / trainer.
  • ๐Ÿ“ซ How to reach me: LinkedIn
  • ๐Ÿ˜„ Pronouns: he/him

docker-forcedroid's People

Watchers

 avatar  avatar

docker-forcedroid's Issues

Bug trying to disable cordova telemetry from puppet

# Install cordova
package { 'cordova':
  ensure          => 'present',
  install_options => ['--silent'],
  provider        => 'npm',
} -> # Disable telemetry
  exec { 'disable cordova telemetry':
    command => '/usr/bin/cordova telemetry off',
    user    => root
  }
==> default: Notice: /Stage[main]/Main/Exec[disable cordova telemetry]/returns: path.js:7
==> default: Notice: /Stage[main]/Main/Exec[disable cordova telemetry]/returns:     throw new TypeError('Path must be a string. Received ' + inspect(path));
==> default: Notice: /Stage[main]/Main/Exec[disable cordova telemetry]/returns:     ^
==> default: Notice: /Stage[main]/Main/Exec[disable cordova telemetry]/returns:
==> default: Notice: /Stage[main]/Main/Exec[disable cordova telemetry]/returns: TypeError: Path must be a string. Received undefined
==> default: Notice: /Stage[main]/Main/Exec[disable cordova telemetry]/returns:     at assertPath (path.js:7:11)
==> default: Notice: /Stage[main]/Main/Exec[disable cordova telemetry]/returns:     at Object.join (path.js:1211:7)
==> default: Notice: /Stage[main]/Main/Exec[disable cordova telemetry]/returns:     at Object.<anonymous> (/usr/lib/node_modules/cordova/node_modules/cordova-lib/src/cordova/util.js:35:31)
==> default: Notice: /Stage[main]/Main/Exec[disable cordova telemetry]/returns:     at Module._compile (module.js:571:32)
==> default: Notice: /Stage[main]/Main/Exec[disable cordova telemetry]/returns:     at Object.Module._extensions..js (module.js:580:10)
==> default: Notice: /Stage[main]/Main/Exec[disable cordova telemetry]/returns:     at Module.load (module.js:488:32)
==> default: Notice: /Stage[main]/Main/Exec[disable cordova telemetry]/returns:     at tryModuleLoad (module.js:447:12)
==> default: Notice: /Stage[main]/Main/Exec[disable cordova telemetry]/returns:     at Function.Module._load (module.js:439:3)
==> default: Notice: /Stage[main]/Main/Exec[disable cordova telemetry]/returns:     at Module.require (module.js:498:17)
==> default: Notice: /Stage[main]/Main/Exec[disable cordova telemetry]/returns:     at require (internal/module.js:20:19)
==> default: Error: /usr/bin/cordova telemetry off returned 1 instead of one of [0]
==> default: Error: /Stage[main]/Main/Exec[disable cordova telemetry]/returns: change from notrun to 0 failed: /usr/bin/cordova telemetry off returned 1 instead of one of [0]

Cordova doesn't find environment variables

vagrant@vagrant-ubuntu-trusty-64:/vagrant/apps$ sudo forcedroid create
Enter your application type (native, react_native, hybrid_local, hybrid_remote): hybrid_remote
Enter your application name: TrailheadHybridTest
Enter the package name for your app (com.mycompany.myapp): com.lfbvr.trailheadhybridtest
Enter your organization name (Acme, Inc.): LFBVR, Inc.
Enter the start page for your app: /apex/HybridPage
Enter output directory for your app (leave empty for the current directory):

********************************************************************************
*
*   Creating android hybrid_remote application using Salesforce Mobile SDK
*     with app name:        TrailheadHybridTest
*          package name:    com.lfbvr.trailheadhybridtest
*          organization:    LFBVR, Inc.
*
*     in:                   TrailheadHybridTest
*
*     from template repo:   https://github.com/forcedotcom/SalesforceMobileSDK-Templates#v5.0.0
*          template path:   HybridRemoteTemplate
*          start page:      /apex/HybridPage
*          plugin repo:     https://github.com/forcedotcom/SalesforceMobileSDK-CordovaPlugin#v5.0.0
*
********************************************************************************

Using detached cordova-create
Creating a new cordova project.
/vagrant/apps/TrailheadHybridTest /vagrant/apps
/vagrant/apps/TrailheadHybridTest
โ””โ”€โ”ฌ [email protected]
  โ”œโ”€โ”ฌ [email protected]
  โ”‚ โ”œโ”€โ”€ [email protected]
  โ”‚ โ”œโ”€โ”ฌ [email protected]
  โ”‚ โ”‚ โ””โ”€โ”€ [email protected]
  โ”‚ โ”œโ”€โ”€ [email protected]
  โ”‚ โ”œโ”€โ”ฌ [email protected]
  โ”‚ โ”‚ โ””โ”€โ”ฌ [email protected]
  โ”‚ โ”‚   โ”œโ”€โ”€ [email protected]
  โ”‚ โ”‚   โ””โ”€โ”€ [email protected]
  โ”‚ โ”œโ”€โ”€ [email protected]
  โ”‚ โ””โ”€โ”€ [email protected]
  โ”œโ”€โ”€ [email protected]
  โ””โ”€โ”ฌ [email protected]
    โ””โ”€โ”€ [email protected]

/vagrant/apps
/vagrant/apps/TrailheadHybridTest /vagrant/apps
Adding android project...
Creating Cordova project for the Android platform:
        Path: platforms/android
        Package: com.lfbvr.trailheadhybridtest
        Name: TrailheadHybridTest
        Activity: MainActivity
        Android target: android-25
Subproject Path: CordovaLib
Android project created with [email protected]
Discovered plugin "cordova-plugin-whitelist" in config.xml. Adding it to the project
Fetching plugin "cordova-plugin-whitelist@1" via npm
Installing "cordova-plugin-whitelist" for android
Failed to install 'cordova-plugin-whitelist':Error
    at /vagrant/apps/TrailheadHybridTest/platforms/android/cordova/lib/check_reqs.js:222:19
    at _fulfilled (/vagrant/apps/TrailheadHybridTest/platforms/android/cordova/node_modules/q/q.js:834:54)
    at self.promiseDispatch.done (/vagrant/apps/TrailheadHybridTest/platforms/android/cordova/node_modules/q/q.js:863:30)
    at Promise.promise.promiseDispatch (/vagrant/apps/TrailheadHybridTest/platforms/android/cordova/node_modules/q/q.js:796:13)
    at /vagrant/apps/TrailheadHybridTest/platforms/android/cordova/node_modules/q/q.js:857:14
    at runSingle (/vagrant/apps/TrailheadHybridTest/platforms/android/cordova/node_modules/q/q.js:137:13)
    at flush (/vagrant/apps/TrailheadHybridTest/platforms/android/cordova/node_modules/q/q.js:125:13)
    at _combinedTickCallback (internal/process/next_tick.js:67:7)
    at process._tickCallback (internal/process/next_tick.js:98:9)
Failed to restore plugin "cordova-plugin-whitelist" from config.xml. You might need to try adding it again. Error: Failed to find 'ANDROID_HOME' environment variable. Try setting setting it manually.
Failed to find 'android' command in your 'PATH'. Try update your 'PATH' to include path to valid SDK directory.
/vagrant/apps
/vagrant/apps/TrailheadHybridTest /vagrant/apps
support for subdirectories is deprecated and will be removed in Cordova@7
Fetching plugin "https://github.com/forcedotcom/SalesforceMobileSDK-CordovaPlugin" via git clone
Repository "https://github.com/forcedotcom/SalesforceMobileSDK-CordovaPlugin" checked out to git ref "v5.0.0".
Installing "com.salesforce" for android
Installing "cordova-plugin-whitelist" for android
Failed to install 'cordova-plugin-whitelist':Error
    at /vagrant/apps/TrailheadHybridTest/platforms/android/cordova/lib/check_reqs.js:222:19
    at _fulfilled (/vagrant/apps/TrailheadHybridTest/platforms/android/cordova/node_modules/q/q.js:834:54)
    at self.promiseDispatch.done (/vagrant/apps/TrailheadHybridTest/platforms/android/cordova/node_modules/q/q.js:863:30)
    at Promise.promise.promiseDispatch (/vagrant/apps/TrailheadHybridTest/platforms/android/cordova/node_modules/q/q.js:796:13)
    at /vagrant/apps/TrailheadHybridTest/platforms/android/cordova/node_modules/q/q.js:857:14
    at runSingle (/vagrant/apps/TrailheadHybridTest/platforms/android/cordova/node_modules/q/q.js:137:13)
    at flush (/vagrant/apps/TrailheadHybridTest/platforms/android/cordova/node_modules/q/q.js:125:13)
    at _combinedTickCallback (internal/process/next_tick.js:67:7)
    at process._tickCallback (internal/process/next_tick.js:98:9)
Failed to install 'com.salesforce':Error
    at /vagrant/apps/TrailheadHybridTest/platforms/android/cordova/lib/check_reqs.js:222:19
    at _fulfilled (/vagrant/apps/TrailheadHybridTest/platforms/android/cordova/node_modules/q/q.js:834:54)
    at self.promiseDispatch.done (/vagrant/apps/TrailheadHybridTest/platforms/android/cordova/node_modules/q/q.js:863:30)
    at Promise.promise.promiseDispatch (/vagrant/apps/TrailheadHybridTest/platforms/android/cordova/node_modules/q/q.js:796:13)
    at /vagrant/apps/TrailheadHybridTest/platforms/android/cordova/node_modules/q/q.js:857:14
    at runSingle (/vagrant/apps/TrailheadHybridTest/platforms/android/cordova/node_modules/q/q.js:137:13)
    at flush (/vagrant/apps/TrailheadHybridTest/platforms/android/cordova/node_modules/q/q.js:125:13)
    at _combinedTickCallback (internal/process/next_tick.js:67:7)
    at process._tickCallback (internal/process/next_tick.js:98:9)
/vagrant/apps
forcedroid create failed

Command failed: cordova plugin add https://github.com/forcedotcom/SalesforceMobileSDK-CordovaPlugin#v5.0.0 --force
Error: Failed to find 'ANDROID_HOME' environment variable. Try setting setting it manually.
Failed to find 'android' command in your 'PATH'. Try update your 'PATH' to include path to valid SDK directory.

And yet

vagrant@vagrant-ubuntu-trusty-64:/vagrant/apps$ echo $ANDROID_HOME
/opt/android/android-sdk-linux
vagrant@vagrant-ubuntu-trusty-64:/vagrant/apps$ which android
/opt/android/android-sdk-linux/tools/android

Puppet installation hangs for way too much time

I don't know why but it seems that this simple puppet manifest file takes way too much time to execute...

# Install java 8 & android SDK
class { 'java': } ->
  class { 'android': }

android::platform { 'android-24' : }
android::build_tools { 'build-tools-24.0.1' : }

# Install nodejs
class { 'nodejs':
  repo_url_suffix => '7.x'
}

# Install cordova
package { 'cordova':
  ensure          => 'present',
  install_options => ['--silent'],
  provider        => 'npm',
} -> # Disable telemtry
  exec { 'disable cordova telemetry':
    command => '/usr/bin/cordova telemetry off',
    user    => root
  }

# Install forcedroid
package { 'forcedroid':
  ensure          => 'present',
  install_options => ['--silent'],
  provider        => 'npm',
}

include git

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.