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

Docker Compose reorganized #437

Merged
merged 1 commit into from
Feb 26, 2024
Merged

Docker Compose reorganized #437

merged 1 commit into from
Feb 26, 2024

Conversation

jimmeak
Copy link
Contributor

@jimmeak jimmeak commented Feb 25, 2024

Special directory .docker for organization of the code.

Fix: Dynamic exposing of the ports for Selenium are not needed in local env and they caused problems.

@jimmeak jimmeak requested a review from Almad February 25, 2024 18:52
@jimmeak jimmeak added the cleanup Cleaning up the fallout of migration label Feb 25, 2024
@jimmeak jimmeak force-pushed the found/docker branch 2 times, most recently from b5083ff to 32808e6 Compare February 25, 2024 18:56

RUN pip install --upgrade pip

ADD requirements.txt .
Copy link
Member

Choose a reason for hiding this comment

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

Are we going to be keeping this and top-level requirements in sync? Wouldn't it be better to just add the top-level one?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It seemed to me that the context specified in docker compose yaml file does not let us to load the root lvl requirements. It always gave me an error. I tried it now to be sure and now it works with ADD ./../../requirements.txt, so it seems we can use both.

Which file is better to keep? If we would use only docker, I'd say let's use this one. But we have also possibility to run the app without docker, right? Therefore it would be bad if it were only in docker directory, so I'd keep the root file and this could go away. What do you think?

@@ -0,0 +1 @@
FROM mariadb:latest
Copy link
Member

Choose a reason for hiding this comment

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

I'd definitely use a specific version that is on prod. That's currently mysql-5.5, but find the oldest version you can and we'll keep them in sync once we upgrade :)

If there is a way to keep it in sync with the terraform version, that would be golden :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I added version 10.0 that should be more or less compatible with mysql-5.5. For local developing mysql 5.5 and mariadb 5.5 do not have official docker images for arm64v8, do they? At least for it is this error:

image

@Almad Almad merged commit c71afcd into dracidoupe:master Feb 26, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cleanup Cleaning up the fallout of migration
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants