-
Notifications
You must be signed in to change notification settings - Fork 21
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
Closed
Commits on Jun 19, 2015
-
[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
Configuration menu - View commit details
-
Copy full SHA for 234a95c - Browse repository at this point
Copy the full SHA 234a95cView commit details -
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)
Configuration menu - View commit details
-
Copy full SHA for c45170f - Browse repository at this point
Copy the full SHA c45170fView commit details -
[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
Configuration menu - View commit details
-
Copy full SHA for 0b33e74 - Browse repository at this point
Copy the full SHA 0b33e74View commit details -
[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.
Configuration menu - View commit details
-
Copy full SHA for 1370824 - Browse repository at this point
Copy the full SHA 1370824View commit details -
[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.
Configuration menu - View commit details
-
Copy full SHA for e512889 - Browse repository at this point
Copy the full SHA e512889View commit details
Commits on Jun 22, 2015
-
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
Configuration menu - View commit details
-
Copy full SHA for caae886 - Browse repository at this point
Copy the full SHA caae886View commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.