Skip to content

Commit

Permalink
Merge branch 'master' of github.com:stephenlauck/windows-habitat-no-d…
Browse files Browse the repository at this point in the history
…ocker
  • Loading branch information
stephenlauck committed Aug 3, 2018
2 parents c272ed4 + 94b855a commit c01fb07
Show file tree
Hide file tree
Showing 3 changed files with 61 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .kitchen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ platforms:
customize:
memory: 2048
cpus: 4
- name: ubuntu-18.04


suites:
Expand All @@ -27,3 +28,14 @@ suites:
inspec_tests:
- test/smoke/default
attributes:
excludes:
- ubuntu-18.04
- name: linux
run_list:
- recipe[windows-habitat-no-docker::linux]
verifier:
inspec_tests:
- test/smoke/default
attributes:
excludes:
- windows-2016
28 changes: 28 additions & 0 deletions habitat/plan.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
$pkg_name="windows-habitat-no-docker"
$pkg_origin="lauck"
$pkg_version="0.1.0"
$pkg_maintainer="The Habitat Maintainers <[email protected]>"
$pkg_license=@("Apache-2.0")
$pkg_source="http://some_source_url/releases/${pkg_name}-${pkg_version}.zip"
# $pkg_filename="$pkg_name-$pkg_version.zip"
# $pkg_shasum="TODO"
# $pkg_deps=@()
# $pkg_build_deps=@()
# $pkg_lib_dirs=@("lib")
# $pkg_include_dirs=@("include")
# $pkg_bin_dirs=@("bin")
# $pkg_svc_run="MyBinary.exe"
# $pkg_exports=@{
# host="srv.address"
# port="srv.port"
# ssl-port="srv.ssl.port"
# }
# $pkg_exposes=@("port", "ssl-port")
# $pkg_binds=@{
# database="port host"
# }
# $pkg_binds_optional=@{
# storage="port host"
# }
# $pkg_description="Some description."
# $pkg_upstream_url="http://example.com/project-name"
21 changes: 21 additions & 0 deletions recipes/linux.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#
# Cookbook:: windows-habitat-no-docker
# Recipe:: linux
#
# Copyright:: 2018, The Authors, All Rights Reserved.

remote_file '/tmp/habitat-install.sh' do
source 'https://raw.githubusercontent.com/habitat-sh/habitat/master/components/hab/install.sh'
mode '0755'
end

file '/tmp/habitat-install.sh' do
mode '0755'
end

execute '/tmp/habitat-install.sh'

execute 'habitat build' do
cwd '/tmp/package'
command 'hab pkg build ./'
end

0 comments on commit c01fb07

Please sign in to comment.