navapbc / template-application-rails

Ruby on Rails with USWDS template, including CI/CD, for teams building web applications
Apache License 2.0
2 stars 1 forks source link

Add wget to release image #30

Closed rocketnova closed 5 months ago

rocketnova commented 5 months ago

Ticket

Changes

What was added, updated, or removed in this PR.

Context for reviewers

Background context, more in-depth details of the implementation, and anything else you'd like to call out or ask reviewers.

wget is used by default for the infrastructure template ELB healthcheck. This PR adds wget to the production release image.

Testing

Provide testing instructions and evidence that the code works as expected. Include screenshots, GIF demos, shell commands or output to help show the changes working as expected. ProTip: you can drag and drop or paste images into this textbox.

Test this PR by using the mock-production docker compose:

  1. Checkout this branch: git checkout rocket/install-wget
  2. Change to the application directory: cd app-rails
  3. Initialize the container: make init-container DOCKER_COMPOSE_ARGS="-f ../docker-compose.mock-production.yml"
  4. Fill in the .env details in /app-rails/.env
    • You must do this otherwise the container won't start correctly.
  5. Start the container: make start-container DOCKER_COMPOSE_ARGS="-f ../docker-compose.mock-production.yml"
  6. In another terminal window, start a shell in the container: docker compose -f ../docker-compose.mock-production.yml exec app-rails bash
  7. Use which to verify that wget is installed. For example:
    • CleanShot 2024-06-14 at 13 50 29@2x