Skip to content

Commit

Permalink
Provide repro Dockerfile + script
Browse files Browse the repository at this point in the history
  • Loading branch information
BobIsOnFire committed Oct 16, 2023
0 parents commit b02b832
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 0 deletions.
19 changes: 19 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
FROM container-registry.oracle.com/os/oraclelinux:6

RUN yum -y install oracle-softwarecollection-release-el6 && \
yum -y install \
rh-python36 \
devtoolset-8-gcc-c++ && \
yum clean all && rm -rf /var/cache/yum

ENV PATH=/opt/rh/rh-python36/root/usr/bin:/opt/rh/devtoolset-8/root/usr/bin:$PATH

RUN python3 -m pip install pip --upgrade && \
python3 -m pip install conan cmake ninja

RUN conan profile detect

COPY repro.sh /root/repro.sh

CMD ["/bin/bash", "/root/repro.sh"]

4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
```
$ docker build . -t conan-14945-repro
$ docker run --rm conan-14945-repro
```
25 changes: 25 additions & 0 deletions repro.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#!/bin/bash


echo "System information:"

cat /etc/redhat-release
g++ --version
conan --version

set -ex

conan list '*:*#*'

# Conan finds compatible b2 package in CCI, but that package is OS-incompatible
conan install --requires=boost/1.82.0 --build=missing || echo "!!! (rc=$?) Build failed as expected"
conan list '*:*#*'

# Force source build, fill local cache with our version of b2
conan install --requires=boost/1.82.0 --build=missing --build='b2/*'
conan list '*:*#*'

# Try different build_type -- get the same error as in first run (as if our version of b2 doesn't exist)
conan install --requires=boost/1.82.0 -s build_type=Debug --build=missing || echo "!!! (rc=$?) Build should have succeeded, but it failed"
conan list '*:*#*'

0 comments on commit b02b832

Please sign in to comment.