Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[osx] Add Mac OS X build instructions #11

Closed
wants to merge 6 commits into from
Closed

Commits on Jun 19, 2015

  1. [osx] Add Mac build instruction

    - Omnibus 3.2.2 compatible
    - Remove blocking packages
    - Put all conf in /opt/datadog-agent since extra_package_file is not
    working
    - Use postinstall script for configuration and some cleanup
    - Remove all traces of dd-agent user in conf
    - Remove useless sudo
    
    - Adapt build to new directory packaging/osx,
    instead of the old one packaging/datadog-agent/osx
    
    - Build for non-root use of datadog-agent,
    update of postinstall script to set all correct rights
    degemer committed Jun 19, 2015
    Configuration menu
    Copy the full SHA
    234a95c View commit details
    Browse the repository at this point in the history
  2. [osx] Ship GUI inside the DMG

    Build a GUI app with py2app
    More precisely (everything is under win32 for now):
    - gui.py
    - images
    - status.html
    
    - ship supervisor and gohai in the app
    (ship supervisor commands & cleanup
    Take previous config is an app is already installed)
    degemer committed Jun 19, 2015
    Configuration menu
    Copy the full SHA
    c45170f View commit details
    Browse the repository at this point in the history
  3. [osx] Improve install resilience

    - fix all install issues due to spaces in path
    - log to file pre/postinstall scripts
    - set rights to current user
    - launch the app at the end of the install
    - doesn't install if same version and already installed
    
    Update to {pre|post}install scripts so that:
    - agent and App are closed before install if running
    - agent and App are started after install
    - exit if user used to install is root (we don't want to run the agent
      as root)
    - add an internal `/run` directory, b/c `/var/run/dd-agent` is deleted
      every now and then
    
    [osx] link conf.d to ~/.datadog-agent/conf.d
    degemer committed Jun 19, 2015
    Configuration menu
    Copy the full SHA
    0b33e74 View commit details
    Browse the repository at this point in the history
  4. [osx] Sign package & new high-res pictures

    And update README & installer high-res pictures
    And add a `datadog-agent` command in the PATH:
    
    If someone wants to play with the agent using the command line.
    Also fix a bug where the status was not working in the App started after
    install.
    degemer committed Jun 19, 2015
    Configuration menu
    Copy the full SHA
    1370824 View commit details
    Browse the repository at this point in the history
  5. [osx] start agent at login automatically

    And link all conf files to ~/.datadog-agent
    Also (for simplification reasons):
    the app is totally destroyed (except configuration, ofc) during the preinstall
    script, to avoid any error and be in the same state for upgrade install for
    postinstall.
    Why do this ? Avoid Mac-behavior dependencies for the upgrade, it doesn't
    always behave as it should.
    degemer committed Jun 19, 2015
    Configuration menu
    Copy the full SHA
    e512889 View commit details
    Browse the repository at this point in the history

Commits on Jun 22, 2015

  1. [osx] split GUI and agent

    See DataDog/dd-agent#1361 for more details about the
    agent.
    Consequences for dd-agent-omnibus:
    - software definition of `datadog-agent`:
      * ship `datadog-agent` command line tool in install_dir/bin
      * delete GUI-only packages after app creation
      * do not delete anymore install_dir/{agent,embedded}
      * create and fill install_dir/etc conf directory
    - preinst script:
      * use new conf dir `/opt/datadog-agent/etc`
      * delete agent pyc files
    - postinst script:
      * some more logs for easier debug (logs are only visible in
      /var/log/datadog/preinstall.log)
      * use new conf dir
    degemer committed Jun 22, 2015
    Configuration menu
    Copy the full SHA
    caae886 View commit details
    Browse the repository at this point in the history