Skip to content

Commit e4b5e70

Browse files
add docker with openexr 3.3 (#165)
1 parent 1266761 commit e4b5e70

File tree

2 files changed

+47
-0
lines changed

2 files changed

+47
-0
lines changed

.github/workflows/docker_linuxes.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,3 +211,13 @@ jobs:
211211

212212
- name: Run unit tests (ctest) within the Docker image
213213
run: docker run ctl:latest sh -c "cd ./build && ctest"
214+
215+
ubuntu-22-04-openexr33:
216+
runs-on: ubuntu-latest
217+
steps:
218+
- uses: actions/checkout@v4
219+
- name: Build the Docker image
220+
run: docker build --no-cache --rm -f ./docker/Dockerfile_ubuntu_22.04_openexr33 -t ctl:latest .
221+
222+
- name: Run unit tests (ctest) within the Docker image
223+
run: docker run ctl:latest sh -c "cd ./build && ctest"
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 developement tools
9+
RUN apt-get -y install cmake
10+
RUN apt-get -y install g++
11+
RUN apt-get -y install git
12+
13+
# install CTL dependencies
14+
RUN apt-get -y install libtiff-dev
15+
16+
# install CTL dependecies - openexr
17+
WORKDIR /usr/src/
18+
RUN git clone https://github.com/AcademySoftwareFoundation/openexr.git
19+
WORKDIR /usr/src/openexr
20+
RUN git checkout RB-3.3
21+
WORKDIR /usr/src/openexr/build
22+
RUN cmake .. -DBUILD_TESTING=OFF -DOPENEXR_BUILD_TOOLS=OFF -DOPENEXR_INSTALL_EXAMPLES=OFF
23+
RUN make
24+
RUN make install
25+
26+
# build CTL
27+
WORKDIR /usr/src/CTL
28+
COPY . .
29+
WORKDIR /usr/src/CTL/build
30+
RUN rm -R * || true
31+
RUN cmake ..
32+
RUN make
33+
RUN make install
34+
35+
# finalize docker environment
36+
WORKDIR /usr/src/CTL
37+

0 commit comments

Comments
 (0)