Skip to content

Commit

Permalink
Short script that build docker image and restart docker-compose
Browse files Browse the repository at this point in the history
  • Loading branch information
jiajunmao committed Feb 6, 2024
1 parent 2150277 commit 47c4154
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions dockers/build-restart.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Build docker
docker build -t hdfs-runtime:latest -f Dockerfile ..

# Restart docker-compose
docker-compose stop && docker-compose rm -f

# Start the docker-compose
docker-compose up -d

0 comments on commit 47c4154

Please sign in to comment.