Skip to content

Commit 681765f

Browse files
committed
Updates for Docker
- Fix compilation for fppinit, it needs jsoncpp - Utilize all CPUs for compiling - Add note about seccomp to docker-compose.yml. Newer seccomp was preventing FPP in newer docker image from compiling on older docker versions and possible other issues. The solution is to upgrade docker or ignore/bypass seccomp error.
1 parent 51c7dc4 commit 681765f

File tree

3 files changed

+16
-4
lines changed

3 files changed

+16
-4
lines changed

Docker/docker-compose.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,15 @@ services:
3939
image: falconchristmas/fpp:latest
4040
restart: always
4141

42+
# If you have an issue starting the container on older versions of docker, you may need to bypass or update
43+
# seccomp. Either set seccomp to unconfined or download/create a seccomp.json file with the defaultAction
44+
# set to SCMP_ACT_TRACE. Uncomment the security_opt line and one of the seccomp lines below. This issue
45+
# may be indicated by a lot of "make: /bin/sh: Operation not permitted" lines in the docker logs.
46+
#security_opt:
47+
# - seccomp:unconfined
48+
# - seccomp:your_seccomp_file.json
49+
50+
4251
# FPP will report this hostname via MultiSync
4352
hostname: fpp-docker
4453

Docker/runDocker.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
#!/bin/bash
2-
if [ ! -f /opt/fpp/src/fpp ]; then
2+
if [ ! -f /opt/fpp/src/fppinit ]; then
33
cd /opt/fpp/src
4-
make -j 4
4+
CPUS=$(/opt/fpp/scripts/functions ComputeMakeParallelism)
5+
make -j ${CPUS}
56
fi
7+
68
/opt/fpp/src/fppinit start
79
/opt/fpp/scripts/fppd_start
810

src/makefiles/fppinit.mk

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,12 @@ OBJECTS_fppinit += \
44

55
TARGETS += fppinit
66
OBJECTS_ALL+=$(OBJECTS_fppinit)
7+
LIBS_fppinit = -ljsoncpp
78

89
ifeq '$(BUILD_FPPCAPEDETECT)' '1'
910
CXXFLAGS_boot/FPPINIT.o+=-DCAPEDETECT=1
10-
LIBS_fppinit = \
11-
-L. -ljsoncpp -lcrypto -Wl,-rpath=$(SRCDIR):.
11+
LIBS_fppinit += \
12+
-L. -lcrypto -Wl,-rpath=$(SRCDIR):.
1213
FPPINIT_DEPS=libfpp_capeutils.so
1314
endif
1415

0 commit comments

Comments
 (0)