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

Document commands to run in dev docker containers #215

Closed
wants to merge 4 commits into from
Closed

Conversation

sbliven
Copy link
Member

@sbliven sbliven commented Nov 15, 2023

  • Update README
  • Simplify frontend dockerfile

@sbliven sbliven requested a review from minottic November 15, 2023 15:52
@minottic
Copy link
Collaborator

I should have closed it with this

@sbliven
Copy link
Member Author

sbliven commented Nov 16, 2023

Looks like half this PR got merged already. I'm not sure how that happened, but I've merged from main and this should be the full changes.

```

A custom Dockerfile is used because the production image uses the node alpine base image which does not crosscompile on macOS.
A custom Dockerfile is used because the production image builds the static site and then serves it via nginx. The development image serves the site using `ng serve` (webpack-dev-server) so it reflects the latest code and updates when files change.
Copy link
Collaborator

Choose a reason for hiding this comment

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

does the official image work on your mac? Because the alpine version of node did not work on mac for me. If this is the case for you as well, I would keep the comment as is and also keep the custom image with stages and the docker-file with target

Copy link
Member Author

Choose a reason for hiding this comment

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

nginx:1.2-alpine doesn't work on arm64. Newer versions of nginx do. We should update all our images to use a recent alpine version.

sbliven added a commit that referenced this pull request Jun 4, 2024
[Previous PR](#215)

- Improve documentation of the commands to run in each container 
- Some minor fixes to docker-compose to support recent docker versions

## Squashed commits
- Refactor fe dev Dockerfile
  Remove nginx stuff; if this is needed, use the production image
- Document commands to run in dev containers
- Fix be_next command in README
- Document BE env vars
- Fix docker-compose
  Recent docker versions don't support depends_on in base profiles used
  with extends
@sbliven
Copy link
Member Author

sbliven commented Jun 4, 2024

This has been rebased in #229

@sbliven sbliven closed this Jun 4, 2024
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.

2 participants