@cryptotaxi247 / kubo / commits / d060d87dd

ci: Fix lack of commit hash during the build

git repo requires to have objects directory which I have missed. License: MIT Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>

Jakub Sztandera committed Feb 17, 2017 at 13:24 UTC d060d87dd9838d40fa5e30293ae6e354cc4f8aec
1 file changed +4 -3
ci/Dockerfile.buildenv
+4 -3
@@ -37,9 +37,10 @@ USER user
37 RUN make -f mk/gx.mk gx-deps
38 USER root
39
40 -COPY . $SRC_PATH/
41 -RUN chown -R user $GOPATH
40 +COPY . $SRC_PATH
41 +RUN chown -R user:user $GOPATH
42 USER user
43 -RUN make cmd/ipfs/ipfs #populate go cache
43 +# mkdir .git/objects is required for git to detect repo
44 +RUN mkdir .git/objects && make cmd/ipfs/ipfs #populate go cache
45
46 CMD ["/bin/bash", "-c", "trap : TERM INT; sleep infinity & wait"]