Skip to content

Commit

Permalink
add docker to duplicate reported issue ampas#146
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeldsmith committed Apr 2, 2024
1 parent a63c7ec commit 5cbd0c1
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/docker_linuxes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,19 @@ jobs:
- name: Run ctlrender within the Docker image
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"

ubuntu-22-04-LTO:

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_LTO -t ctl:latest .

- name: Run ctlrender within the Docker image
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"


ubuntu-23-10:

runs-on: ubuntu-latest
Expand Down
32 changes: 32 additions & 0 deletions docker/Dockerfile_ubuntu_22.04_LTO
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
FROM ubuntu:22.04

RUN apt-get update

# disable interactive install
ENV DEBIAN_FRONTEND noninteractive

# install developement tools
RUN apt-get -y install cmake
RUN apt-get -y install g++

# install CTL dependencies
RUN apt-get -y install libopenexr-dev
RUN apt-get -y install libtiff-dev

# build CTL
WORKDIR /usr/src/CTL
COPY . .
WORKDIR /usr/src/CTL/build
RUN rm -R *
RUN cmake .. -DCMAKE_INTERPROCEDURAL_OPTIMIZATION=TRUE -DCMAKE_VERBOSE_MAKEFILE=on -DCMAKE_CXX_FLAGS="-Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing"
#RUN cmake .. -Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing
#RUN cmake ..
#RUN make CXXFLAGS="-flto=4 -Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing"
#RUN make CXXFLAGS="-flto=4 -fno-fat-lto-objects"
#RUN make CXXFLAGS="-Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing"
RUN make
RUN make install

# finalize docker environment
WORKDIR /usr/src/CTL

0 comments on commit 5cbd0c1

Please sign in to comment.