getting toward release
This commit is contained in:
parent
a80397fdf6
commit
0e3a914ea0
1
.dockerignore
Normal file
1
.dockerignore
Normal file
@ -0,0 +1 @@
|
||||
xsum
|
17
Dockerfile
Normal file
17
Dockerfile
Normal 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
|
5
Makefile
5
Makefile
@ -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 .
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user