Skip to content

Instantly share code, notes, and snippets.

@jumpinjackie
Last active June 8, 2019 00:35
Show Gist options
  • Save jumpinjackie/ab2400df4bca5edd0c08454e3fcd1abd to your computer and use it in GitHub Desktop.
Save jumpinjackie/ab2400df4bca5edd0c08454e3fcd1abd to your computer and use it in GitHub Desktop.
vcpkg port build test (Ubuntu 16.04)
FROM ubuntu:16.04 as vcpkg-build
RUN apt-get clean \
&& apt-get update \
&& apt-get install -y software-properties-common \
&& add-apt-repository ppa:ubuntu-toolchain-r/test -y \
&& apt-get update
RUN apt-get install -y build-essential g++-7 git curl unzip tar p7zip-full libxxf86vm-dev \
&& update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-7 70 \
&& update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-7 70 \
&& update-alternatives --set gcc "/usr/bin/gcc-7" \
&& update-alternatives --set g++ "/usr/bin/g++-7" \
&& git clone https://github.com/jumpinjackie/vcpkg /src/vcpkg
WORKDIR /src/vcpkg
RUN git checkout $BRANCH
RUN ./bootstrap-vcpkg.sh
RUN /src/vcpkg/vcpkg install $VCPKG_PORT:x64-linux
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment