Skip to content

Commit

Permalink
additions and reorganization
Browse files Browse the repository at this point in the history
  • Loading branch information
shitwolfymakes committed Mar 23, 2022
1 parent aefdc6a commit 7472c0c
Show file tree
Hide file tree
Showing 9 changed files with 25 additions and 217 deletions.
73 changes: 0 additions & 73 deletions scripts/arm_wrapper.sh

This file was deleted.

File renamed without changes.
144 changes: 0 additions & 144 deletions scripts/docker_arm_wrapper.sh

This file was deleted.

File renamed without changes.
File renamed without changes.
17 changes: 17 additions & 0 deletions scripts/installers/docker-setup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/usr/bin/env bash
#
#
set -euo pipefail

SRCDIR="/opt/arm"
DATADIR="/srv/docker/arm"

git clone -b docker --depth=1 https://github.com/1337-server/automatic-ripping-machine.git "$SRCDIR"
mkdir -p "$DATADIR"

cd "$SRCDIR"
docker build -t arm ${APT_PROXY:+--build-target ${APT_PROXY}} .

install setup/docker-arm.rules /etc/udev/rules.d/docker-arm.rules
udevadm control --reload
echo done. insert a disc...
File renamed without changes.
File renamed without changes.
8 changes: 8 additions & 0 deletions setup/docker-arm.rules
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# docker-arm.rules
# user udev rule to launch ARM automagically whenever new media is inserted
#
# this rule will trigger twice
# 1. for the media change event (script exits early in this case)
# 2. after udev rules have loaded media details
ACTION=="change", SUBSYSTEM=="block", ENV{DISK_MEDIA_CHANGE}=="1", ENV{ID_TYPE}=="cd", RUN+="/opt/arm/scripts/docker_arm_wrapper.sh %k"

0 comments on commit 7472c0c

Please sign in to comment.