File tree Expand file tree Collapse file tree 5 files changed +38
-6
lines changed Expand file tree Collapse file tree 5 files changed +38
-6
lines changed Original file line number Diff line number Diff line change 1- FROM ubuntu:18.04
1+ FROM alpine:3
22
3- RUN apt update
4- RUN apt install -y gcc-8 cmake
5- RUN apt install -y vim git
6- RUN apt install -y g++-8
3+ RUN apk update
4+ RUN apk add make cmake>=3.11 g++>=9
5+ RUN apk add vim git
6+ RUN apk add clang
Original file line number Diff line number Diff line change 1+ #! /bin/sh
2+
3+ set -x
4+ projectdir=$( cd $( dirname $0 ) /.. && pwd)
5+
6+ # make a build folder
7+ cd $( mktemp -d -t cpp11training_build)
8+
9+ # make the project
10+ cmake $projectdir /src && make
11+
12+ # run the tests
13+ ./cpp11training
14+
Original file line number Diff line number Diff line change 1- docker build --tag cpp11training %~dp0
1+ docker build --tag cpp11training %~dp0
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ cd $( cd $( dirname $0 ) /..; pwd)
4+ docker build --tag cpp11training docker
5+ docker/test_buildimage.sh
Original file line number Diff line number Diff line change 1+ #! /bin/sh
2+
3+ # script to test the build container
4+ #
5+ # it runs the typical workflow in the build container
6+ # (cf. _typical_workflow.sh)
7+
8+ project_dir=$( cd $( dirname $0 ) /..; pwd)
9+
10+ docker build -t xtofl/cpp11training $project_dir /docker
11+
12+ docker run --volume $( pwd) :$( pwd) --workdir $( pwd) --rm ${IMAGE:- " xtofl/cpp11training" } /bin/sh docker/_typical_workflow.sh
13+
You can’t perform that action at this time.
0 commit comments