Skip to content

Commit

Permalink
#6 Generate the symfony-docker.lock when using docker-fetch
Browse files Browse the repository at this point in the history
  • Loading branch information
mathieu-ducrot committed Jan 4, 2024
1 parent 0af135f commit 689e81b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,12 @@ make df
```

Relaunch the stack (`make up` + `make install` on another terminal if some changes are made on the Dockerfile or make/install.mk files).
Check the diffs and commit any changes that feels relevant to you.

> A symfony-docker.lock while be generated each time you run the docker-fetch.
> This file helps you to keep track of which version of the docker stack you are currently using.
> It should be committed on your project.
Finally, check the diffs and commit any changes that feels relevant to you.

## Working on the symfony-docker stack

Expand Down
7 changes: 7 additions & 0 deletions make/docker.mk
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,13 @@ docker-fetch: ## Fetch smartbooster/symfony-docker stack files
git remote add docker git@github.com:smartbooster/symfony-docker.git
git fetch docker
git checkout docker/main .
rm -f symfony-docker.lock
touch symfony-docker.lock
echo '{' >> symfony-docker.lock
echo ' "hash": "'$(shell git rev-parse docker/main)'", ' >> symfony-docker.lock
echo ' "fetch_time": "'$(shell date +%Y-%m-%dT%H:%M:%S)'",' >> symfony-docker.lock
echo ' "tag": "'$(shell git rev-parse docker/main | git tag --contains)'"' >> symfony-docker.lock
echo '}' >> symfony-docker.lock
git remote remove docker
make docker-post-fetch
df: docker-fetch ## Alias for docker-fetch
Expand Down

0 comments on commit 689e81b

Please sign in to comment.