반응형
GitLab CI에서 Maridb 서비스를 시작하지 못했습니다.
테스트 실행을 위해 GitLab CI에 mariadb 서비스를 추가하려고 했습니다.
목표에서 도커 변수 정의variables
그리고 a를 추가mariadb
취업 시험에서
variables:
MYSQL_DATABASE: backend
MYSQL_USER: admin
MYSQL_PASSWORD: admin
test:
stage: test
image: maven:3.6.3-openjdk-16
services:
- name: mariadb
alias: db
command: [ "--character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci" ]
...
코드가 GitLab.com 에 푸시될 때.
그리고 저는 다음과 같은 로그를 보았습니다.
Starting service mariadb:latest ...
Pulling docker image mariadb:latest ...
Using docker image sha256:e76a4b2ed1b4014a9d638e15cd852544d8171c64ed78096fbe6e5a108fbf20b0 for mariadb:latest with digest mariadb@sha256:9c681cefe72e257c6d58f839bb504f50bf259a0221c883fcc220f0755563fa46 ...
Waiting for services to be up and running...
*** WARNING: Service runner-fa6cab46-project-18612327-concurrent-0-0fddafc5b30beaaa-mariadb-0 probably didn't start properly.
Health check error:
start service container: Error response from daemon: Cannot link to a non running container: /runner-fa6cab46-project-18612327-concurrent-0-0fddafc5b30beaaa-mariadb-0 AS /runner-fa6cab46-project-18612327-concurrent-0-0fddafc5b30beaaa-mariadb-0-wait-for-service/service (docker.go:1156:0s)
Service container logs:
2021-04-13T08:30:50.821859467Z 2021-04-13 08:30:50+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 1:10.5.9+maria~focal started.
2021-04-13T08:30:50.920686916Z 2021-04-13 08:30:50+00:00 [ERROR] [Entrypoint]: mysqld failed while attempting to check config
2021-04-13T08:30:50.920714063Z command was: mysqld --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci --verbose --help --log-bin-index=/tmp/tmp.Kzx9BNn0Bl --encrypt-tmp-files=0
2021-04-13T08:30:50.920720617Z mysqld: Character set 'utf8mb4 --collation-server=utf8mb4_unicode_ci' is not a compiled character set and is not specified in the '/usr/share/mysql/charsets/Index.xml' file
2021-04-13T08:30:50.920875405Z mysqld: Character set 'utf8mb4 --collation-server=utf8mb4_unicode_ci' is not a compiled character set and is not specified in the '/usr/share/mysql/charsets/Index.xml' file
하지만 저는 도커 컨테이너에서 mariadb 인스턴스를 실행했습니다. 잘 작동하고 있습니다. 그런 정보는 보이지 않습니다.
언급URL : https://stackoverflow.com/questions/67071944/start-a-maridb-service-in-gitlab-ci-failed
반응형
'prosource' 카테고리의 다른 글
봄에 @Profile과 @ActiveProfiles의 차이점은 무엇입니까? (0) | 2023.08.21 |
---|---|
"Gradle 버전 2.10이 필요합니다."오류 (0) | 2023.08.21 |
1차 및 2차 Y 축이 있는 세로막대형 차트 (0) | 2023.08.21 |
창 크기 조정에 대한 jQuery (0) | 2023.08.21 |
jQuery가 아니라면 Javascript에서 달러 기호는 무엇입니까? (0) | 2023.08.21 |