Running with gitlab-runner 14.8.2 (c6e7e194)
on TestEnvEKSCluster e5cec092
section_start:1648114371:prepare_executor
Preparing the "kubernetes" executor
Using Kubernetes namespace: gitlab
Using Kubernetes executor with image docker ...
Using attach strategy to execute scripts...
section_end:1648114371:prepare_executor
section_start:1648114371:prepare_script
Preparing environment
Waiting for pod gitlab/runner-e5cec092-project-961-concurrent-0h57q5 to be running, status is Pending
Waiting for pod gitlab/runner-e5cec092-project-961-concurrent-0h57q5 to be running, status is Pending
ContainersNotReady: "containers with unready status: [build helper]"
ContainersNotReady: "containers with unready status: [build helper]"
Waiting for pod gitlab/runner-e5cec092-project-961-concurrent-0h57q5 to be running, status is Pending
ContainersNotReady: "containers with unready status: [build helper]"
ContainersNotReady: "containers with unready status: [build helper]"
Waiting for pod gitlab/runner-e5cec092-project-961-concurrent-0h57q5 to be running, status is Pending
ContainersNotReady: "containers with unready status: [build helper]"
ContainersNotReady: "containers with unready status: [build helper]"
Waiting for pod gitlab/runner-e5cec092-project-961-concurrent-0h57q5 to be running, status is Pending
ContainersNotReady: "containers with unready status: [build helper]"
ContainersNotReady: "containers with unready status: [build helper]"
Waiting for pod gitlab/runner-e5cec092-project-961-concurrent-0h57q5 to be running, status is Pending
ContainersNotReady: "containers with unready status: [build helper]"
ContainersNotReady: "containers with unready status: [build helper]"
Waiting for pod gitlab/runner-e5cec092-project-961-concurrent-0h57q5 to be running, status is Pending
ContainersNotReady: "containers with unready status: [build helper]"
ContainersNotReady: "containers with unready status: [build helper]"
Running on runner-e5cec092-project-961-concurrent-0h57q5 via runner-gitlab-runner-595cd7847f-wjvtv...
section_end:1648114392:prepare_script
section_start:1648114392: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 1d87d53f as master...
Skipping Git submodules setup
section_end:1648114393:get_sources
section_start:1648114393:restore_cache
Restoring cache
Checking cache for 1d87d53f88d91003198442cf7f8504633b8be5f9...
Downloading cache.zip from https://tkio-test-gitlabrunner-cache.s3.dualstack.cn-north-1.amazonaws.com.cn/runner/project/961/1d87d53f88d91003198442cf7f8504633b8be5f9
Successfully extracted cache
section_end:1648114395:restore_cache
section_start:1648114395: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 425 Mar 24 09:33 Dockerfile
-rw-rw-rw- 1 root root 2.2K Mar 24 09:33 README.md
drwxrwxrwx 3 root root 32 Mar 24 09:33 backend
drwxrwxrwx 3 root root 32 Mar 24 09:33 common
-rw-rw-rw- 1 root root 1.3K Mar 24 09:33 log4cxx.properties
-rw-rw-rw- 1 root root 8.2K Mar 24 09:33 pom.xml
-rw-rw-rw- 1 root root 846 Mar 24 09:33 pro.md
drwxrwxrwx 3 root root 32 Mar 24 09:33 security
drwxrwxrwx 3 root root 32 Mar 24 09:33 swagger
drwxr-xr-x 2 root root 47 Mar 24 09:32 target
drwxrwxrwx 3 root root 32 Mar 24 09:33 web
Filesystem Size Used Available Use% Mounted on
overlay 10.0G 4.0G 5.9G 41% /
tmpfs 64.0M 0 64.0M 0% /dev
tmpfs 3.8G 0 3.8G 0% /sys/fs/cgroup
/dev/nvme0n1p1 10.0G 4.0G 5.9G 41% /scripts-961-4938
/dev/nvme0n1p1 10.0G 4.0G 5.9G 41% /logs-961-4938
/dev/nvme0n1p1 10.0G 4.0G 5.9G 41% /builds
/dev/nvme0n1p1 10.0G 4.0G 5.9G 41% /opt/cache
/dev/nvme0n1p1 10.0G 4.0G 5.9G 41% /dev/termination-log
/dev/nvme0n1p1 10.0G 4.0G 5.9G 41% /etc/resolv.conf
/dev/nvme0n1p1 10.0G 4.0G 5.9G 41% /etc/hostname
/dev/nvme0n1p1 10.0G 4.0G 5.9G 41% /etc/hosts
shm 64.0M 0 64.0M 0% /dev/shm
tmpfs 3.8G 928.0K 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
2309e82f56fc1fe0fa4087cc34c163f9 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: Download complete
aa4ab14e8ad6: Download complete
83f468760f40: Verifying Checksum
83f468760f40: Download complete
373ecf7a0fc9: Verifying Checksum
373ecf7a0fc9: Download complete
20e1cc2336fb: Verifying Checksum
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/7 : FROM 502302443508.dkr.ecr.cn-north-1.amazonaws.com.cn/mobdna:basic
basic: Pulling from mobdna
bda57ff2d0d8: Pulling fs layer
acc726f6a4b8: Pulling fs layer
12b3bb453323: Pulling fs layer
b69535b1360e: Pulling fs layer
d12a71de5867: Pulling fs layer
acc726f6a4b8: Verifying Checksum
acc726f6a4b8: Download complete
d12a71de5867: Verifying Checksum
d12a71de5867: Download complete
bda57ff2d0d8: Verifying Checksum
bda57ff2d0d8: Download complete
12b3bb453323: Verifying Checksum
12b3bb453323: Download complete
b69535b1360e: Verifying Checksum
b69535b1360e: Download complete
bda57ff2d0d8: Pull complete
acc726f6a4b8: Pull complete
12b3bb453323: Pull complete
b69535b1360e: Pull complete
d12a71de5867: Pull complete
Digest: sha256:438d0db93523eabf750e9168cfc8b00355134a5a149b39ed4cdd25ffe759837b
Status: Image is up to date for 502302443508.dkr.ecr.cn-north-1.amazonaws.com.cn/mobdna:basic
---> 1b682fced40e
Step 2/7 : COPY mob-dna-1.0.jar /data/application/mobdna
---> 574b8827ff88
Step 3/7 : RUN md5sum /data/application/mobdna/mob-dna-1.0.jar
---> Running in 98e622046478
2309e82f56fc1fe0fa4087cc34c163f9 /data/application/mobdna/mob-dna-1.0.jar
Removing intermediate container 98e622046478
---> dacc588c9cf5
Step 4/7 : WORKDIR /data/application/mobdna
---> Running in 205f6bb29dc0
Removing intermediate container 205f6bb29dc0
---> bc2db2d0ff50
Step 5/7 : ENV LANG zh_CN.UTF8
---> Running in f7e8f1646a6e
Removing intermediate container f7e8f1646a6e
---> be91f235bf11
Step 6/7 : ENV LC_ALL zh_CN.UTF8
---> Running in 673072b773c2
Removing intermediate container 673072b773c2
---> 0926523acd55
Step 7/7 : CMD java -jar -Dspring.profiles.active=test /data/application/mobdna/mob-dna-1.0.jar
---> Running in 17a1a14d926a
Removing intermediate container 17a1a14d926a
---> 38e245326062
Successfully built 38e245326062
Successfully tagged 502302443508.dkr.ecr.cn-north-1.amazonaws.com.cn/mobdna:1d87d53f88d91003198442cf7f8504633b8be5f9
$ docker push ${REG_URL}:${CI_COMMIT_SHA}
The push refers to repository [502302443508.dkr.ecr.cn-north-1.amazonaws.com.cn/mobdna]
563ad886b6d0: Preparing
52029e3389bc: Preparing
bf18e1bda3bd: Preparing
a2848bdd36c0: Preparing
87b2ba915f1c: Preparing
62d5b5a2505d: Preparing
62d5b5a2505d: Waiting
52029e3389bc: Layer already exists
a2848bdd36c0: Layer already exists
bf18e1bda3bd: Layer already exists
87b2ba915f1c: Layer already exists
62d5b5a2505d: Layer already exists
563ad886b6d0: Pushed
1d87d53f88d91003198442cf7f8504633b8be5f9: digest: sha256:ede01c13fb8497f5ad89071f86dd5caa86e4b61d489527d977341fedd335891b size: 1586
section_end:1648114449:step_script
section_start:1648114449:archive_cache
Saving cache for successful job
Creating cache 1d87d53f88d91003198442cf7f8504633b8be5f9...
target: found 3 matching files and directories
Archive is up to date!
Created cache
section_end:1648114449:archive_cache
Job succeeded