Skip to content

Instantly share code, notes, and snippets.

View ssplatt's full-sized avatar

Brett Taylor ssplatt

  • Picwell
  • Philadelphia, PA
View GitHub Profile

Retweeted

  • @onlyacello
  • @aprakasa3
  • @Fenita79269111
  • @arezyadi
  • @moechyarul
  • @rio85851
  • @bct215
  • @NovarisAji

Keybase proof

I hereby claim:

  • I am ssplatt on github.
  • I am bretttaylor (https://keybase.io/bretttaylor) on keybase.
  • I have a public key ASBNEkHP2WdKwCg5-kQAvWawWhI6ZrIL-Tz2bnV4DUEAZQo

To claim this, I am signing this object:

@ssplatt
ssplatt / Dockerfile
Last active November 12, 2021 17:07
Superalgos Docker Development Environment
FROM debian:latest
WORKDIR /app
COPY docker-entrypoint.sh /
RUN apt-get update \
&& apt-get upgrade -y \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y curl git bash zsh python3 \
&& curl -fsSL https://deb.nodesource.com/setup_17.x | bash - \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y nodejs gcc g++ make yarn \
&& chmod a+x /docker-entrypoint.sh
CMD [ "/docker-entrypoint.sh" ]
@ssplatt
ssplatt / superalgos-docker-intro.md
Last active September 30, 2021 19:18
An introduction to running Superalgos in Docker. Some Docker best practices included as well.

Superalgos Docker Basics

Introduction

This walkthrough is broken up into to parts: a quick-start guide to running Superalgos with Docker and a deeper, more theoretical dive into containers with the hopes of explaining some of the design decisions.

Superalgos, at its core, is a web application which also means it can be deployed inside a container like many other web applications. One of the leading platforms for operating containers is Docker. Docker can run on many different operatng systems and compute platforms. The containers provide an easy, fast, repeatable, and secure way to deploy and distribute applications. While it doesn't take much experience to run containers or Docker, there are some basics that any user should learn in order to use the technology effectively.

Before getting started, be aware that Docker is not the originally intended method of running the [Superalgos](https://github.com/Superalgos/S

@ssplatt
ssplatt / kube-flannel.yml
Created July 23, 2018 23:41
flannel for arm64 (odroid) - kubernetes
---
kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1beta1
metadata:
name: flannel
rules:
- apiGroups:
- ""
resources:
- pods
@ssplatt
ssplatt / cpu.log
Last active January 11, 2018 02:18
odroid c2, samsung sd xc u3
sysbench --test=cpu --cpu-max-prime=20000 --num-threads=$(cat /proc/cpuinfo | grep processor | wc -l) run
sysbench 0.4.12: multi-threaded system evaluation benchmark
Running the test with following options:
Number of threads: 4
Doing CPU performance benchmark
Threads started!
Done.
@ssplatt
ssplatt / README.md
Last active October 30, 2018 13:34
Docker-CE for Odroid. aarch64 (arm64) is not a supported arch for Docker-CE yet, but the things to build the packages already exist.
@ssplatt
ssplatt / kube-proxy-amd64.yml
Created December 5, 2017 04:11
mixed arch (arm and amd64, raspberry pi and pc) kubernetes cluster kube-proxy daemonset configs
apiVersion: extensions/v1beta1
kind: DaemonSet
metadata:
creationTimestamp: null
generation: 1
labels:
k8s-app: kube-proxy-amd64
name: kube-proxy-amd64
selfLink: /apis/extensions/v1beta1/namespaces/kube-system/daemonsets/kube-proxy-amd64
namespace: kube-system
context 'create npm resources' do
let(:facts) do
facts
end
let('nodejs::npm') do
{
'myapp' => {
'ensure' => "present",
'target' => "/var/www/apps/myapp",
'use_package_json' => true
@ssplatt
ssplatt / init.pp
Last active November 1, 2017 17:42
class myapp (){
file { '/opt/serverapp':
ensure => 'directory',
owner => 'myuser',
group => 'myuser'
}
nodejs::npm { 'express from the npm registry':
ensure => 'present',
package => 'express',