hackforla / website

Hack for LA's website
https://www.hackforla.org
GNU General Public License v2.0
324 stars 768 forks source link

Update Docker Compose Dev With New Features #1443

Open akibrhast opened 3 years ago

akibrhast commented 3 years ago

Dependency

A person who has risen to the merge team and who is experiencing docker reloading the entire code base on every change and who wants to take this issue on. see notes

Overview

We need to update our docker-compose file such that it is dynamic and based off off .env file settings.

Action Items

Resources/Instructions

More details available in issue ##1273

ExperimentsInHonesty commented 2 years ago

I think this issue will never get worked on if it sits in the icebox but no one knows about it. Can we add something to the CONTRIBUTING.md so that if anyone has a problem with it AND they rise to the level of merge team, they can take on this issue.

juliansmith0 commented 2 years ago

per 1.6.a in CONTRIBUTING.md: "NOTE: If it takes longer than 2 minutes to build your website using docker-compose up, please let the technical leads know about this and add your website build time in a comment to https://github.com/hackforla/website/issues/1443. Also, once you are part of the merge team, you can work on https://github.com/hackforla/website/issues/1443 and fix it (if you want)."

running docker-compose up successfully for the first time did indeed take longer than 2 minutes for me. Total, it took 16.5 minutes. Here's the full output with regards to time taken:

⠿ hfla_site Pulled 440.3s ⠿ cbdbe7a5bc2a Pull complete 1.2s ⠿ aa8ae8202b42 Pull complete 1.3s ⠿ b21786fe7c0d Pull complete 1.3s ⠿ 68296e6645b2 Pull complete 53.6s ⠿ 6b1c37303e2d Pull complete 53.6s ⠿ d603698ce36b Pull complete 438.1s [+] Running 1/1 ⠿ Container hfla_site Recreated 0.7s

SAUMILDHANKAR commented 2 years ago

@juliansmith0 Thanks for adding your comment regarding the time taken to run docker-compose up for the first time. Just wanted to check if the long time taken was only for the first time or if the time improved considerably during your subsequent attempts to run docker-compose up. Please let us know. Thanks again for sharing.

fyliu commented 1 year ago

I'm working with a docker setup recently and just want to leave a comment while I have things fresh in my mind.

Resource

Comments on the pre-build steps

liamtirney commented 1 year ago

per 1.6.a in CONTRIBUTING.md: "NOTE: If it takes longer than 2 minutes to build your website using docker-compose up, please let the technical leads know about this and add your website build time in a comment to https://github.com/hackforla/website/issues/1443. Also, once you are part of the merge team, you can work on https://github.com/hackforla/website/issues/1443 and fix it (if you want)."

running 'docker-compose up' successfully for the first time took longer than 2 minutes for me. It took about 5 minutes. Here's a snapshot of my terminal: long_docker_build

kevin31yu commented 1 year ago

per 1.6.a in CONTRIBUTING.md: "NOTE: If it takes longer than 2 minutes to build your website using docker-compose up, please let the technical leads know about this and add your website build time in a comment to https://github.com/hackforla/website/issues/1443. Also, once you are part of the merge team, you can work on https://github.com/hackforla/website/issues/1443 and fix it (if you want)."

Took up to 4 minutes by running 'docker-compose up'.