Skip to content

Instantly share code, notes, and snippets.

John Fitzpatrick johnfitzpatrick

Block or report user

Report or block johnfitzpatrick

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View plan.sh
pkg_name=sample_profile
pkg_version=0.1.0
pkg_origin=originname
pkg_deps=(chef/inspec)
pkg_build_deps=(chef/inspec core/jq-static)
pkg_svc_user=root
pkg_license=Apache-2.0
do_before() {
# Exit with error if not in the directory with 'inspec.yml'.
View habitat_plan_2.sh
pkg_name=national-parks
pkg_origin=myorigin
pkg_version="6.3.0"
pkg_maintainer="The Habitat Maintainers <humans@habitat.sh>"
pkg_license=("Apache-2.0")
pkg_deps=(core/tomcat8 core/jre8)
pkg_build_deps=(core/jdk8/8u131 core/maven)
pkg_svc_user="root"
do_prepare(){ export JAVA_HOME=$(hab pkg path core/jdk8) ; }
do_build()
View .bldr.toml
[nodejs_demo]
plan_path = "nodejs_demo/habitat"
View nodejs_demo_0.2.0_plan.sh
pkg_name=nodejs_demo
pkg_origin=myorigin
pkg_version="0.2.0"
pkg_scaffolding="core/scaffolding-node"
pkg_exports=(
[port]=app.port
)
pkg_exposes=(port)
View install_hab
curl https://raw.githubusercontent.com/habitat-sh/habitat/master/components/hab/install.sh | sudo bash
View default.toml
mongodb_database = "demo"
[server]
port = "8080"
shutdown-port = "8005"
redirect-port = "8443"
View docker-compose.yml
version: '3'
services:
mongodb:
image: core/mongodb
command: --peer ${HOSTIP}
environment:
HAB_MONGODB: "[mongod.net]\nbind_ip = '0.0.0.0'\n[mongod.security]\ncluster_auth_mode = ''"
national-parks01:
image: MYORIGIN/national-parks:latest
command: --peer mongodb --strategy at-once --bind database:mongodb.default
View gist:7b8dff6831de1cd24a2ee8dc639a004d
directory '/srv/httpd/admins/html' do
recursive true
mode '0755'
end
template '/etc/httpd/conf.d/admins.conf' do
source 'conf.erb'
mode '0644'
variables(document_root: '/srv/httpd/admins/html',port: 8080)
notifies :restart, 'service[httpd]'
You can’t perform that action at this time.