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

Ensure production container build #48

Merged
merged 1 commit into from
Mar 29, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Dockerfile-prod
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ FROM alpine:latest AS souin

COPY --from=builder /app/cmd/souin .
COPY --from=builder /app/src/github.com/darkweak/souin/configuration .
COPY --from=builder /ssl/ .
RUN mkdir -p /ssl
COPY --from=builder /app/src/github.com/darkweak/souin/default .
RUN mkdir -p configuration
RUN mv *.yml configuration/
Expand Down
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ build-dev: env-dev ## Build containers with dev env vars
$(DC_BUILD) souin
$(MAKE) up

health-check-prod: build-app ## Production container health check
$(DC_EXEC) souin ls

coverage: ## Show code coverage
$(DC_EXEC) souin go test ./... -coverprofile cover.out
$(DC_EXEC) souin go tool cover -func cover.out
Expand Down Expand Up @@ -54,4 +57,4 @@ tests: ## Run tests
up: ## Up containers
$(DC) up -d --remove-orphans

validate: lint tests ## Run lint and tests
validate: lint tests down health-check-prod ## Run lint, tests and ensure prod can build