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 multi mode chocolatey installation modes (online & offline) #5422

Merged
merged 4 commits into from
Apr 29, 2020

Conversation

julien-lebot
Copy link
Contributor

@julien-lebot julien-lebot commented Apr 27, 2020

What does this PR do?

This PR introduces a new 'online' installer for the Chocolatey package that will download the agent, instead of bundling the MSI with it.

Motivation

We have some issue pushing offline packages to Chocolatey's servers, so for now it's use the smaller 'online' package.

Additional Notes

Online package is built by default, offline installer is only built on demand.
Publish job can publish multiple packages.

/!\ The offline package has the ID datadog-agent-offline that is different from the online package datadog-agent.

Switch chocolatey to online install by default
Offline installer is only built on demand
@julien-lebot julien-lebot added this to the 7.20.0 milestone Apr 27, 2020
@julien-lebot julien-lebot requested a review from a team as a code owner April 27, 2020 21:58
albertvaka
albertvaka previously approved these changes Apr 28, 2020
Copy link
Contributor

@albertvaka albertvaka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 Good idea to keep both, so we can start providing the offline packages once they fix Chocolatey.

$installMethod = "online"
$nuspecFile = c:\mnt\chocolatey\datadog-agent-online.nuspec
$nupkgs = Get-ChildItem c:\mnt\chocolatey\datadog-agent*.msi
if (($nupkgs | Measure-Object).Count -gt 0) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could have three cases here:

  • count == 0: offline
  • count == 1: online
  • count > 1: error, abort

albertvaka
albertvaka previously approved these changes Apr 28, 2020
@julien-lebot julien-lebot merged commit 136d644 into master Apr 29, 2020
@dd-devflow dd-devflow bot deleted the julien.lebot/choco_multi_mode_publish branch April 19, 2024 00:12
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