Skip to content

Instantly share code, notes, and snippets.

View ironicbadger's full-sized avatar

Alex Kretzschmar ironicbadger

View GitHub Profile
#!/bin/bash
export PGID=1050
export PUID=1050
docker-compose pull
docker-compose up -d
FROM debian:jessie
MAINTAINER IronicBadger <ironicbadger@linuxserver.io>
# Builds SnapRAID from source
RUN apt-get update && \
apt-get upgrade -y && \
apt-get install -y \
gcc \
git \
make \
#!/bin/bash
docker_image_tag="snapraid-from-source"
build_path="/tmp/snapraid-build/"
cd $build_path
docker build -t $docker_image_tag .
id=$(docker create --name snapraid-tmp $docker_image_tag)
docker cp $id:/artifact/ .
docker rm -v $id
docker rmi $docker_image_tag
#!/bin/bash
#
# Shows last 50 lines of logs for specified container and continues
# showing log output in realtime.
docker logs -tf --tail="50" "$@"
#!/bin/bash
# Replaces a container with an upgraded version from Docker Hub and recreates
# using arguments supplied via /opt/docker.list
CONTAINER_NAME="$@"
LIST="docker.list"
# check docker.list exists, exit if not
{
if [ ! -f $LIST ]; then
@ironicbadger
ironicbadger / dcreate
Created January 11, 2016 17:09
dcreate
#!/bin/bash
# Replaces a container with an upgraded version from Docker Hub and recreates
# using arguments supplied via /opt/docker.list
CONTAINER_NAME="$@"
LIST="docker.list"
# check docker.list exists, exit if not
{
if [ ! -f $LIST ]; then
#!/bin/bash
rsync=/usr/bin/rsync
ssh=/usr/bin/ssh
sshkey=/home/alex/.ssh/id_rsa.pub
omega_user=root
omega_host=omega
omega_backup_path=/volume1/omega/backups
epsilon_storage=/mnt/storage
FROM ubuntu
MAINTAINER IronicBadger <ironicbadger@linuxserver.io>
# Install MHDDFS compile pre-reqs for 14.04
RUN apt-get update && \
apt-get upgrade -y && \
apt-get install -y \
build-essential \
libattr1-dev \
libglib2.0-dev \
@ironicbadger
ironicbadger / snapraid.conf
Created December 14, 2015 14:12
snapraid.conf
# Example configuration for snapraid
# Defines the file to use as parity storage
# It must NOT be in a data disk
# Format: "parity FILE_PATH"
parity /mnt/parity1/snapraid.parity
# Defines the files to use as content list
# You can use multiple specification to store more copies
# You must have least one copy for each parity file plus one. Some more don't hurt
## Plex
docker run -d \
--name plex \
--net=host \
-e PUID=1001 -e PGID=1001 \
-v /opt/appdata/plex:/config \
-v /mnt/storage/:/data \
linuxserver/plex
## NZBGet