Skip to content

Commit d084184

Browse files
Issues/0140 install from brew using brew install --head ctl (#141)
* add git workflow using docker to install ctl with brew using --head * Update readme
1 parent 111b104 commit d084184

File tree

3 files changed

+50
-1
lines changed

3 files changed

+50
-1
lines changed

.github/workflows/docker_linuxes.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,18 @@ jobs:
7272
- name: Run unit tests (ctest) within the Docker image
7373
run: docker run ctl:latest sh -c "cd ./build && ctest"
7474

75+
ubuntu-22-04-brew:
76+
77+
runs-on: ubuntu-latest
78+
79+
steps:
80+
- uses: actions/checkout@v3
81+
- name: Build the Docker image
82+
run: docker build --no-cache --rm -f ./docker/Dockerfile_ubuntu_22.04_brew -t ctl:latest .
83+
84+
- name: Run ctlrender within the Docker image
85+
run: docker run ctl:latest sh -c "ctlrender -ctl /usr/src/aces-dev/transforms/ctl/utilities/ACESutil.Unity.ctl /usr/src/aces-dev/images/ACES/SonyF35.StillLife.exr /tmp/testout.exr"
86+
7587
ubuntu-23-10:
7688

7789
runs-on: ubuntu-latest

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ can be downloaded from https://github.com/ampas/aces_container
178178

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

181-
$ brew install ctl
181+
$ brew install --head ctl
182182

183183

184184
* Redhat, Ubuntu
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
FROM ubuntu:22.04
2+
3+
RUN apt-get update
4+
5+
# disable interactive install
6+
ENV DEBIAN_FRONTEND noninteractive
7+
8+
# install tools
9+
RUN apt-get -y install curl
10+
RUN apt-get -y install git
11+
RUN apt-get -y install build-essential
12+
13+
# install brew
14+
RUN NONINTERACTIVE=1 bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
15+
RUN (echo; echo 'eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"') >> /root/.bashrc
16+
RUN eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
17+
18+
# add brew to PATH environment variable
19+
ENV PATH="/home/linuxbrew/.linuxbrew/bin:${PATH}"
20+
21+
# install CTL using brew
22+
RUN brew install --head ctl
23+
24+
# download AMPAS ACES CTL reference code
25+
WORKDIR /usr/src/
26+
RUN git clone https://github.com/ampas/aces-dev.git
27+
28+
# download AMPAS ACES reference images
29+
WORKDIR /usr/src/aces-dev/images/ACES
30+
RUN curl -L -o SonyF35.StillLife.exr https://www.dropbox.com/sh/9xcfbespknayuft/AAA04zUZyBYeHRHLaFry2XfDa/ACES/SonyF35.StillLife.exr
31+
32+
# run ctlrender to test
33+
#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
34+
35+
# finalize docker environment
36+
WORKDIR /home
37+

0 commit comments

Comments
 (0)