Skip to content
Open
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
8 changes: 8 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
FROM golang:1.21.6-alpine

RUN apk add --update --no-cache build-base make bash git && rm -rf /var/cache/apk/*
RUN mkdir -p /go/src/app
RUN git config --global --add safe.directory /go/src/app
VOLUME /go/src/app
WORKDIR /go/src/app

4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -205,3 +205,7 @@ version:
sed -i -e 's/VERSION =.*/VERSION = "'$$NEWVERSION'"/g' cmd/*/*.go pkg/checknscweb/*.go

check_nsc_web: build

docker:
docker build -t dockerbuilder .
docker run -it --rm -e CGO_ENABLED=1 -v $(shell pwd):/go/src/app dockerbuilder make $(target)
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,18 @@ To be easily portable, *check_nsc_web* is written in Go.

*check_nsc_web* is released under the GNU GPL v3.

## Building the binaries

### With docker

```
make docker
```
or to select a specific makefile target
```
make docker target=citest
```

## Usage examples
* Alive check
```
Expand Down