Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RSN-39 Improve development environment #10

Merged
merged 10 commits into from
Apr 11, 2024
Merged

RSN-39 Improve development environment #10

merged 10 commits into from
Apr 11, 2024

Conversation

raczu
Copy link
Collaborator

@raczu raczu commented Apr 8, 2024

Description

This PR intorduces many changes, including chaning the current way of developing application and completely new client files structures to simplify its development. The names of current files used by docker-compose command was renamed to compose.yml and compose.override.yml. The second file compose.override.yml overwrites and add some specific configuration to prepare development environment, while the first one will mainly involve setting up production environment (which has not yet been fully prepared).

It was decided to use watch and sync mechanism, so that the changes in the source code of the application are also reflected in the containers, e.g. change to the server code will cause the image to be re-built and the server container to be restarted to reflect the change.

Command to run up environment with watch mechanism:

docker-compose watch

Command to run up environment without watch mechanism:

docker-compose up --build -d

Command to shut down environment:

docker-compose down

Motivation

The motivation was to simplify development enviornment in order to run up all containers in one command and ensure their properly functioning, e.g. backend container depends on database container etc.

Related issue and/or ticket

#7 RSN-39

raczu and others added 9 commits March 31, 2024 20:36
BREAKING CHANGE: renamed docker compose files to compose*.yml.

Simplify running up development environment. Now it requires
to use simple command: docker-compose watch

Introduce a watch mechanism in development environemnt to
rebuild dotnet container each time the server source code
is changed.

Add healtcheck mechanism to ensure the functionality of the
postgres before running up the rest of services.
BREAKING CHANGE: All previous services, tests etc. needs to be
reapplied.
The change was made to simplify client development.
Mobile contenerization requires to specify your computer
IP address to make it possible to use expo go.
Added Jest
Added services from RSN-12
Split .gitignore
@raczu raczu added scope: ci/cd Indicates that PR relates to workflows changes. type: feature PR's categorised as feature. labels Apr 8, 2024
@raczu raczu requested a review from wzarek April 8, 2024 22:28
@raczu raczu assigned raczu and wzarek and unassigned raczu Apr 8, 2024
@wzarek wzarek added the status: ready for review Determines that PR is ready for review. label Apr 8, 2024
Copy link
Owner

@wzarek wzarek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems fine.

@raczu raczu merged commit 14a9cca into main Apr 11, 2024
6 checks passed
@wzarek wzarek deleted the RSN-39 branch May 8, 2024 16:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
scope: ci/cd Indicates that PR relates to workflows changes. status: ready for review Determines that PR is ready for review. type: feature PR's categorised as feature.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants