Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #745 from trade-tariff/HOTT-4446-pentest-remediation
HOTT-4446: Adds HEALTHCHECK
- Loading branch information
Showing
4 changed files
with
56 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
.PHONY: default build run clean | ||
|
||
IMAGE_NAME := trade-tariff-duty-calculator | ||
COMMON_ENV := --env-file ".env.development" \ | ||
-e 'SECRET_KEY_BASE="0620b2907b1cee61dbcf5cbbf4125c04bf5db3554c66589d40a9349b5abd5463a40f4a1a8c2db9b07c13715340ee3c94bbc24b1adb3140a20f702e9dc3d4fc0c"' \ | ||
-e 'GOVUK_APP_DOMAIN="localhost"' \ | ||
-e 'GOVUK_WEBSITE_ROOT="http://localhost/"' \ | ||
-e 'RAILS_ASSUME_SSL="false"' | ||
|
||
default: build run | ||
|
||
build: | ||
docker build -t $(IMAGE_NAME) . | ||
|
||
run: | ||
docker run \ | ||
--network=host \ | ||
--rm \ | ||
--name $(IMAGE_NAME) \ | ||
$(COMMON_ENV) \ | ||
$(IMAGE_NAME) | ||
|
||
clean: | ||
docker rmi $(IMAGE_NAME) | ||
|
||
shell: | ||
docker run \ | ||
--rm \ | ||
--name $(IMAGE_NAME)-shell \ | ||
$(COMMON_ENV) \ | ||
--no-healthcheck \ | ||
-it $(IMAGE_NAME) /bin/sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters