A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/cloudflare/cfssl/commit/ee731906980f0e89d124b8e56384733a1c6ed588 below:

Migrate to Go modules · cloudflare/cfssl@ee73190 · GitHub

Expand file treeCollapse file tree 251 files changed

+9778

-120475

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,7 +3,8 @@ language: go

3 3 4 4

matrix:

5 5

include:

6 -

- go: 1.12.7

6 +

- go: 1.12.x

7 +

- go: 1.13.x

7 8

- go: master

8 9

os: osx

9 10

env: BUILD_TAGS=

@@ -24,14 +25,6 @@ install:

24 25

services:

25 26

- mysql

26 27

- 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 28 36 29

# Only build pull requests, pushes to the master branch, and branches

37 30

# starting with `test-`. This is a convenient way to push branches to

@@ -44,41 +37,29 @@ branches:

44 37

- /^test-.*$/

45 38 46 39

before_script:

47 -

- go install ./vendor/golang.org/x/lint/golint

48 -

- go install ./vendor/github.com/GeertJohan/fgt

40 +

- make bin/golint

49 41

# Setup DBs + run migrations

50 -

- go install ./vendor/bitbucket.org/liamstask/goose/cmd/goose

51 42

# 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 43

# > The NO_ZERO_DATE mode affects whether the server permits '0000-00-00' as a valid date.

53 44

# https://dev.mysql.com/doc/refman/5.7/en/sql-mode.html#sqlmode_no_zero_date

54 45

- if [[ $(uname -s) == 'Linux' ]]; then

46 +

make bin/goose;

55 47

psql -c 'create database certdb_development;' -U postgres;

56 -

goose -path $GOPATH/src/github.com/cloudflare/cfssl/certdb/pg up;

48 +

./bin/goose -path certdb/pg up;

57 49

mysql -e 'create database certdb_development;' -u root;

58 50

mysql -e 'SET global sql_mode = 0;' -u root;

59 -

goose -path $GOPATH/src/github.com/cloudflare/cfssl/certdb/mysql up;

51 +

./bin/goose -path certdb/mysql up;

60 52

fi

53 + 61 54

script:

62 55

- ./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

56 + 76 57

env:

77 58

global:

78 59

- secure: "OmaaZ3jhU9VQ/0SYpenUJEfnmKy/MwExkefFRpDbkRSu/hTQpxxALAZV5WEHo7gxLRMRI0pytLo7w+lAd2FlX1CNcyY62MUicta/8P2twsxp+lR3v1bJ7dwk6qsDbO7Nvv3BKPCDQCHUkggbAEJaHEQGdLk4ursNEB1aGimuCEc="

79 -

- GO15VENDOREXPERIMENT=1

60 +

- GO111MODULE=on

80 61

matrix:

81 62

- BUILD_TAGS="postgresql mysql"

82 63 83 64

after_success:

84 -

- bash <(curl -s https://codecov.io/bash) -f coverprofile.txt

65 +

- 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