geode-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jbarr...@apache.org
Subject [geode-native] branch develop updated: GEODE-5093: Fixing dependencies install script (#280)
Date Thu, 19 Apr 2018 17:39:13 GMT
This is an automated email from the ASF dual-hosted git repository.

jbarrett pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/geode-native.git


The following commit(s) were added to refs/heads/develop by this push:
     new 7f5ec16  GEODE-5093: Fixing dependencies install script (#280)
7f5ec16 is described below

commit 7f5ec162dae3142852edb0e7e12367fd1bd0ac15
Author: Ryan McMahon <rmcmahon@pivotal.io>
AuthorDate: Thu Apr 19 10:39:10 2018 -0700

    GEODE-5093: Fixing dependencies install script (#280)
    
    Signed-off-by: Michael Oleske <moleske@pivotal.io>
---
 packer/dev-windows-2012-r2.json                    |  6 ++++
 .../install-dependencies-app-from-github.ps1       | 37 ++++++++++++++++++++++
 packer/windows/install-dependencies.ps1            | 15 +++++++++
 3 files changed, 58 insertions(+)

diff --git a/packer/dev-windows-2012-r2.json b/packer/dev-windows-2012-r2.json
index 7b2fa04..0cdc624 100644
--- a/packer/dev-windows-2012-r2.json
+++ b/packer/dev-windows-2012-r2.json
@@ -46,6 +46,12 @@
     },
     {
       "type":"powershell",
+      "scripts":[
+        "windows/install-dependencies-app-from-github.ps1"
+      ]
+    },
+    {
+      "type":"powershell",
       "inline":[
         "Remove-Item C:\\Users\\build\\.ssh -Recurse -Force -ErrorAction SilentlyContinue"
       ]
diff --git a/packer/windows/install-dependencies-app-from-github.ps1 b/packer/windows/install-dependencies-app-from-github.ps1
new file mode 100644
index 0000000..58580d4
--- /dev/null
+++ b/packer/windows/install-dependencies-app-from-github.ps1
@@ -0,0 +1,37 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#      http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+$repo = "lucasg/Dependencies"
+$file = "Dependencies.zip"
+
+$releases = "https://api.github.com/repos/$repo/releases"
+
+[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
+
+Write-Host Determining latest release
+$tag = (Invoke-WebRequest $releases | ConvertFrom-Json)[0].tag_name
+
+$download = "https://github.com/$repo/releases/download/$tag/$file"
+$name = $file.Split(".")[0]
+$zip = "c:\$name-$tag.zip"
+
+Write-Host Downloading latest release
+Invoke-WebRequest $download -Out $zip
+
+Write-Host Extracting release files
+Expand-Archive -Path $zip -DestinationPath c:\Users\Administrator\Desktop\Dependencies-$tag
-Force
+
+# Removing temp files
+Remove-Item $zip -Force
diff --git a/packer/windows/install-dependencies.ps1 b/packer/windows/install-dependencies.ps1
index 54415ed..95e3f9e 100644
--- a/packer/windows/install-dependencies.ps1
+++ b/packer/windows/install-dependencies.ps1
@@ -1,3 +1,18 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#      http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
 choco install jdk8 -confirm
 choco install cmake.portable -confirm
 choco install git.install -confirm

-- 
To stop receiving notification emails like this one, please contact
jbarrett@apache.org.

Mime
View raw message