Skip to content

Commit

Permalink
readme, docker
Browse files Browse the repository at this point in the history
  • Loading branch information
mnvx committed Aug 13, 2020
1 parent cfb22cd commit c86ee40
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
## Features

- [x] Framework for API: Gin
- [x] Package manager: Govendor
- [x] Package manager: go mod
- [x] DI: Based on service container
- [x] Layers: Controller->Service->Repository->Entity
- [x] Routes: Gin
Expand Down Expand Up @@ -144,7 +144,7 @@ mcedit .env
### Download vendor packages

```bash
govendor sync
go mod download
```


Expand Down
8 changes: 4 additions & 4 deletions docker/go/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@ FROM golang:1.12.5

WORKDIR /go/src/go-api-boilerplate

RUN go get github.com/kardianos/govendor \
github.com/go-swagger/go-swagger/cmd/swagger \
RUN go get github.com/go-swagger/go-swagger/cmd/swagger \
github.com/Altoros/gorm-goose/cmd/gorm-goose

COPY ./docker/go/entrypoint.sh ./docker/wait-for-it.sh /root/
RUN chmod 755 /root/entrypoint.sh /root/wait-for-it.sh

COPY vendor/vendor.json vendor/vendor.json
RUN govendor sync
COPY go.mod .
COPY go.sum .
RUN go mod download

# Project files
COPY . .
Expand Down
3 changes: 1 addition & 2 deletions install/install.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#!/bin/bash

go get github.com/kardianos/govendor \
github.com/go-swagger/go-swagger/cmd/swagger \
go get github.com/go-swagger/go-swagger/cmd/swagger \
github.com/Altoros/gorm-goose/cmd/gorm-goose \
github.com/codegangsta/gin

0 comments on commit c86ee40

Please sign in to comment.