Skip to content

Instantly share code, notes, and snippets.

Avatar
🤘
GSD. Just ping me, I'll get back at ya.

Adron Hall Adron

🤘
GSD. Just ping me, I'll get back at ya.
View GitHub Profile
@Adron
Adron / gist:e42a69307e1a889444db327859a09474
Created Dec 7, 2020
Bash file to publish (build) C# CLI to multiple OSs
View gist:e42a69307e1a889444db327859a09474
#!/usr/bin/env bash
dotnet restore
dotnet build
function publish {
echo $1
CASSIEPATH=$1
RID=$1
CASSIEPATH=release/v0/$CASSIEPATH
View adrons-ecosystem-dev-env-docker-compose.yaml
version: '3.6'
services:
postgres:
image: postgres:12
restart: always
volumes:
- db_data:/Users/adron/Codez/databases
environment:
POSTGRES_PASSWORD: ${PPASSWORD}
ports:
@Adron
Adron / gist:6d7cb4be3a22429d0ff8c8bd360f3ce2
Created Sep 9, 2020
adrons-ecosystem-terraform-main.tf
View gist:6d7cb4be3a22429d0ff8c8bd360f3ce2
provider "azurerm" {
version = "=2.20.0"
features {}
}
resource "azurerm_resource_group" "adronsrg" {
name = "adrons-rg"
location = "westus2"
}
@Adron
Adron / build.sh
Created Aug 17, 2019
A Build Script for Packer on Azure
View build.sh
GROUPNAME="adrons-images"
LOCATION="westus2"
STORAGENAME="adronsimagestorage"
IMAGECASSANDRA="basecassandra"
echo 'Deleting existing image.'
az image delete -g $GROUPNAME -n $IMAGECASSANDRA
echo 'Creating the managed resource group for images.'
@Adron
Adron / node-cassandra.json
Created Aug 17, 2019
Apache Cassandra 3.11.4 on Ubuntu 18.04 LTS Packer Template
View node-cassandra.json
{
"variables": {
"client_id": "{{env `TF_VAR_clientid`}}",
"client_secret": "{{env `TF_VAR_clientsecret`}}",
"tenant_id": "{{env `TF_VAR_tenant_id`}}",
"subscription_id": "{{env `TF_VAR_subscription_id`}}",
"imagename": "",
"storage_account": "adronsimagestorage",
"resource_group_name": "adrons-images"
},
@Adron
Adron / packer_ubuntu.json
Created Aug 16, 2019
Building a Basic Ubuntu Image w/ Packer using Device Login
View packer_ubuntu.json
{
"variables": {
"tenant_id": "{{env `TF_VAR_tenant_id`}}",
"subscription_id": "{{env `TF_VAR_subscription_id`}}",
"storage_account": "adronsimagestorage",
"resource_group_name": "adrons-images"
},
"builders": [{
"type": "azure-arm",
@Adron
Adron / clusternode.json
Created Aug 8, 2019
Clusternode.json file for Packer Build.
View clusternode.json
{
"variables": {
"client_id": "{{env `TF_VAR_clientid`}}",
"client_secret": "{{env `TF_VAR_clientsecret`}}",
"tenant_id": "{{env `TF_VAR_tenant_id`}}",
"subscription_id": "{{env `TF_VAR_subscription_id`}}",
"storage_account": "adronsimagestorage",
"resource_group_name": "adrons-images"
},
@Adron
Adron / crash.log
Created Aug 8, 2019
The Error I've been getting from Packer image building on Azure.
View crash.log
2019/08/08 16:07:29 [INFO] Packer version: 1.4.2
2019/08/08 16:07:29 Packer Target OS/Arch: linux amd64
2019/08/08 16:07:29 Built with Go Version: go1.12.6
2019/08/08 16:07:29 Detected home directory from env var: /home/adron
2019/08/08 16:07:29 Using internal plugin for proxmox
2019/08/08 16:07:29 Using internal plugin for amazon-ebs
2019/08/08 16:07:29 Using internal plugin for amazon-ebsvolume
2019/08/08 16:07:29 Using internal plugin for hyperv-iso
2019/08/08 16:07:29 Using internal plugin for linode
2019/08/08 16:07:29 Using internal plugin for ncloud
@Adron
Adron / node.json
Last active Aug 7, 2019
The Basic Packer Example from Microsoft's Docs.
View node.json
{
"variables": {
"client_id": "{{env `TF_VAR_clientid`}}",
"client_secret": "{{env `TF_VAR_clientsecret`}}",
"tenant_id": "{{env `TF_VAR_tenant_id`}}",
"subscription_id": "{{env `TF_VAR_subscription_id`}}"
},
"builders": [{
"type": "azure-arm",
@Adron
Adron / .bash_profile.sh
Created Aug 1, 2019
The export of the subscription and tenant ID's for Azure use with Terraform.
View .bash_profile.sh
export TF_VAR_subscription_id="00000000-0000-0000-0000-000000000000"
export TF_VAR_tenant_id="11111111-1111-1111-1111-111111111111"