Skip to content

Commit

Permalink
📝docs : 스크립트 수정
Browse files Browse the repository at this point in the history
📝docs : 스크립트 수정
  • Loading branch information
DDonghyeo authored May 23, 2024
2 parents 3a27cd3 + 2bf4a4c commit bd1df87
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion config-service/src/main/resources/bootstrap.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ spring:
uri: ${CONFIG_GIT_URI}
ignore-local-ssh-settings: true
passphrase: ${CONFIG_PASSPHRASE}
private-key: ${CONFIG_PRIVATE_KEY}
private-key: ${CONFIG_PRIVATE_KEY_DIR}
3 changes: 1 addition & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ services:
environment:
CONFIG_GIT_URI : ${CONFIG_GIT_URI}
CONFIG_PASSPHRASE : ${CONFIG_PASSPHRASE}
CONFIG_PRIVATE_KEY : ${CONFIG_PRIVATE_KEY}
CONFIG_PRIVATE_KEY_DIR : ${CONFIG_PRIVATE_KEY_DIR}
restart: always
volumes:
- /home/ec2-user/logs/config:/logs
Expand Down Expand Up @@ -76,7 +76,6 @@ services:
container_name: zookeeper
ports:
- "2181:2181"
-
kafka:
image: wurstmeister/kafka:latest
container_name: kafka
Expand Down
2 changes: 1 addition & 1 deletion script/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ RUNNING_KAFKA=$(docker ps | grep kafka)
# Eureka 검색
if [ -z "$RUNNING_EUREKA" ]; then
echo "Starting Eureka ..."
docker compose -f /home/docker-compose.yml up -d eureka
docker-compose -f /home/docker-compose.yml up -d eureka
sleep 5 #Eureka 실행 5초 대기
else
echo "Eureka is already running"
Expand Down
5 changes: 3 additions & 2 deletions script/docker_init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,10 @@ if ! command -v docker-compose &> /dev/null; then
echo "Docker-compose install start..."

#Docker compose plugin 설치 - Amazon Linux 2023
sudo curl -L "https://github.com/docker/compose/releases/download/1.28.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo curl -L https://github.com/docker/compose/releases/latest/download/docker-compose-$(uname -s)-$(uname -m) -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
sudo ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose

docker-compose version

echo "Docker-compose install complete!"
else
Expand Down

0 comments on commit bd1df87

Please sign in to comment.