-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add README, docker-compose and update Makefile
- Loading branch information
Showing
4 changed files
with
38 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
FROM interlegis/alpine-postfix | ||
|
||
LABEL maintainer="Danya Sliusar <[email protected]>" | ||
|
||
ADD ./bin/sendmail-http / | ||
ADD start.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,13 @@ | ||
APP_NAME=sendmail-http | ||
|
||
|
||
all: build | ||
|
||
build: | ||
env CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o ./bin/sendmail-http | ||
env CGO_ENABLED=0 GOOS=linux GOARCH=amd64 \ | ||
go build -o ./bin/$(APP_NAME) | ||
clean: | ||
rm ./bin/sendmail-http | ||
rm ./bin/$(APP_NAME) | ||
|
||
docker: | ||
docker build -t danyanya/postfix-http . | ||
docker build -t danyanya/$(APP_NAME) . |
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 |
---|---|---|
@@ -1 +1,20 @@ | ||
Simple http to sendmail | ||
# sendmail http | ||
|
||
Simple http server for sendmail (based on postfix alpine) | ||
|
||
## Build | ||
|
||
Binary can be built by execute: | ||
|
||
``` | ||
make build | ||
``` | ||
|
||
To make docker image exec: | ||
|
||
``` | ||
make docker | ||
``` |
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,7 @@ | ||
version: '3.6' | ||
services: | ||
postfix-http: | ||
image: danyanya/postfix-http | ||
entrypoint: /start.sh | ||
environment: | ||
- SERVER_ADDR=:1001 |