Running with gitlab-runner 14.8.2 (c6e7e194)
  on TestEnvEKSCluster 4cd53b1e
section_start:1648105557:prepare_executor
Preparing the "kubernetes" executor
Using Kubernetes namespace: gitlab
Using Kubernetes executor with image docker ...
Using attach strategy to execute scripts...
section_end:1648105557:prepare_executor
section_start:1648105557:prepare_script
Preparing environment
Waiting for pod gitlab/runner-4cd53b1e-project-961-concurrent-0nlmz6 to be running, status is Pending
Waiting for pod gitlab/runner-4cd53b1e-project-961-concurrent-0nlmz6 to be running, status is Pending
	ContainersNotReady: "containers with unready status: [build helper]"
	ContainersNotReady: "containers with unready status: [build helper]"
Running on runner-4cd53b1e-project-961-concurrent-0nlmz6 via runner-gitlab-runner-55448db48b-c7cbq...

section_end:1648105563:prepare_script
section_start:1648105563:get_sources
Getting source from Git repository
Fetching changes...
Initialized empty Git repository in /builds/shenggui.li/mobdna-k8s/.git/
Created fresh repository.
Checking out 99fdc3e9 as master...

Skipping Git submodules setup

section_end:1648105563:get_sources
section_start:1648105563:restore_cache
Restoring cache
Checking cache for 99fdc3e95556a5c9a77ca0743856a59a195903e8...
Downloading cache.zip from https://tkio-test-gitlabrunner-cache.s3.dualstack.cn-north-1.amazonaws.com.cn/runner/project/961/99fdc3e95556a5c9a77ca0743856a59a195903e8 
Successfully extracted cache

section_end:1648105565:restore_cache
section_start:1648105565:step_script
Executing "step_script" stage of the job script
$ pwd; ls -lh ; df -h ;cd target;ls; md5sum mob-dna-1.0.jar
/builds/shenggui.li/mobdna-k8s
total 28K    
-rw-rw-rw-    1 root     root        1.2K Mar 24 07:06 Dockerfile
-rw-rw-rw-    1 root     root        2.2K Mar 24 07:06 README.md
drwxrwxrwx    3 root     root          32 Mar 24 07:06 backend
drwxrwxrwx    3 root     root          32 Mar 24 07:06 common
-rw-rw-rw-    1 root     root        1.3K Mar 24 07:06 log4cxx.properties
-rw-rw-rw-    1 root     root        8.2K Mar 24 07:06 pom.xml
-rw-rw-rw-    1 root     root         846 Mar 24 07:06 pro.md
drwxrwxrwx    3 root     root          32 Mar 24 07:06 security
drwxrwxrwx    3 root     root          32 Mar 24 07:06 swagger
drwxr-xr-x    2 root     root          47 Mar 24 07:05 target
drwxrwxrwx    3 root     root          32 Mar 24 07:06 web
Filesystem                Size      Used Available Use% Mounted on
overlay                  10.0G      7.3G      2.7G  73% /
tmpfs                    64.0M         0     64.0M   0% /dev
tmpfs                     3.8G         0      3.8G   0% /sys/fs/cgroup
/dev/nvme0n1p1           10.0G      7.3G      2.7G  73% /logs-961-4811
/dev/nvme0n1p1           10.0G      7.3G      2.7G  73% /builds
/dev/nvme0n1p1           10.0G      7.3G      2.7G  73% /scripts-961-4811
/dev/nvme0n1p1           10.0G      7.3G      2.7G  73% /opt/cache
/dev/nvme0n1p1           10.0G      7.3G      2.7G  73% /dev/termination-log
/dev/nvme0n1p1           10.0G      7.3G      2.7G  73% /etc/resolv.conf
/dev/nvme0n1p1           10.0G      7.3G      2.7G  73% /etc/hostname
/dev/nvme0n1p1           10.0G      7.3G      2.7G  73% /etc/hosts
shm                      64.0M         0     64.0M   0% /dev/shm
tmpfs                     3.8G      1.7M      3.8G   0% /run/docker.sock
tmpfs                     3.8G     12.0K      3.8G   0% /run/secrets/kubernetes.io/serviceaccount
Dockerfile
mob-dna-1.0.jar
f431483997bc0c05f78d6203f28f6229  mob-dna-1.0.jar
$ docker  run -i --network host --rm amazon/aws-cli ecr get-login-password --region cn-north-1 | docker login --username AWS --password-stdin ${REG_BASE}
Unable to find image 'amazon/aws-cli:latest' locally
latest: Pulling from amazon/aws-cli
20e1cc2336fb: Pulling fs layer
83f468760f40: Pulling fs layer
373ecf7a0fc9: Pulling fs layer
0001c3f3aaf8: Pulling fs layer
aa4ab14e8ad6: Pulling fs layer
0001c3f3aaf8: Verifying Checksum
0001c3f3aaf8: Download complete
83f468760f40: Verifying Checksum
83f468760f40: Download complete
aa4ab14e8ad6: Verifying Checksum
aa4ab14e8ad6: Download complete
373ecf7a0fc9: Verifying Checksum
373ecf7a0fc9: Download complete
20e1cc2336fb: Download complete
20e1cc2336fb: Pull complete
83f468760f40: Pull complete
373ecf7a0fc9: Pull complete
0001c3f3aaf8: Pull complete
aa4ab14e8ad6: Pull complete
Digest: sha256:5befda0147eaa80174dc020a8f364f1c41fa2668b18b0f7bb3c2a16dc67db31b
Status: Downloaded newer image for amazon/aws-cli:latest
WARNING! Your password will be stored unencrypted in /root/.docker/config.json.
Configure a credential helper to remove this warning. See
https://docs.docker.com/engine/reference/commandline/login/#credentials-store

Login Succeeded
$ docker build -t ${REG_URL}:${CI_COMMIT_SHA} .
Sending build context to Docker daemon  86.37MB
Step 1/6 : FROM 502302443508.dkr.ecr.cn-north-1.amazonaws.com.cn/mobdna:latest
 ---> 4ed71a7b2153
Step 2/6 : RUN rm -rf /data/application/mobdna/mob-dna-1.0.jar
 ---> Using cache
 ---> 1cfe7c10a713
Step 3/6 : COPY target/mob-dna-1.0.jar /data/application/mobdna
COPY failed: file not found in build context or excluded by .dockerignore: stat target/mob-dna-1.0.jar: file does not exist

section_end:1648105587:step_script
ERROR: Job failed: command terminated with exit code 1