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 build process optimised #27

Merged
merged 5 commits into from
Apr 26, 2024

Conversation

sam57719
Copy link
Collaborator

Includes techniques from https://medium.com/@albertazzir/blazing-fast-python-docker-builds-with-poetry-a78a66f5aed0
Caching dependencies - automatic time zone setting

To test:

  1. Clone repo
  2. docker compose up -d --build

First build might take a bit longer - but caches a lot of stuff so subsequent builds are a lot faster

Unable to test on my laptop as doesn't support virtualization :( Might be time for a new laptop - or get my VPN/homelab working at home
@sam57719 sam57719 linked an issue Apr 25, 2024 that may be closed by this pull request
@sjefferson99 sjefferson99 self-assigned this Apr 26, 2024
@sam57719 sam57719 linked an issue Apr 26, 2024 that may be closed by this pull request
smib.Dockerfile Outdated Show resolved Hide resolved
The 'smib.Dockerfile' file has been removed from the project. This file was previously used to create a Docker image of the smib application. Since it is no longer needed, it has been deleted to aid in maintaining project clarity and organization.
@sam57719
Copy link
Collaborator Author

@sjefferson99 no its not being used - its a relic of times gone by. I shall remove and commit

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.

Docker bits look fine and I don't fully grasp the webserver code yet, so passing on the principle the container actually works for now.

@sjefferson99 sjefferson99 merged commit 23853ef into develop Apr 26, 2024
@sjefferson99 sjefferson99 deleted the sam-8-method-to-deploy-code-to-docker-on-pi branch April 26, 2024 20:32
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.

When running on linux, slack app has websocket port conflict Method to deploy code to docker on pi
2 participants