Skip to content

Commit 5d769cb

Browse files
author
Tenyo Grozev
committed
Initial Commit
0 parents  commit 5d769cb

17 files changed

+1025
-0
lines changed

.buffalo.dev.yml

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
app_root: .
2+
ignored_folders:
3+
- vendor
4+
- log
5+
- logs
6+
- assets
7+
- public
8+
- grifts
9+
- tmp
10+
- bin
11+
- node_modules
12+
- .sass-cache
13+
included_extensions:
14+
- .go
15+
- .env
16+
build_path: tmp
17+
build_delay: 200ns
18+
binary_name: rds-api-build
19+
command_flags: []
20+
enable_colors: true
21+
log_name: buffalo

.codeclimate.yml

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
engines:
2+
fixme:
3+
enabled: true
4+
gofmt:
5+
enabled: true
6+
golint:
7+
enabled: true
8+
govet:
9+
enabled: true
10+
exclude_paths:
11+
- grifts/**/*
12+
- "**/*_test.go"
13+
- "*_test.go"
14+
- "**_test.go"
15+
- logs/*
16+
- public/*
17+
- templates/*
18+
ratings:
19+
paths:
20+
- "**.go"

.dockerignore

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
node_modules/
2+
*.log
3+
bin/

.gitignore

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
vendor/
2+
**/*.log
3+
**/*.sqlite
4+
.idea/
5+
bin/
6+
tmp/
7+
node_modules/
8+
.sass-cache/
9+
*-packr.go
10+
public/assets/
11+
rds_api
12+
.vscode/
13+
.grifter/
14+
.env

Dockerfile

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# This is a multi-stage Dockerfile and requires >= Docker 17.05
2+
# https://docs.docker.com/engine/userguide/eng-image/multistage-build/
3+
FROM gobuffalo/buffalo:v0.12.7 as builder
4+
5+
RUN mkdir -p $GOPATH/src/github.com/YaleSpinup/rds_api
6+
WORKDIR $GOPATH/src/github.com/YaleSpinup/rds_api
7+
8+
ADD . .
9+
RUN dep ensure
10+
RUN buffalo build --static -o /bin/app
11+
12+
FROM alpine
13+
RUN apk add --no-cache bash
14+
RUN apk add --no-cache ca-certificates
15+
16+
WORKDIR /bin/
17+
18+
COPY --from=builder /bin/app .
19+
20+
# Uncomment to run the binary in "production" mode:
21+
# ENV GO_ENV=production
22+
23+
# Bind the app to 0.0.0.0 so it can be seen from outside the container
24+
ENV ADDR=0.0.0.0
25+
26+
EXPOSE 3000
27+
28+
# Uncomment to run the migrations before running the binary:
29+
# CMD /bin/app migrate; /bin/app
30+
CMD exec /bin/app

0 commit comments

Comments
 (0)