When I run a build in a Docker, I expect the timestamps of the created files to be created consistently and compare cleanly to system time both within and outside the Docker.
When running a script that contains the following commands:
I get the following output:
... -- Configuring done -- Generating done -- Build files have been written to: /Users/ben/Projects/resu/build make: Warning: File 'Makefile' has modification time 0.7 s in the future make: Warning: File 'CMakeFiles/Makefile2' has modification time 0.63 s in the future make: warning: Clock skew detected. Your build may be incomplete. make: warning: Clock skew detected. Your build may be incomplete.
OS X: version 10.11.4 (build: 15E65)
Docker.app: version v1.11.1-beta11
Running diagnostic tests:
[OK] docker-cli13 16:24:01 2016 from 10.12.0.47
[OK] Moby bootedsch-DCMG-Team-Norms.md
Docker logs are being collected into /tmp/20160515-071237.tar.gz
Most specific failure is: No error was detected
Your unique id is: B3C9D397-2A20-4A58-A6FC-9C8E9DB77365
Please quote this in all correspondence.
Steps to reproduce the behavior
Using the following Dockerfile
FROM debian:8.1 RUN apt-get update RUN apt-get install -y --no-install-recommends \ build-essential \ cmake \ make RUN rm -rf /var/lib/apt/lists/* && \ apt-get clean
and the following CMakeLists.txt
cmake_minimum_required (VERSION 2.6) project (foo) add_executable(foo src/main.c)
docker run --volumes "$(pwd):$(pwd):rw" --workdir "$(pwd)" docker_name script_name
on a script containing the following lines:
cmake . make