Skip to content

Instantly share code, notes, and snippets.

View Lorne-LOB's full-sized avatar

Lorne Lorne-LOB

  • LOB
  • Melbourne
View GitHub Profile
# systemd configuration for master scheduler
[Unit]
Description=Airflow webserver daemon
After=rabbitmq-server.service
Wants=rabbitmq-server.service
[Service]
WorkingDirectory=/opt/airflow
Environment="AIRFLOW_HOME=/opt/airflow"
@Lorne-LOB
Lorne-LOB / lambda_pyodbc_layer.sh
Created October 21, 2020 02:12
build lambda layer for pyodbc
docker run -it --rm --entrypoint bash -e ODBCINI=/opt/odbc.ini -e ODBCSYSINI=/opt/ -v "$PWD":/opt lambci/lambda:build-python3.8
# install unixODBC
curl ftp://ftp.unixodbc.org/pub/unixODBC/unixODBC-2.3.7.tar.gz -O
tar xzvf unixODBC-2.3.7.tar.gz
cd unixODBC-2.3.7
./configure --sysconfdir=/opt --disable-gui --disable-drivers --enable-iconv --with-iconv-char-enc=UTF8 --with-iconv-ucode-enc=UTF16LE --prefix=/opt
make
make install
cd ..