getting toward release

This commit is contained in:
Jeffrey Paul 2019-10-03 06:01:13 -07:00
parent a80397fdf6
commit 0e3a914ea0
4 changed files with 27 additions and 1 deletions

1
.dockerignore Normal file
View File

@ -0,0 +1 @@
xsum

17
Dockerfile Normal file
View File

@ -0,0 +1,17 @@
FROM golang:1.13 as builder
WORKDIR /go/src/github.com/sneak/xsum
COPY . .
RUN go get -v && make build
# this container doesn't do anything except hold the build artifact
# and make sure it compiles.
FROM alpine
COPY --from=builder /go/src/github.com/sneak/xsum/xsum /bin/xsum
CMD /bin/xsum
# FIXME add testing

View File

@ -20,8 +20,11 @@ run: build
build: ./xsum
./xsum: *.go */*.go
./xsum: *.go
go build -o $@ $(GOFLAGS) .
fmt:
go fmt *.go
test:
docker build -t sneak/xsum .

View File

@ -10,6 +10,11 @@ You can dd a few random bytes into the middle of an hfs+ or apfs filesystem,
and, if they land in file data, an fsck/Disk First Aid on the filesystem
will pass with flying colors. There is no file content checksum.
# todo
* recurse into directories
* more parallelism
# author
Jeffrey Paul [sneak@sneak.berlin](mailto:sneak@sneak.berlin)