Running with gitlab-runner 14.8.2 (c6e7e194)
on TestEnvEKSCluster f6cb768f
section_start:1648110361:prepare_executor
Preparing the "kubernetes" executor
Using Kubernetes namespace: gitlab
Using Kubernetes executor with image docker ...
Using attach strategy to execute scripts...
section_end:1648110361:prepare_executor
section_start:1648110361:prepare_script
Preparing environment
Waiting for pod gitlab/runner-f6cb768f-project-961-concurrent-0tbdqg to be running, status is Pending
Waiting for pod gitlab/runner-f6cb768f-project-961-concurrent-0tbdqg to be running, status is Pending
ContainersNotReady: "containers with unready status: [build helper]"
ContainersNotReady: "containers with unready status: [build helper]"
Running on runner-f6cb768f-project-961-concurrent-0tbdqg via runner-gitlab-runner-595cd7847f-mbbvx...
section_end:1648110368:prepare_script
section_start:1648110368: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 bd8ac716 as master...
Skipping Git submodules setup
section_end:1648110369:get_sources
section_start:1648110369:restore_cache
Restoring cache
Checking cache for bd8ac71637b7ec7b630f1543920dc8f105949b3b...
Downloading cache.zip from https://tkio-test-gitlabrunner-cache.s3.dualstack.cn-north-1.amazonaws.com.cn/runner/project/961/bd8ac71637b7ec7b630f1543920dc8f105949b3b
Successfully extracted cache
section_end:1648110371:restore_cache
section_start:1648110371: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 08:26 Dockerfile
-rw-rw-rw- 1 root root 2.2K Mar 24 08:26 README.md
drwxrwxrwx 3 root root 32 Mar 24 08:26 backend
drwxrwxrwx 3 root root 32 Mar 24 08:26 common
-rw-rw-rw- 1 root root 1.3K Mar 24 08:26 log4cxx.properties
-rw-rw-rw- 1 root root 8.2K Mar 24 08:26 pom.xml
-rw-rw-rw- 1 root root 846 Mar 24 08:26 pro.md
drwxrwxrwx 3 root root 32 Mar 24 08:26 security
drwxrwxrwx 3 root root 32 Mar 24 08:26 swagger
drwxr-xr-x 2 root root 47 Mar 24 08:25 target
drwxrwxrwx 3 root root 32 Mar 24 08:26 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-4901
/dev/nvme0n1p1 10.0G 7.3G 2.7G 73% /builds
/dev/nvme0n1p1 10.0G 7.3G 2.7G 73% /scripts-961-4901
/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 2.2M 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
04746f5b5984dc67209424c234f996c7 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}
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/8 : FROM 502302443508.dkr.ecr.cn-north-1.amazonaws.com.cn/mobdna:123456
---> a251a251c561
Step 2/8 : RUN yum install tar unzip procps iproute lsof glibc-all-langpacks -y ; yum clean all
---> Running in 791a662c13a8
/bin/sh: warning: setlocale: LC_ALL: cannot change locale (zh_CN.UTF8)
Failed to set locale, defaulting to C
??????ovl, priorities
One of the configured repositories failed (未知),
and yum doesn't have enough cached data to continue. At this point the only
safe thing yum can do is fail. There are a few ways to work "fix" this:
1. Contact the upstream for the repository and get them to fix the problem.
2. Reconfigure the baseurl/etc. for the repository, to point to a working
upstream. This is most often useful if you are using a newer
distribution release than is supported by the repository (and the
packages for the previous distribution release still work).
3. Run the command with the repository temporarily disabled
yum --disablerepo=<repoid> ...
4. Disable the repository permanently, so yum won't use it by default. Yum
will then just ignore the repository until you permanently enable it
again or use --enablerepo for temporary usage:
yum-config-manager --disable <repoid>
or
subscription-manager repos --disable=<repoid>
5. Configure the failing repository to be skipped, if it is unavailable.
Note that yum will try to contact the repo. when it runs most commands,
so will have to try and fail each time (and thus. yum will be be much
slower). If it is a very temporary problem though, this is often a nice
compromise:
yum-config-manager --save --setopt=<repoid>.skip_if_unavailable=true
Cannot find a valid baseurl for repo: amzn2-core/2/x86_64
Could not retrieve mirrorlist http://amazonlinux.default.amazonaws.com/2/core/latest/x86_64/mirror.list error was
14: curl#6 - "Could not resolve host: amazonlinux.default.amazonaws.com"
Failed to set locale, defaulting to C
??????ovl, priorities
正在清理软件源: amzn2-core
Cleaning up everything
Maybe you want: rm -rf /var/cache/yum, to also free up space taken by orphaned data from disabled or removed repos
Removing intermediate container 791a662c13a8
---> f9fedbed6a86
Step 3/8 : COPY mob-dna-1.0.jar /data/application/mobdna
---> 900ec97175dd
Step 4/8 : RUN md5sum /data/application/mobdna/mob-dna-1.0.jar
---> Running in 04ab6369bbe4
/bin/sh: warning: setlocale: LC_ALL: cannot change locale (zh_CN.UTF8)
04746f5b5984dc67209424c234f996c7 /data/application/mobdna/mob-dna-1.0.jar
Removing intermediate container 04ab6369bbe4
---> bb2e25bd90d8
Step 5/8 : WORKDIR /data/application/mobdna
---> Running in 16ee0ffbc17f
Removing intermediate container 16ee0ffbc17f
---> e4b79a378c6c
Step 6/8 : ENV LANG zh_CN.UTF8
---> Running in a088eeeea3dd
Removing intermediate container a088eeeea3dd
---> 4fa971bd7b9a
Step 7/8 : ENV LC_ALL zh_CN.UTF8
---> Running in cd43f30aaecd
Removing intermediate container cd43f30aaecd
---> 0c3ddbdb72e9
Step 8/8 : CMD java -jar -Dspring.profiles.active=test /data/application/mobdna/mob-dna-1.0.jar
---> Running in 78d72bb6422d
Removing intermediate container 78d72bb6422d
---> 25796b9b0c4e
Successfully built 25796b9b0c4e
Successfully tagged 502302443508.dkr.ecr.cn-north-1.amazonaws.com.cn/mobdna:bd8ac71637b7ec7b630f1543920dc8f105949b3b
$ docker push ${REG_URL}:${CI_COMMIT_SHA}
The push refers to repository [502302443508.dkr.ecr.cn-north-1.amazonaws.com.cn/mobdna]
80f0683597d0: Preparing
4f72fa9a2153: Preparing
307b90fb5483: Preparing
306a47ac918f: Preparing
26b8c9c2a571: Preparing
7dcf3af12af6: Preparing
bf18e1bda3bd: Preparing
a2848bdd36c0: Preparing
87b2ba915f1c: Preparing
62d5b5a2505d: Preparing
7dcf3af12af6: Waiting
bf18e1bda3bd: Waiting
a2848bdd36c0: Waiting
87b2ba915f1c: Waiting
62d5b5a2505d: Waiting
306a47ac918f: Layer already exists
307b90fb5483: Layer already exists
26b8c9c2a571: Layer already exists
7dcf3af12af6: Layer already exists
bf18e1bda3bd: Layer already exists
a2848bdd36c0: Layer already exists
62d5b5a2505d: Layer already exists
87b2ba915f1c: Layer already exists
4f72fa9a2153: Pushed
80f0683597d0: Pushed
bd8ac71637b7ec7b630f1543920dc8f105949b3b: digest: sha256:3ec0df375b305882dd48e1114133e581302386d23524babe6fcda913f6f16a19 size: 2423
section_end:1648110382:step_script
section_start:1648110382:archive_cache
Saving cache for successful job
Creating cache bd8ac71637b7ec7b630f1543920dc8f105949b3b...
target: found 3 matching files and directories
Archive is up to date!
Created cache
section_end:1648110383:archive_cache
Job succeeded