Skip to content

Commit

Permalink
0.0.84
Browse files Browse the repository at this point in the history
- Updated Dockerfile to use gobuilder version 0.0.5
- Added gitignore
- Added VERSION file
  • Loading branch information
shammishailaj committed Jun 14, 2022
1 parent 24f7474 commit b224cf6
Show file tree
Hide file tree
Showing 6 changed files with 43 additions and 4 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.0.83-build-8
0.0.84
6 changes: 4 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,11 @@ func createStructure(app *application) {
Box: packr.New("tplBox", "./templates"),
App: app,
Files: map[string]string{
fmt.Sprintf("%s%s", app.Path, "go.mod"): "go.mod.tmpl",
//fmt.Sprintf("%s%s", app.Path, "go.mod"): "go.mod.tmpl",
fmt.Sprintf("%s%s", app.Path, "Makefile"): "Makefile.tmpl",
fmt.Sprintf("%s%s", app.Path, "README.md"): "README.md.tmpl",
fmt.Sprintf("%s%s", app.Path, "VERSION"): "VERSION.tmpl",
fmt.Sprintf("%s%s", app.Path, ".gitignore"): "gitignore.tmpl",
},
Directories: make([]*dir, 0),
}
Expand Down Expand Up @@ -204,7 +206,7 @@ func main() {
version bool
)

const VERSION = "0.0.71"
const VERSION = "0.0.84"

flag.BoolVar(&version, "version", false, "Prints version and exits")
flag.StringVar(&pathToApp, "path", "", "Specify absolute path to app")
Expand Down
2 changes: 1 addition & 1 deletion templates/Dockerfile.tmpl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM shammishailaj/gobuilder:0.0.3 AS builder
FROM shammishailaj/gobuilder:0.0.5 AS builder

ARG CGO
ARG OS
Expand Down
14 changes: 14 additions & 0 deletions templates/README.md.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -61,3 +61,17 @@ The default app can be run/built using the following `make` targets.
---

- {{.Name}} CLI and Web server


#### How to run

```
go mod init app_name
go mod tidy
go mod vendor
git add .gitignore
git commit -m"Initial commit #1 Ignoring files"
git add .
git commit -m"Initial commit #2 Adding everything"
make run
```
1 change: 1 addition & 0 deletions templates/VERSION.tmpl
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0.0.0
22 changes: 22 additions & 0 deletions templates/gitignore.tmpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Binaries for programs and plugins
*.exe
*.exe~
*.dll
*.so
*.dylib

# Test binary, built with `go test -c`
*.test

# Output of the go coverage tool, specifically when used with LiteIDE
*.out

# Dependency directories (remove the comment below to include it)
# vendor/

.idea
.idea/*
packrd
*packr.go
dist/
bin/

0 comments on commit b224cf6

Please sign in to comment.