Skip to content

Instantly share code, notes, and snippets.

@ctbucha
ctbucha / Dockerfile
Last active September 25, 2018 20:01
Webpack 4 - Resolve globally installed dependencies
# Multistage docker file with builder container and running container.
# This isn't a complete working example. It is just to illustrate how to
# globally install bs-platform on the builder container as its own docker layer.
FROM node/carbon-alpine as builder
# bs-platform post-install requires python
RUN apk update && apk add python
# requires --unsafe-perm since installing as root user in docker

Keybase proof

I hereby claim:

To claim this, I am signing this object:

@ctbucha
ctbucha / cloudwatch_logs_sink.yml
Created March 1, 2017 01:03
Centralize logs in isolated AWS account
Description: Deploys a CloudWatch log destination to a Kinesis Firehose.
Parameters:
SubscriptionFilterAccountId:
Description: The account ID of the subscription filter.
Type: String
LogSinkKinesisStreamName:
Description: The name of the log sink Kinesis stream.
@ctbucha
ctbucha / Build_and_push_squid.sh
Last active January 17, 2017 02:42
Build package in Docker container and push to APT repository on AWS S3
#!/bin/bash
# This script is used to build Squid inside a container and then push the
# resulting deb files to a private apt repo.
UBUNTU_PACKAGE_S3_BUCKET=examplebucket-ubuntu-packages
SQUID_ARCH=amd64
SQUID_PACKAGES=(
squid-common_3.5.12-1ubuntu7.2_all.deb
squid_3.5.12-1ubuntu7.2_amd64.deb