diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..58e95b0 --- /dev/null +++ b/.drone.yml @@ -0,0 +1,17 @@ +kind: pipeline +type: docker +name: default + +steps: + - name: build cpp-ubuntu + image: docker + commands: + - docker build -t erki/cpp-ubuntu:latest - < cpp-ubuntu.Dockerfile + volumes: + - name: docker_socket + path: /var/run/docker.sock + +volumes: + - name: docker_socket + host: + path: /var/run/docker.sock diff --git a/cpp-ubuntu.Dockerfile b/cpp-ubuntu.Dockerfile new file mode 100644 index 0000000..8073bc0 --- /dev/null +++ b/cpp-ubuntu.Dockerfile @@ -0,0 +1,9 @@ +FROM ubuntu:20.04 + +ENV DEBIAN_FRONTEND noninteractive + +RUN apt-get update -y +RUN apt-get install -y --no-install-recommends git build-essential cmake ninja-build python3 python3-pip +RUN pip3 install --upgrade conan +RUN conan profile new default --detect +RUN conan profile update settings.compiler.libcxx=libstdc++11 default