Skip to content

Commit 881e9fd

Browse files
Voucher 🔒☁️
0 parents  commit 881e9fd

File tree

8,384 files changed

+4727177
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

8,384 files changed

+4727177
-0
lines changed

.gitignore

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Binaries for programs and plugins
2+
*.exe
3+
*.exe~
4+
*.dll
5+
*.so
6+
*.dylib
7+
8+
# Test binary, build with `go test -c`
9+
*.test
10+
11+
# Output of the go coverage tool, specifically when used with LiteIDE
12+
*.out
13+
14+
hack/*
15+
voucher_cli
16+
voucher_server
17+
voucher_cli_unix
18+
voucher_server_unix
19+
vendor/cloud.google.com/go/devtools/containeranalysis
20+
vendor/google.golang.org/genproto/googleapis/devtools/containeranalysis/

CONTRIBUTORS.md

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
Voucher contributors
2+
============================================
3+
4+
## From Shopify
5+
* **[Catherine Jones](https://github.com/catherinejones)**
6+
* **[Owen Craston](https://github.com/owencraston)**
7+
* **[Felix Glaser](https://github.com/klautcomputing)**
8+
* **[Fedor Lisovskiy](https://github.com/fedorlis)**
9+
10+
## No one else yet :)

Dockerfile

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Builder
2+
FROM golang:1.10-alpine as builder
3+
4+
LABEL maintainer "klautcomputing"
5+
WORKDIR /go/src/github.com/Shopify/voucher
6+
COPY . .
7+
RUN apk update \
8+
&& apk add git \
9+
&& apk add make \
10+
&& make all
11+
12+
# Final build
13+
FROM google/cloud-sdk:alpine
14+
15+
COPY --from=builder /go/src/github.com/Shopify/voucher/voucher_server_unix /usr/local/bin/voucher_server
16+
COPY --from=builder /go/src/github.com/Shopify/voucher/entrypoint.sh /usr/local/entrypoint.sh
17+
COPY --from=builder /go/src/github.com/Shopify/voucher/config/config.toml /etc/voucher/config.toml
18+
COPY config/secrets.production.ejson /etc/voucher/secrets.production.ejson
19+
20+
RUN addgroup -S -g 10000 voucher && \
21+
adduser -S -u 10000 -G voucher voucher
22+
23+
USER 10000:10000
24+
25+
ENTRYPOINT ["/usr/local/entrypoint.sh"]

0 commit comments

Comments
 (0)