Skip to content

Instantly share code, notes, and snippets.

View Ryllaz's full-sized avatar
🇺🇦

Yurii Markovych Ryllaz

🇺🇦
View GitHub Profile
@Ryllaz
Ryllaz / run
Last active June 30, 2023 11:45
Template for bootstrap script for any project
#!/bin/bash
SCRIPT_DIR="$(dirname "$(readlink -f "${BASH_SOURCE}")")"
# ----------------- START OF THE USER FUNCTIONS SECTION -----------------
my_first_command_help() {
echo "Build project"
}
my_first_command() { ## It is my first command
echo "doing something important"
sometext
@Ryllaz
Ryllaz / 00_OSX_Docker_Machine_Setup.md
Last active November 3, 2019 12:53 — forked from bitjockey42/00_OSX_Docker_Machine_Setup.md
Use native virtualization on OS X docker with xhyve

What this?

So one of the painful points of using docker on OS X is that you need to run a virtualbox VM, which often suffers from performance issues. With xhyve, a OS X virtualization system, and docker-machine-xhyve you can now have docker use the native OS X hypervisor to run containers.

No more dealing with virtualbox shenanigans!

In this script, I've also set up a way to autoconfigure terminal sessions to load docker's environment vars (dependent on docker-machine) so you do not have to run eval $(docker-machine env whatever) every time you open a new terminal window.

Requirements

<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body>
</body>
</html>
<!--dghxdtjdj-->