Skip to content

Commit

Permalink
Add README, docker-compose and update Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
danyanya committed Jul 18, 2019
1 parent 9533e60 commit c68f816
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 4 deletions.
2 changes: 2 additions & 0 deletions Dockerfile
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 /

Expand Down
12 changes: 9 additions & 3 deletions Makefile
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) .
21 changes: 20 additions & 1 deletion README.md
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
```
7 changes: 7 additions & 0 deletions docker-compose.yml
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

0 comments on commit c68f816

Please sign in to comment.