Skip to content

Commit

Permalink
Local development enhancements
Browse files Browse the repository at this point in the history
  • Loading branch information
vokomarov committed Jan 7, 2024
1 parent 04a777e commit 663270f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ IMAGE_LATEST=$(REPO):latest
.PHONY: build tag push start stop network

build:
docker build . -t $(IMAGE_DEV) --no-cache
docker build . -t $(IMAGE_DEV) --no-cache --platform linux/amd64

tag:
docker tag $(IMAGE_DEV) $(IMAGE_RELEASE)
Expand All @@ -29,7 +29,7 @@ push:

start:
mkdir -p data
docker run \
[[ "$(shell docker container inspect -f '{{.State.Running}}' $(CONTAINER_NAME))" == "true" ]] || docker run \
--rm \
--name $(CONTAINER_NAME) \
--net cash-track-local \
Expand All @@ -39,6 +39,7 @@ start:
-e MYSQL_DATABASE=$(DB_NAME) \
-e MYSQL_USER=$(DB_USER) \
-e MYSQL_PASSWORD=$(DB_PASS) \
--platform linux/amd64 \
-d \
$(IMAGE_DEV)

Expand Down

0 comments on commit 663270f

Please sign in to comment.