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

Config Split #69

Merged
merged 2 commits into from
May 15, 2024
Merged

Config Split #69

merged 2 commits into from
May 15, 2024

Conversation

sam57719
Copy link
Collaborator

@sam57719 sam57719 commented May 9, 2024

Split config

Mainly, the configuration imports in various modules have been refactored for better organization. Configurations have now been split into 'smib.slack.config' and 'smib.webserver.config' files, ensuring that the relevant configurations are loaded for each specific module. Docker build arguments have also been added to exclude unnecessary directories during the build process, making the build more efficient.

There is a core smib.common.config which holds configuration necessary to both parts of the app.

Docker compose file/build file have had an argument added to remove the other containers source, this is to stop an dependancy injection issue. Also makes the respective images a tad smaller
@sam57719 sam57719 self-assigned this May 9, 2024
@sam57719 sam57719 linked an issue May 9, 2024 that may be closed by this pull request
@sam57719 sam57719 added the ⛔blocked issue blocked label May 9, 2024
@sam57719
Copy link
Collaborator Author

sam57719 commented May 9, 2024

blocked by #68

I should've based this branch off of that one

@sjefferson99
Copy link
Member

@sam57719 Merge branch 68 into this one and keep it open. We can merge 68 into develop and then 69 on top later, or just merge 69 in and discard 68 as we need.

The Docker configuration files, docker-compose.yml and smib-fast.Dockerfile, have been modified to remove the 'exclude_dir' argument. This argument was previously used to exclude directories from the Docker build process, however, this exclusion was found unnecessary. Now, the Docker build workflow is simpler and does not exclude any directories.

This is now done in the load_injection_container calls to properly sort the injection issues
@sam57719 sam57719 removed the ⛔blocked issue blocked label May 9, 2024
@sam57719
Copy link
Collaborator Author

sam57719 commented May 9, 2024

@sjefferson99 this now should be able to go in separatley to the docker branches #68 - found better way of sorting the injectable issue

@sam57719 sam57719 marked this pull request as ready for review May 9, 2024 22:37
@sam57719 sam57719 assigned sjefferson99 and unassigned sam57719 May 12, 2024
Copy link
Member

@sjefferson99 sjefferson99 left a comment

Choose a reason for hiding this comment

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

All fine.

@sjefferson99 sjefferson99 merged commit e95862d into develop May 15, 2024
@sjefferson99 sjefferson99 deleted the 49-separate-config branch May 15, 2024 20:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Separate config for slack and webserver
2 participants