Skip to content

Commit

Permalink
Makefile: No need to check git status anymore when running docker con…
Browse files Browse the repository at this point in the history
…tainers
  • Loading branch information
ish-hcc committed Aug 20, 2024
1 parent 6e4a1e7 commit d1d1acc
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -91,13 +91,6 @@ run: run_airflow ## Run Airflow server and the built binary
@cp -RpPf conf cmd/${MODULE_NAME}/ && ./cmd/${MODULE_NAME}/${MODULE_NAME}* || echo "Trying with sudo..." && sudo ./cmd/${MODULE_NAME}/${MODULE_NAME}* &

run_docker: run_airflow ## Run Airflow server and the built binary within Docker
@git diff > .diff_current
@STATUS=`diff .diff_last_build .diff_current 2>&1 > /dev/null; echo $$?` && \
GIT_HASH_MINE=`git rev-parse HEAD` && \
GIT_HASH_LAST_BUILD=`cat .git_hash_last_build 2>&1 > /dev/null | true` && \
if [ "$$STATUS" != "0" ] || [ "$$GIT_HASH_MINE" != "$$GIT_HASH_LAST_BUILD" ]; then \
docker rmi -f cm-cicada:latest; \
fi
@docker compose up -d

stop: stop_airflow ## Stop Airflow server and the built binary
Expand Down

0 comments on commit d1d1acc

Please sign in to comment.