Skip to content
This repository was archived by the owner on Sep 22, 2020. It is now read-only.

Commit 3cc639d

Browse files
committed
build: remove scripts and makefile
Multi-stage docker builds and Quay.io build triggers can take care of official builds. The Makefile is just absurd and has been replaced with some documentation in the README.
1 parent 6bf0d0b commit 3cc639d

File tree

4 files changed

+22
-27
lines changed

4 files changed

+22
-27
lines changed

Dockerfile

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
1-
FROM scratch
2-
MAINTAINER CoreOS
1+
FROM golang as build
2+
WORKDIR /go/src/github.com/coreos/container-linux-userdata-validator/
3+
COPY . .
4+
RUN CGO_ENABLED=0 go build -o validate ./...
35

4-
EXPOSE 80
5-
WORKDIR /opt/validate
6-
ENTRYPOINT ["bin/validate"]
76

8-
ADD bin/validate /opt/validate/bin/validate
7+
FROM scratch
8+
WORKDIR /opt/validate/bin
9+
EXPOSE 80
10+
CMD ["./validate"]
11+
COPY --from=build /go/src/github.com/coreos/container-linux-userdata-validator/validate .

Makefile

Lines changed: 0 additions & 4 deletions
This file was deleted.

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
11
# CoreOS Userdata Validator
22

33
This code powers the public service at https://coreos.com/validate/.
4+
5+
## Building
6+
7+
The included multi-stage Dockerfile can be used to build working images. Just run the following:
8+
9+
docker build .
10+
11+
## Updating dependencies
12+
13+
The following glide commands can be used to update the dependencies of this project:
14+
15+
glide update --strip-vendor
16+
glide-vc --use-lock-file --no-tests --only-code

build

Lines changed: 0 additions & 17 deletions
This file was deleted.

0 commit comments

Comments
 (0)