Skip to content

Instantly share code, notes, and snippets.

Avatar

Jonathan DeMarks ca0abinary

  • West Plains MO US
View GitHub Profile
@ca0abinary
ca0abinary / Dockerfile
Last active May 11, 2020
Docker - Build pyOdbc Microsoft SQL AWS Lambda Layer
View Dockerfile
FROM lambci/lambda:build-python3.7
WORKDIR /root
RUN yum -y update
RUN curl ftp://ftp.unixodbc.org/pub/unixODBC/unixODBC-2.3.5.tar.gz -O && \
tar xvzf unixODBC-2.3.5.tar.gz && \
cd unixODBC-2.3.5 && \
./configure --sysconfdir=/opt/python --disable-gui --disable-drivers --enable-iconv --with-iconv-char-enc=UTF8 --with-iconv-ucode-enc=UTF16LE --prefix=/home && \
make install && \
cd .. && \
mv /home/* . && \
@ca0abinary
ca0abinary / keybase.md
Last active May 17, 2018
Keybase proof
View keybase.md

Keybase proof

I hereby claim:

  • I am ca0abinary on github.
  • I am jonathandemarks (https://keybase.io/jonathandemarks) on keybase.
  • I have a public key whose fingerprint is 0F3A 4CB4 FD51 423E AB89 D0FA AF0D 1EEC 1466 7A3A

To claim this, I am signing this object:

@ca0abinary
ca0abinary / marathon@.service
Created Mar 27, 2015
CoreOS (Mesos + Marathon + Zookeeper)
View marathon@.service
[Unit]
Description=Marathon
After=docker.service
Requires=docker.service
[Service]
Restart=on-failure
RestartSec=20
TimeoutStartSec=0
ExecStartPre=-/usr/bin/docker kill marathon
@ca0abinary
ca0abinary / mesos-slave@.service
Created Mar 27, 2015
CoreOS (Mesos + Marathon + Zookeeper)
View mesos-slave@.service
[Unit]
Description=MesosSlave
After=docker.service
Requires=docker.service
[Service]
Restart=on-failure
RestartSec=20
TimeoutStartSec=0
ExecStartPre=-/usr/bin/docker kill mesos_slave
@ca0abinary
ca0abinary / mesos-master@.service
Created Mar 27, 2015
CoreOS (Mesos + Marathon + Zookeeper)
View mesos-master@.service
[Unit]
Description=MesosMaster
After=docker.service
Requires=docker.service
[Service]
Restart=on-failure
RestartSec=20
TimeoutStartSec=0
ExecStartPre=-/usr/bin/docker kill mesos_master
@ca0abinary
ca0abinary / zookeeper@.service
Created Mar 27, 2015
CoreOS (Mesos + Marathon + Zookeeper)
View zookeeper@.service
[Unit]
Description=Zookeeper service
After=docker-flannel.service
ConditionFileNotEmpty=/etc/zookeeper-release
ConditionFileNotEmpty=/etc/zookeeper-environment
[Service]
EnvironmentFile=/etc/environment
EnvironmentFile=/etc/zookeeper-release
EnvironmentFile=/etc/zookeeper-environment
@ca0abinary
ca0abinary / config.rb
Created Mar 19, 2015
CoreOS + Etcd + Flannel = Pretty Cool (config.rb)
View config.rb
$new_discovery_url='https://discovery.etcd.io/new'
# To automatically replace the discovery token on 'vagrant up', uncomment
# the lines below:
if File.exists?('user-data') && ARGV[0].eql?('up')
require 'open-uri'
require 'yaml'
token = open($new_discovery_url).read
@ca0abinary
ca0abinary / user-data
Created Mar 19, 2015
CoreOS + Etcd + Flannel = Pretty Cool (user-data)
View user-data
#cloud-config
---
coreos:
etcd:
addr: $public_ipv4:4001
peer-addr: $public_ipv4:7001
discovery: https://discovery.etcd.io/ff10c58e472358739a4d57e315cc94f3
fleet:
public-ip: $public_ipv4
You can’t perform that action at this time.