mirror of
https://github.com/zabbix/zabbix-docker.git
synced 2025-05-28 22:08:14 +02:00
Fixed extension for agent2 plugins
This commit is contained in:
parent
76af55b027
commit
d5fe0b814f
@ -55,22 +55,23 @@ RUN Set-Location -Path $env:SystemDrive\.; `
|
||||
`
|
||||
Copy-Item -Path $env:SystemDrive\zabbix-$env:ZBX_VERSION\bin\win64\zabbix_agent2.exe $env:SystemDrive\zabbix2\sbin; `
|
||||
Copy-Item -Path $env:SystemDrive\zabbix-$env:ZBX_VERSION\src\go\conf\zabbix_agent2.win.conf $env:SystemDrive\zabbix2\conf; `
|
||||
`
|
||||
Set-Location -Path $env:SystemDrive; `
|
||||
Write-Host ('Building Zabbix MongoDB plugin {0} version ...' -f $env:MONGODB_PLUGIN_VERSION); `
|
||||
git -c advice.detachedHead=false clone $env:MONGODB_PLUGIN_SOURCES --branch $env:MONGODB_PLUGIN_VERSION --depth 1 --single-branch $env:SystemDrive\mongodb_plugin; `
|
||||
Set-Location -Path $env:SystemDrive\mongodb_plugin; `
|
||||
mingw32-make; `
|
||||
mv $env:SystemDrive\mongodb_plugin\zabbix-agent2-plugin-mongodb $env:SystemDrive\mongodb_plugin\zabbix-agent2-plugin-mongodb.exe; `
|
||||
Write-Host 'Verifying build ("zabbix-agent2-plugin-mongodb.exe -V") ...'; `
|
||||
& $env:SystemDrive\mongodb_plugin\zabbix-agent2-plugin-mongodb.exe -V; `
|
||||
`
|
||||
Set-Location -Path $env:SystemDrive; `
|
||||
Write-Host ('Building Zabbix PostgreSQL plugin {0} version ...' -f $env:POSTGRESQL_PLUGIN_VERSION); `
|
||||
git -c advice.detachedHead=false clone $env:POSTGRESQL_PLUGIN_SOURCES --branch $env:POSTGRESQL_PLUGIN_VERSION --depth 1 --single-branch $env:SystemDrive\postgresql_plugin; `
|
||||
Set-Location -Path $env:SystemDrive\postgresql_plugin; `
|
||||
mingw32-make; `
|
||||
mv $env:SystemDrive\postgresql_plugin\zabbix-agent2-plugin-postgresql $env:SystemDrive\postgresql_plugin\zabbix-agent2-plugin-postgresql.exe; `
|
||||
Write-Host 'Verifying build ("zabbix-agent2-plugin-postgresql.exe -V") ...'; `
|
||||
& $env:SystemDrive\postgresql_plugin\zabbix-agent2-plugin-postgresql.exe -V; `
|
||||
Write-Host 'Zabbix binaries are compiled...';
|
||||
`
|
||||
Set-Location -Path $env:SystemDrive; `
|
||||
Write-Host ('Building Zabbix MongoDB plugin {0} version ...' -f $env:MONGODB_PLUGIN_VERSION); `
|
||||
git -c advice.detachedHead=false clone $env:MONGODB_PLUGIN_SOURCES --branch $env:MONGODB_PLUGIN_VERSION --depth 1 --single-branch $env:SystemDrive\mongodb_plugin; `
|
||||
Set-Location -Path $env:SystemDrive\mongodb_plugin; `
|
||||
mingw32-make; `
|
||||
mv $env:SystemDrive\mongodb_plugin\zabbix-agent2-plugin-mongodb.exe $env:SystemDrive\mongodb_plugin\zabbix-agent2-plugin-mongodb.exe; `
|
||||
Write-Host 'Verifying build ("zabbix-agent2-plugin-mongodb.exe -V") ...'; `
|
||||
& $env:SystemDrive\mongodb_plugin\zabbix-agent2-plugin-mongodb.exe -V; `
|
||||
`
|
||||
Set-Location -Path $env:SystemDrive; `
|
||||
Write-Host ('Building Zabbix PostgreSQL plugin {0} version ...' -f $env:POSTGRESQL_PLUGIN_VERSION); `
|
||||
git -c advice.detachedHead=false clone $env:POSTGRESQL_PLUGIN_SOURCES --branch $env:POSTGRESQL_PLUGIN_VERSION --depth 1 --single-branch $env:SystemDrive\postgresql_plugin; `
|
||||
Set-Location -Path $env:SystemDrive\postgresql_plugin; `
|
||||
mingw32-make; `
|
||||
mv $env:SystemDrive\postgresql_plugin\zabbix-agent2-plugin-postgresql.exe $env:SystemDrive\postgresql_plugin\zabbix-agent2-plugin-postgresql.exe; `
|
||||
Write-Host 'Verifying build ("zabbix-agent2-plugin-postgresql.exe -V") ...'; `
|
||||
& $env:SystemDrive\postgresql_plugin\zabbix-agent2-plugin-postgresql.exe -V; `
|
||||
Write-Host 'Zabbix binaries are compiled...'; `
|
||||
Remove-Item -Recurse -Force -Path $(go env GOCACHE);
|
||||
|
Loading…
x
Reference in New Issue
Block a user