Skip to content

Commit

Permalink
add docker to install ctl with brew using --head
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeldsmith committed Dec 14, 2023
1 parent 111b104 commit 48809d3
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 1 deletion.
12 changes: 12 additions & 0 deletions .github/workflows/docker_linuxes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,18 @@ jobs:
- name: Run unit tests (ctest) within the Docker image
run: docker run ctl:latest sh -c "cd ./build && ctest"

ubuntu-22-04-brew:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Build the Docker image
run: docker build --no-cache --rm -f ./docker/Dockerfile_ubuntu_22.04_brew -t ctl:latest .

- name: Run ctlrender within the Docker image
run: docker run ctl:latest sh -c "RUN ctlrender -ctl /usr/src/aces-dev/transforms/ctl/utilities/ACESutil.Unity.ctl /usr/src/aces-dev/images/ACES/SonyF35.StillLife.exr /tmp/testout.exr"

ubuntu-23-10:

runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ can be downloaded from https://github.com/ampas/aces_container

Homebrew will install all dependancies (cmake, ilmbase, opener, aces_container, libtiff) automatically by default. No need to install each manually.

$ brew install ctl
$ brew install --head ctl


* Redhat, Ubuntu
Expand Down
37 changes: 37 additions & 0 deletions docker/Dockerfile_ubuntu_22.04_brew
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
FROM ubuntu:22.04

RUN apt-get update

# disable interactive install
ENV DEBIAN_FRONTEND noninteractive

# install tools
RUN apt-get -y install curl
RUN apt-get -y install git
RUN apt-get -y install build-essential

# install brew
RUN NONINTERACTIVE=1 bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
RUN (echo; echo 'eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"') >> /root/.bashrc
RUN eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"

# add brew to PATH environment variable
ENV PATH="/home/linuxbrew/.linuxbrew/bin:${PATH}"

# install CTL using brew
RUN brew install --head ctl

# download AMPAS ACES CTL reference code
WORKDIR /usr/src/
RUN git clone https://github.com/ampas/aces-dev.git

# download AMPAS ACES reference images
WORKDIR /usr/src/aces-dev/images/ACES
RUN curl -L -o SonyF35.StillLife.exr https://www.dropbox.com/sh/9xcfbespknayuft/AAA04zUZyBYeHRHLaFry2XfDa/ACES/SonyF35.StillLife.exr

# run ctlrender to test
#RUN ctlrender -ctl /usr/src/aces-dev/transforms/ctl/utilities/ACESutil.Unity.ctl /usr/src/aces-dev/images/ACES/SonyF35.StillLife.exr /tmp/testout.exr

# finalize docker environment
WORKDIR /home

0 comments on commit 48809d3

Please sign in to comment.