Code Monkey home page Code Monkey logo

puppet-android's Introduction

Boxen Build Status

Manage Mac development boxes with love (and Puppet).

Rules for Services

  1. Run on a nonstandard port, usually default port + 1000 or 10000.

  2. Install with a custom Boxen homebrew formula.

  3. Suffix the Homebrew package's version, starting with -boxen1.

  4. Run as a launchd service in the dev namespace, e.g., dev.dnsmasq.

  5. Store config, data, and log files in $BOXEN_HOME/{config,data,log}. This will normally require customization of a service's Homebrew formula.

Sometimes it's not possible to follow these rules, but try hard.

Projects from the CLI

We use a totally awful hack to do from-the-cli project installs of projects. We create a file in "$BOXEN_HOME/repodir" called .projects, with a single line. That line is made up of projects separated by commas. We then read that into a Puppet fact in Puppet-land, and that checks for classes that match those project names, and includes them in the catalog.

We can't pass a FACTER_ env var because sudo has env_reset and we can't just modify the sudoers file due to a chicken-egg problem.

Hooks

  1. All hooks must be in the namespace Boxen::Hook::MyThing.

  2. All hooks must subclass from Boxen::Hook

  3. All hooks must provide a private instance method required_environment_variables that returns an array with at least one entry.

  4. All hooks must provide a private instance method #call.

Contributing

Use the OS X system Ruby (2.0 or newer). Run script/tests often. Open PR's. Use the CI.

Halp!

Use Issues or #boxen on irc.freenode.net.

puppet-android's People

Contributors

aafwu00 avatar blackjid avatar mtakezawa avatar ocxo avatar rafaelfranca avatar tarebyte avatar wikyd avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

puppet-android's Issues

allow setting the ndk version

I have an app that requires ndk r10, but currently this module sets $android::config::ndk_version to r9c-boxen1.

I'm a bit of a puppet noob so I'm not sure I can help out much with the pull request. But I'll give it a shot if you can point me in direction of an example I can follow.

build-tools location

@aafwu00 @tarebyte @fromonesrc I updated the brew formula to use the latest sdk. I was really looking to fix a problem where the build-tool zipalign was not found by the /opt/boxen/homebre/bin/zipalign script

That bin is in fact a symlink to /opt/boxen/homebrew/Cellar/android-sdk/24-boxen1/bin/zipalign and it contents is

#!/bin/bash
TOOL="/opt/boxen/homebrew/Cellar/android-sdk/24-boxen1/build-tools/21.1.2/zipalign"
exec "$TOOL" "$@"

The problem is that in the formula, the build-tools version is hardcoded (was to 17.0.0 and now is to 21.1.2) https://github.com/boxen/puppet-android/blob/master/files/brews/android-sdk.rb#L25-L27
In order to work you need to install that exact version with the build-tools class this puppet module provides

android::build_tools { '21.1.2': }

Maybe the the formula install bits that create those files should be triggered somehow when the android::build_tools class is used...

Or maybe the brew formula should explain after intalling that you need to install that version of build-tools ??

Can you think of a better solution or approach to fix this issue?

Incompatible with latest Java

If your own Puppetfile has:

  • github "java", "1.5.0"

On install of puppet-android you get a conflict as the latest is installed, but this seems to be requiring 1.1.2 any way to loosen this constraint?

Extras with numbers in the name always downloaded again

The detection of already installed extras doesn't work if the extra has a number in the name. For example extra-android-m2repository will install in extra/android/m2repository, but the regex ($subfix = regsubst($version, '^extra-(\D+)-(\D+)$', '\2')) will fail to match this, so it will look for extra/extra-android-m2repository/extra-android-m2repository.

So the regex should be a bit smarter, but I don't know what formats we can expect (I'm just a poor lonesome ops guy, not an Android dev, trying to get Jenkins under control). '^extra-(.+)-(.+)$' seems to work for me.

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.