Skip to content

Instantly share code, notes, and snippets.

View deardooley's full-sized avatar

Rion Dooley deardooley

View GitHub Profile
@deardooley
deardooley / Dockerfile
Last active November 9, 2015 03:42
Quick test image for abaco that will document the date locally and make a webhook callout to a URL passed as the message to get a timestamp externally.
FROM alpine:latest
ADD start.sh /docker_entrypoint.sh
RUN chmod +x /docker_entrypoint.sh
CMD ["sh", "/docker_entrypoint.sh"]
@deardooley
deardooley / lamp-mysql-slurm-ftpd
Last active September 15, 2015 11:16
Docker Compose file for lamp, mysql, slurm, ftpd. Save as `docker-compose.yml` and change the hostname to your server or VM hostname. **Do not use this in production!!!**
web:
image: php:5.6-apache
hostname: docker.example.com
ports:
- "80:80"
- "443:443"
links:
- mysql
- ftpd
- slurm
@deardooley
deardooley / 000-default.conf
Last active February 21, 2023 03:19
Sample Apache virtual host to proxy subdomain to docker container
<VirtualHost *:80>
ServerAdmin admin@example.com
DocumentRoot /var/www
ServerName docker.example.com
ErrorLog logs/docker.example.com_error.log
CustomLog logs/docker.example.com_access.log combined
ProxyPreserveHost On
ProxyRequests off
<Location />
@deardooley
deardooley / jsonpki.sh
Last active August 29, 2015 14:19
This is a utility script to serialize keys and passwords into strings that can be safely used as string values in JSON objects.
#!/bin/bash
#
# Name: jsonpki.sh
#
# Author: Rion Dooley - deardooley
#
# Description: This is a utility script to serialize keys and passwords into
# strings that can be included safely in json objects and sent to a remote
# server. There are surely other ways to do this, but this seems to work well
# in situations such as creating system descriptions for use in the Agave
@deardooley
deardooley / gist:f5512a966ddad73b19eb
Created March 21, 2015 16:30
figexec - Bash script to add docker exec support for fig orchestrations
#!/bin/bash
######################################################################
#
# figexec
#
# Author: Rion Dooley <deardooley@gmail.com>
# Description:
# This script emulates the functionality one would expect if `docker exec`
# functionality were supported in fig. Simply run this from your project