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

Add windows support #19

Closed
wants to merge 6 commits into from

Conversation

degemer
Copy link
Member

@degemer degemer commented Apr 13, 2016

This PR adds a few Datadog-specific patches for Omnibus to build the Windows agent.
@elafarge is the main author of this PR, I updated it for omnibus 5.0, fixed a couple things and rebased.

Previous state

Omnibus 5.0 not tested with Windows.

What does this PR do ?

Add the ability to ship extra files in the final MSI.

Fix an issue with spaces in path and tar on Windows.

Add a pip DSL. (because it's easier and more beautiful to use)

Does it affect other platforms ?

pip DSL (see omnibus-software)

Related PR

DataDog/dd-agent#2417
DataDog/dd-agent-omnibus#74
DataDog/omnibus-software#48
https://github.com/DataDog/osx-dd-agent-build-box/pull/1

/!\ Dirty fix /!\

We don't have an `extra_package_file` directive for Windows builds
(there's one but it doesn't do anything) and as a matter of fact, it
wouldn't make much sense since the directories in whcih we'd like to put
these files are often User/System dependant or user configurable.

We added a routine to add such files under a directory defined in the
`source.wxs` file and referenced by it's id. To achieve that, the only
thing that needs to be done is to copy the extra files under
`<main_software_source_dir>/EXTRA_PACKAGE_FILES/DIRECTORY_ID`.
Otherwise it sometimes results in errors like that on Windows :
tar (child): Cannot connect to C: resolve failed
due to path containing ':', for instance "C:\Users".
Latest tar shipped with omnibus cookbook does not accept it.
@degemer degemer closed this May 25, 2016
@degemer degemer deleted the quentin/omnibus-5.0.0-datadog-patches branch May 25, 2016 20:30
@degemer degemer restored the quentin/omnibus-5.0.0-datadog-patches branch May 25, 2016 20:33
@degemer
Copy link
Member Author

degemer commented May 25, 2016

Closed by mistake. Replaced by #20

@degemer degemer deleted the quentin/omnibus-5.0.0-datadog-patches branch February 13, 2017 23:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants