Skip to content

Instantly share code, notes, and snippets.

@valgur
Last active November 6, 2023 16:26
Show Gist options
  • Save valgur/476f184b3e9a2ee09ad731993b1e0166 to your computer and use it in GitHub Desktop.
Save valgur/476f184b3e9a2ee09ad731993b1e0166 to your computer and use it in GitHub Desktop.
Test a Conan recipe in isolation
FROM conanio/gcc11-ubuntu16.04:latest
USER root
RUN pip install -U conan
COPY <<EOF /root/.conan2/profiles/default
[settings]
arch=x86_64
build_type=Release
compiler=gcc
compiler.cppstd=17
compiler.libcxx=libstdc++11
compiler.version=11
os=Linux
[options]
*/*:shared=True
EOF
RUN conan install --build missing \
--requires "openssl/[>=1.1 <4]"
ADD . .
ARG version=0.5.14
RUN conan create . -c tools.system.package_manager:mode=install --version $version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment