Add ffmigrate tool to run.sh
This commit is contained in:
parent
dfc81ac38f
commit
c0d7a7e80a
2 changed files with 14 additions and 3 deletions
|
|
@ -7,17 +7,19 @@ FROM $GOLANG_IMAGE as builder
|
||||||
COPY . /dist/core
|
COPY . /dist/core
|
||||||
|
|
||||||
RUN apk add \
|
RUN apk add \
|
||||||
git \
|
git \
|
||||||
make && \
|
make && \
|
||||||
cd /dist/core && \
|
cd /dist/core && \
|
||||||
go version && \
|
go version && \
|
||||||
make release_linux && \
|
make release_linux && \
|
||||||
make import_linux
|
make import_linux && \
|
||||||
|
make ffmigrate_linux
|
||||||
|
|
||||||
FROM $BUILD_IMAGE
|
FROM $BUILD_IMAGE
|
||||||
|
|
||||||
COPY --from=builder /dist/core/core /core/bin/core
|
COPY --from=builder /dist/core/core /core/bin/core
|
||||||
COPY --from=builder /dist/core/import /core/bin/import
|
COPY --from=builder /dist/core/import /core/bin/import
|
||||||
|
COPY --from=builder /dist/core/ffmigrate /core/bin/ffmigrate
|
||||||
COPY --from=builder /dist/core/mime.types /core/mime.types
|
COPY --from=builder /dist/core/mime.types /core/mime.types
|
||||||
COPY --from=builder /dist/core/run.sh /core/bin/run.sh
|
COPY --from=builder /dist/core/run.sh /core/bin/run.sh
|
||||||
|
|
||||||
|
|
|
||||||
9
run.sh
9
run.sh
|
|
@ -8,6 +8,15 @@ if [ $? -ne 0 ]; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Run the FFmpeg migration program. In case a FFmpeg 5 binary is present, it will create a
|
||||||
|
# backup of the current DB and modify the FFmpeg parameter such that they are compatible
|
||||||
|
# with FFmpeg 5.
|
||||||
|
|
||||||
|
./bin/ffmigrate
|
||||||
|
if [ $? -ne 0 ]; then
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
# Now run the core with the possibly converted configuration.
|
# Now run the core with the possibly converted configuration.
|
||||||
|
|
||||||
./bin/core
|
./bin/core
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue