Hello Sir, 
I am new to the SageMath and loved it so much. I am good in Mathematics and 
pursuing graduation in Computer Science and think that I should do some 
contribution in it .
I read the documentation and working accordingly. But while building I am 
facing some package related problems. After 2-3 try, I move to the docker 
to build the sage but it is also showing some problem while building in 
docker. Please help me and guide me .

*Information: *I ran the command as shown below and it was executing but at 
some point it is showing some error and i am unable to understand what are 
errors please help me.

*Program:*
              $ docker build --build-arg MAKEFLAGS="-j16" \                
                                                           --build-arg 
SAGE_NUM_THREADS="4" \
             --build-arg ARTIFACT_BASE="sagemath/sagemath-dev:develop" \
             -f docker/Dockerfile \
             --target=make-build \
             --tag sage .
[+] Building 50.1s (11/18)                                                 
                              docker:default
 => [internal] load build definition from Dockerfile                       
                                        0.0s
 => => transferring dockerfile: 17.90kB                                     
                                       0.0s
 => [internal] load metadata for docker.io/sagemath/sagemath-dev:develop   
                                        7.2s
 => [auth] sagemath/sagemath-dev:pull token for registry-1.docker.io       
                                        0.0s
 => [internal] load .dockerignore                                           
                                       0.0s
 => => transferring context: 13.06kB                                       
                                        0.0s
 => [source-from-context  1/10] FROM 
docker.io/sagemath/sagemath-dev:develop@sha256:fbf3a4b9ec9dc48e4b4ff93fc6ce6 
 0.0s
 => => resolve 
docker.io/sagemath/sagemath-dev:develop@sha256:fbf3a4b9ec9dc48e4b4ff93fc6ce602ee2599fdc7e2b21fc374
 
 0.0s
 => [internal] load build context                                           
                                       6.5s
 => => transferring context: 1.64MB                                         
                                       5.9s
 => CACHED [source-from-context  2/10] WORKDIR /home/sage                   
                                       0.0s
 => [source-from-context  3/10] COPY --chown=sage:sage . sage-context       
                                      30.1s
 => [source-from-context  4/10] WORKDIR /home/sage/sage                     
                                       0.5s
 => [source-from-context  5/10] RUN find . ( -type f -or -type l ) > 
/home/sage/artifact-base.manifest             5.1s
 => ERROR [source-from-context  6/10] RUN git fetch --update-shallow 
"/home/sage/sage-context" HEAD     && if [ -  0.5s
------
 > [source-from-context  6/10] RUN git fetch --update-shallow 
"/home/sage/sage-context" HEAD     && if [ -e docker/.commit ]; then       
    git reset `cat docker/.commit`           || ( echo "Could not find 
commit `cat docker/.commit` in your local Git history. Please merge in the 
latest built develop branch to fix this: git fetch upstream && git merge 
`cat docker/.commit`." && exit 1 )        else           echo "You are 
building from $ARTIFACT_BASE which has no docker/.commit file. That's a bug 
unless you are building from source-clean or something similar."           
&& git reset FETCH_HEAD           && git checkout -f FETCH_HEAD;        fi 
    && git merge --ff-only FETCH_HEAD     && git log -1 --format=%H > 
docker/.commit     && rm -rf .git:
0.459 fatal: not a git repository (or any of the parent directories): .git
------
Dockerfile:159
--------------------
 158 |     RUN find . \( -type f -or -type l \) > 
$HOME/artifact-base.manifest
 159 | >>> RUN git fetch --update-shallow "$HOME/sage-context" HEAD \
 160 | >>>     && if [ -e docker/.commit ]; then \
 161 | >>>           git reset `cat docker/.commit` \
 162 | >>>           || ( echo "Could not find commit `cat docker/.commit` 
in your local Git history. Please merge in the latest built develop branch 
to fix this: git fetch upstream && git merge `cat docker/.commit`." && exit 
1 ) \
 163 | >>>        else \
 164 | >>>           echo "You are building from $ARTIFACT_BASE which has 
no docker/.commit file. That's a bug unless you are building from 
source-clean or something similar." \
 165 | >>>           && git reset FETCH_HEAD \
 166 | >>>           && git checkout -f FETCH_HEAD; \
 167 | >>>        fi \
 168 | >>>     && git merge --ff-only FETCH_HEAD \
 169 | >>>     && git log -1 --format=%H > docker/.commit \
 170 | >>>     && rm -rf .git
 171 |     # Copy over all the untracked/staged/unstaged changes from 
sage-context. This
--------------------
ERROR: failed to solve: process "/bin/sh -c git fetch --update-shallow 
\"$HOME/sage-context\" HEAD     && if [ -e docker/.commit ]; then           
git reset `cat docker/.commit`           || ( echo \"Could not find commit 
`cat docker/.commit` in your local Git history. Please merge in the latest 
built develop branch to fix this: git fetch upstream && git merge `cat 
docker/.commit`.\" && exit 1 )        else           echo \"You are 
building from $ARTIFACT_BASE which has no docker/.commit file. That's a bug 
unless you are building from source-clean or something similar.\"           
&& git reset FETCH_HEAD           && git checkout -f FETCH_HEAD;        fi 
    && git merge --ff-only FETCH_HEAD     && git log -1 --format=%H > 
docker/.commit     && rm -rf .git" did not complete successfully: exit 
code: 128

*Here is Dockerfile:*

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To view this discussion visit 
https://groups.google.com/d/msgid/sage-devel/c5be755f-b3cc-4d9b-9d26-f5270b7dc8c4n%40googlegroups.com.

Attachment: Dockerfile
Description: Binary data

Reply via email to