-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
aefdc6a
commit 7472c0c
Showing
9 changed files
with
25 additions
and
217 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
File renamed without changes.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
|