Cleanup make/build scripts, fix newlines in scripts
This commit is contained in:
@@ -1,12 +1,8 @@
|
||||
RANDOM = $(shell bash -c 'echo $$RANDOM')
|
||||
HOME = $(DOCKER_HOME)
|
||||
BASE = $(HOME)/build
|
||||
TMP = /build/tmp
|
||||
FROM = ubuntu:trusty
|
||||
INTERFACE = eth0
|
||||
MODE = normal
|
||||
ARGS = --rm=false --no-cache=false
|
||||
include $(wildcard $(HOME)/build/make/*.mk)
|
||||
include $(wildcard $(DOCKER_HOME)/build/make/*.mk)
|
||||
|
||||
define add
|
||||
@echo 'ADD $(1) $(2)' >> ${FILE}
|
||||
@@ -40,11 +36,11 @@ build: prepare base
|
||||
$(call script,cleanup)
|
||||
@echo 'RUN chmod +x /opt/init.d/* || :' >> ${FILE}
|
||||
@echo 'CMD ["/opt/init"]' >> ${FILE}
|
||||
@docker build -t $(NAME):$(VERSION) $(ARGS) -f $(FILE) $(BASE)
|
||||
@docker build -t $(NAME):$(VERSION) $(ARGS) -f $(FILE) $(DOCKER_HOME)/build
|
||||
@rm ${FILE}
|
||||
|
||||
prepare:
|
||||
@$(eval FILE = $(shell mktemp -p $(BASE)))
|
||||
@$(eval FILE = $(shell mktemp -p $(DOCKER_HOME)/build))
|
||||
@echo FROM $(FROM) > ${FILE}
|
||||
@echo ENV MODE $(MODE) >> ${FILE}
|
||||
$(call add,config,/build/config)
|
||||
|
||||
@@ -1 +1,13 @@
|
||||
#!/bin/bash
|
||||
#!/bin/bash
|
||||
set -e
|
||||
source /build/config
|
||||
set -x
|
||||
|
||||
## Environment
|
||||
|
||||
|
||||
## BackInTime
|
||||
apt_get_install_permanent backintime-common python-dbus
|
||||
|
||||
## Configuration
|
||||
|
||||
|
||||
@@ -1 +1,18 @@
|
||||
#!/bin/bash
|
||||
#!/bin/bash
|
||||
set -e
|
||||
source /build/config
|
||||
set -x
|
||||
|
||||
## Environment
|
||||
export_env HEADPHONES_CONFIG /host/etc/headphones/config.ini
|
||||
export_env HEADPHONES_CONFIG_DEFAULT /opt/headphones/config.ini
|
||||
export_env HEADPHONES_DATA /host/var/lib/headphones
|
||||
|
||||
## Headphones
|
||||
cd /opt
|
||||
git clone https://github.com/rembo10/headphones.git
|
||||
|
||||
## Encoders
|
||||
echo "deb http://ppa.launchpad.net/mc3man/trusty-media/ubuntu $(lsb_release -c -s) main" | sudo tee -a /etc/apt/sources.list
|
||||
apt-get update
|
||||
apt_get_install_permanent --force-yes ffmpeg libmp3lame0 libavcodec-extra-54
|
||||
|
||||
Reference in New Issue
Block a user