Skip to content

Commit

Permalink
chore: 테스팅 mysql db 설치 스크립트 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
5uhwann committed Jul 10, 2024
1 parent dfa142d commit 85bd009
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .ebextensions/00-install-testing-mysql.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
packages:
yum:
docker: []

commands:
01_start_docker_service:
command: "sudo service docker start"
ignoreErrors: false

02_pull_mysql_image:
command: "sudo docker pull mysql:8.0"
ignoreErrors: false

03_run_mysql_container:
command: |
sudo docker run -d \
--name=mysql80 \
-e MYSQL_ROOT_PASSWORD=ddingdong \
-e MYSQL_DATABASE=ddingdong_test \
-e MYSQL_USER=myuser \
-e MYSQL_PASSWORD=ddingdong\
-p 3306:3306 \
mysql:8.0
ignoreErrors: false

0 comments on commit 85bd009

Please sign in to comment.