Closed shinnokdisengir closed 4 months ago
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 69.49%. Comparing base (
1a9c203
) to head (87d67d4
). Report is 5 commits behind head on master.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Unified Dockerfile
All Dockerfiles in the project - apps - have been merged into one, as they were identical in 99% of their content. In addition, the new file configuration allows the
develop
section ofdocker compose
to allowwatch
, with hotcode-reloading for those who need to developdeps
andbuilder
stages allow you to compile dependencies and have the code inside the container, without having built the release. This allows you to runmix run --no-halt
ormix phx.server
in the container/app/astarte-service
pointing directly to the service. This allows the service to be started without knowing the nameentrypoint.sh
, the commands in that file will be started instead the service itself. To run the service using the script,entrypoint.sh
must haveexec "$@"
To build a container (default env is
prod
), you have to use the commonDockerfile
in the app context:docker build -f ../../Dockerfile .
To build in a different environment:
docker build --build-arg BUILD_ENV=dev -f ../../Dockerfile .
docker build --build-arg BUILD_ENV=test -f ../../Dockerfile .
docker compose dev section
docker compose
is now capable of starting containers in dev mode, without creating the release.The previous
docker-compose.yml
file now points to the commonDockerfile
located at the root of Astarte (see previous commit) A newdocker-compose.dev.yml
has been added, which, if started in cascade with the first, allows for the creation of a development environment for Astarte with the possibility of hot-reloading and rebuild, with each code change To start the dev mode functionality, according to the specifications (https://docs.docker.com/compose/multiple-compose-files/merge/)docker compose -f docker-compose.yml -f docker-compose.dev.yml watch