Skip to content

Instantly share code, notes, and snippets.

View brianjbayer's full-sized avatar

Brian J. Bayer brianjbayer

View GitHub Profile
@brianjbayer
brianjbayer / gist-kubernetes-in-docker-desktop-on-mac.md
Last active August 13, 2021 13:10
Kubernetes in Docker Desktop for Mac

Kubernetes in Docker Desktop for Mac

Lake Erie Lighthouse at Fairport Harbor- Wendy Bayer


What this is (the simplest thing that might possibly work)

Probably the simplest way you can get started with Kubernetes (k8s) on a Mac (or run a local development environment) is with the single-node Kubernetes cluster built into Docker Desktop.

@brianjbayer
brianjbayer / gist-rspec-rails-system-specs.md
Last active March 23, 2024 15:33
Use RSpec Rails System Specs for Web Server Level Functional Tests

Use RSpec Rails System Specs for Web Server Level Functional Tests

Center Street Drawbridge Cleveland, Ohio - Wendy Bayer

🕐 Updated March 2024


Why

Test all of your Rails app's functionality even at the highest feature level right in RSpec with the rest of your unit and integration tests.

@brianjbayer
brianjbayer / gist-adding-webdrivermanager-selenium-dotnet.md
Last active October 24, 2021 17:57
A How To for adding the WebDriverManager package to a Selenium C# local browser automation project

Adding WebDriverManager.Net to your C#-Selenium Project

In the rear view mirror heading to Berlin Heights, Ohio - Wendy Bayer


What This Is

This is the basic gist (and why) of adding the WebDriverManager.Net Package to your C#-Selenium web browser automation project.

@brianjbayer
brianjbayer / buildtag
Created November 28, 2021 22:25
Script to Docker Build a Tagged Image
#!/bin/sh
# This script builds the image with either the specified argument
# or default git long sha of the last commit
IMAGE_NAME=${IMAGE_NAME:-SET-THE-dockerid/repository-name}
must_be_git_repos() {
git rev-parse --git-dir > /dev/null 2>&1
errcode=$?
if [ $errcode -ne 0 ]; then
@brianjbayer
brianjbayer / gist-add-docker-compose-framework-to-browser-tests-part-1.md
Last active January 4, 2022 18:16
Part 1 - Add a docker-compose Framework to Your Browser Tests

Add a docker-compose Framework to Your Browser Tests (Part 1 of 3)

The Flats Cleveland, Ohio - Wendy Bayer


Simplify running and testing your tests and maybe even get more people to run and use them.

Add a simple but easy-to-use docker-compose orchestration framework using a Selenium Standalone browser container

@brianjbayer
brianjbayer / gist-add-docker-compose-framework-to-browser-tests-part-2.md
Last active January 28, 2022 23:47
Part 2 - Add a docker-compose Framework to Your Browser Tests

Add a docker-compose Framework to Your Browser Tests (Part 2 of 3)

The River in the Flats Cleveland, Ohio - Wendy Bayer


Simplify running and testing your tests and maybe even get more people to run and use them.

Add a simple but easy-to-use docker-compose orchestration framework using a Selenium Standalone browser container

@brianjbayer
brianjbayer / gist-add-docker-compose-framework-to-browser-tests-part-3.md
Last active January 4, 2022 18:13
Part 3 - Add a docker-compose Framework to Your Browser Tests

Add a docker-compose Framework to Your Browser Tests (Part 3 of 3)

Cleveland Browns Stadium Cleveland, Ohio - Brian Bayer


Simplify running and testing your tests and maybe even get more people to run and use them.

Add a simple but easy-to-use docker-compose orchestration framework using a Selenium Standalone browser container

@brianjbayer
brianjbayer / gist-phantomjs-capybara-rspec.md
Last active January 9, 2022 19:50
Using PhantomJS in Capybara RSpec (Historical)

Using PhantomJS in Capybara RSpec

Wood Fungus - Brian Bayer


Before there was headless Chrome and Firefox, there was the PhantomJS headless browser.

With the rise of headless Chrome and Firefox and lack of active contributors, PhantomJS development has been

@brianjbayer
brianjbayer / test-native-sample-ruby-project
Last active May 19, 2022 14:51
Simple bash script to test my sample-login-... Ruby projects running natively
#!/bin/bash
prompt-to-proceed () {
read -p "Do you wish to proceed (Press any key to continue or 'n' to exit)? " response
if [[ $response == 'n' ]] || [[ $response == 'N' ]]; then
echo " buh-bye"
echo ""
exit
fi
echo ""
@brianjbayer
brianjbayer / gist-cheatsheet-env-vars-in-docker.md
Last active January 19, 2022 01:21
Cheat Sheet for Using Environment Variables in Docker (and docker-compose)

Docker Environment Variables Cheat Sheet

There are two sets of separate and independent environment variables to consider in Docker...

  1. Local environment variables in the shell where you are calling the docker/docker-compose commands, like your laptop, CI/CD, or production server)
  2. Container environment variables in your running containers

There are two basic concepts when using environment variables in Docker...