Skip to content

Commit

Permalink
[#54] Fix: chmod 설정 파일 분리
Browse files Browse the repository at this point in the history
  • Loading branch information
tkguswls1106 committed May 22, 2024
1 parent b7bb752 commit 062edf2
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
10 changes: 10 additions & 0 deletions .ebextensions/01-chmod-postdeploy.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
files:
"/.platform/hooks/postdeploy/connect_spring_to_network.sh":
mode: "000755"
owner: root
group: root

commands:
01_chmod_to_postdeploy_hook:
command: "chmod +x .platform/hooks/postdeploy/connect_spring_to_network.sh"
ignoreErrors: false
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
commands:
01_chmod_to_postdeploy_hook:
command: "chmod +x .platform/hooks/postdeploy/connect_spring_to_network.sh"
02_create_network_if_not_exists:
01_create_network_if_not_exists:
command: "docker network ls | grep -q mynetwork || docker network create mynetwork"
03_run_rabbitmq:
02_run_rabbitmq:
command: "docker run -d --name rabbitmq --network mynetwork -p 5672:5672 -p 15672:15672 -p 61613:61613 --restart=unless-stopped rabbitmq:management"
test: "[[ ! $(docker ps -q -f name=rabbitmq) ]]"
04_enable_rabbitmq:
03_enable_rabbitmq:
command: "docker exec rabbitmq bash -c 'rabbitmq-plugins enable rabbitmq_stomp && rabbitmq-plugins enable rabbitmq_management'"

0 comments on commit 062edf2

Please sign in to comment.