+9778
-120480
lines changed Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
1
1
dist/*
2
2
cli/serve/static.rice-box.go
3
-
.coverprofile
4
-
coverprofile.txt
5
-
gopath
3
+
coverage.txt
4
+
profile.out
6
5
bin
Original file line number Diff line number Diff line change
@@ -3,12 +3,8 @@ language: go
3
3
4
4
matrix:
5
5
include:
6
-
- go: 1.12.7
7
-
- go: master
8
-
os: osx
9
-
env: BUILD_TAGS=
10
-
allow_failures:
11
-
- go: master
6
+
- go: 1.12.x
7
+
- go: 1.13.x
12
8
13
9
# Install g++-4.8 to support std=c++11 for github.com/google/certificate-transparency/go/merkletree
14
10
addons:
@@ -24,14 +20,6 @@ install:
24
20
services:
25
21
- mysql
26
22
- postgresql
27
-
before_install:
28
-
# CFSSL consists of multiple Go packages, which refer to each other by
29
-
# their absolute GitHub path, e.g. github.com/cloudflare/crypto/pkcs7.
30
-
# That means, by default, if someone forks the repo and makes changes across
31
-
# multiple packages within CFSSL, Travis won't pass for the branch on their
32
-
# own repo. To fix that, we move the directory
33
-
- mkdir -p $TRAVIS_BUILD_DIR $GOPATH/src/github.com/cloudflare
34
-
- test ! -d $GOPATH/src/github.com/cloudflare/cfssl && mv $TRAVIS_BUILD_DIR $GOPATH/src/github.com/cloudflare/cfssl || true
35
23
36
24
# Only build pull requests, pushes to the master branch, and branches
37
25
# starting with `test-`. This is a convenient way to push branches to
@@ -44,41 +32,29 @@ branches:
44
32
- /^test-.*$/
45
33
46
34
before_script:
47
-
- go install ./vendor/golang.org/x/lint/golint
48
-
- go install ./vendor/github.com/GeertJohan/fgt
35
+
- make bin/golint
49
36
# Setup DBs + run migrations
50
-
- go install ./vendor/bitbucket.org/liamstask/goose/cmd/goose
51
37
# The sql_mode adjustment is to remove a sql_mode that was added in MySQL 5.7, this mode applies a rule that does:
52
38
# > The NO_ZERO_DATE mode affects whether the server permits '0000-00-00' as a valid date.
53
39
# https://dev.mysql.com/doc/refman/5.7/en/sql-mode.html#sqlmode_no_zero_date
54
40
- if [[ $(uname -s) == 'Linux' ]]; then
41
+
make bin/goose;
55
42
psql -c 'create database certdb_development;' -U postgres;
56
-
goose -path $GOPATH/src/github.com/cloudflare/cfssl/certdb/pg up;
43
+
./bin/goose -path certdb/pg up;
57
44
mysql -e 'create database certdb_development;' -u root;
58
45
mysql -e 'SET global sql_mode = 0;' -u root;
59
-
goose -path $GOPATH/src/github.com/cloudflare/cfssl/certdb/mysql up;
46
+
./bin/goose -path certdb/mysql up;
60
47
fi
48
+
61
49
script:
62
50
- ./test.sh
63
-
notifications:
64
-
email:
65
-
recipients:
66
-
- cbroglie@cloudflare.com
67
-
- gabriel@cloudflare.com
68
-
- kyle@cloudflare.com
69
-
- leland@cloudflare.com
70
-
- mihir@cloudflare.com
71
-
- mitul@cloudflare.com
72
-
- nick@cloudflare.com
73
-
- nicky@cloudflare.com
74
-
on_success: never
75
-
on_failure: change
51
+
76
52
env:
77
53
global:
78
54
- secure: "OmaaZ3jhU9VQ/0SYpenUJEfnmKy/MwExkefFRpDbkRSu/hTQpxxALAZV5WEHo7gxLRMRI0pytLo7w+lAd2FlX1CNcyY62MUicta/8P2twsxp+lR3v1bJ7dwk6qsDbO7Nvv3BKPCDQCHUkggbAEJaHEQGdLk4ursNEB1aGimuCEc="
79
-
- GO15VENDOREXPERIMENT=1
55
+
- GO111MODULE=on
80
56
matrix:
81
57
- BUILD_TAGS="postgresql mysql"
82
58
83
59
after_success:
84
-
- bash <(curl -s https://codecov.io/bash) -f coverprofile.txt
60
+
- bash <(curl -s https://codecov.io/bash)
Original file line number Diff line number Diff line change
@@ -1,16 +1,12 @@
1
-
FROM golang:1.12.7
1
+
FROM golang:1.13.3@sha256:6a693fbaba7dd8d816f6afce049fb92b280c588e0a677c4c8db26645e613fc15
2
2
3
-
ENV USER root
3
+
WORKDIR /workdir
4
+
COPY . /workdir
4
5
5
-
WORKDIR /go/src/github.com/cloudflare/cfssl
6
-
COPY . .
7
-
8
-
# restore all deps and build
9
-
RUN go get github.com/cloudflare/cfssl_trust/... && \
10
-
go get github.com/GeertJohan/go.rice/rice && \
11
-
rice embed-go -i=./cli/serve && \
12
-
cp -R /go/src/github.com/cloudflare/cfssl_trust /etc/cfssl && \
13
-
go install ./cmd/...
6
+
RUN git clone https://github.com/cloudflare/cfssl_trust.git /etc/cfssl && \
7
+
make clean && \
8
+
make bin/rice && ./bin/rice embed-go -i=./cli/serve && \
9
+
make all && cp bin/* /usr/bin/
14
10
15
11
EXPOSE 8888
16
12
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
1
+
FROM golang:1.13.3-alpine3.10@sha256:40278d43a27b6e0563fcc4dd52c991a25741b1a775402aea342ab9a80158e69e as builder
2
+
3
+
WORKDIR /workdir
4
+
COPY . /workdir
5
+
6
+
RUN set -x && \
7
+
apk --no-cache add git gcc libc-dev make
8
+
9
+
RUN git clone https://github.com/cloudflare/cfssl_trust.git /etc/cfssl && \
10
+
make clean && \
11
+
make bin/rice && ./bin/rice embed-go -i=./cli/serve && \
12
+
make all
13
+
14
+
FROM alpine:3.10
15
+
COPY --from=builder /etc/cfssl /etc/cfssl
16
+
COPY --from=builder /workdir/bin/ /usr/bin
17
+
18
+
EXPOSE 8888
19
+
20
+
ENTRYPOINT ["cfssl"]
21
+
CMD ["--help"]
You can’t perform that action at this time.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4