Skip to content

Commit

Permalink
Reorganized docker test script into a subdirectory with instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
Joe Drago committed Apr 16, 2020
1 parent a969467 commit b296b6c
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
FROM ubuntu:19.10

ADD build.sh /root/build.sh
RUN apt update && apt install -y dos2unix
RUN dos2unix /root/build.sh
RUN bash /root/build.sh
16 changes: 16 additions & 0 deletions tests/docker/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# libavif docker image

To build and use libavif (with avifenc/avifdec) in an Ubuntu Docker container with all dependencies,
change into this directory and run:

docker-compose run libavif

This should install all necessary dependencies, including manually building and installing all
supported codecs as shared libraries, and finally building and installing
`libavif`/`avifenc`/`avifdec`. It will then drop you a shell running in the container.

If you just want to force a (re)build and skip the interactive shell, run:

docker-compose up --build libavif

*Note: This build process will take a while (15-30m or more depending on your machine).*
File renamed without changes.
4 changes: 4 additions & 0 deletions tests/docker/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
version: "3"
services:
libavif:
build: .

0 comments on commit b296b6c

Please sign in to comment.