Last active
July 20, 2023 13:29
-
-
Save jakoch/2217dd487d345021637402a5b0a48bdc to your computer and use it in GitHub Desktop.
setup vcpkg in docker container
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# +-----------------------------+ | |
# | vcpkg ~225MB| | |
# +-----------------------------+ | |
# | |
# replaced by devcontainer.feature: ghcr.io/msclock/features/vcpkg:1 | |
# | |
# https://github.com/microsoft/vcpkg/blob/master/README.md#quick-start-unix | |
ENV VCPKG_ROOT=/usr/local/vcpkg | |
ENV PATH="${PATH}:${VCPKG_ROOT}" | |
ENV VCPKG_DOWNLOADS=/usr/local/vcpkg-downloads | |
ENV VCPKG_TRIPLET=x64-linux | |
ENV VCPKG_USE_SYSTEM_BINARIES=1 | |
RUN mkdir -p $VCPKG_DOWNLOADS && mkdir -p $VCPKG_ROOT | |
# Clone Repo | |
RUN git clone --depth=1 \ | |
-c core.eol=lf \ | |
-c core.autocrlf=false \ | |
-c fsck.zeroPaddedFilemode=ignore \ | |
-c fetch.fsck.zeroPaddedFilemode=ignore \ | |
-c receive.fsck.zeroPaddedFilemode=ignore \ | |
https://github.com/microsoft/vcpkg.git $VCPKG_ROOT | |
# Run VCPKG installer | |
RUN $VCPKG_ROOT/bootstrap-vcpkg.sh -disableMetrics | |
# VCPKG install default packages globally | |
RUN $VCPKG_ROOT/vcpkg integrate install && \ | |
$VCPKG_ROOT/vcpkg install gtest catch2 spdlog fmt nlohmann-json && \ | |
rm -rf $VCPKG_ROOT/buildtrees $VCPKG_ROOT/downloads/* |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment