Browse Source

Bring makefiles into this

also have dockerfiles not re-dep
pull/1/head
Amelia A 8 months ago
parent
commit
2fdbcbf8c8
Signed by: amy GPG Key ID: 98E879BC3B6E1BF8
4 changed files with 32 additions and 2 deletions
  1. +1
    -0
      .gitignore
  2. +0
    -1
      Dockerfile
  3. +31
    -0
      Makefile
  4. +0
    -1
      localcards.dockerfile

+ 1
- 0
.gitignore View File

@ -1,2 +1,3 @@
bin/
data/
*.zip

+ 0
- 1
Dockerfile View File

@ -3,7 +3,6 @@ FROM golang:1.14 as builder
WORKDIR /go/src/app
COPY . .
RUN go get -d -v ./...
ARG CGO_ENABLED=0
RUN go install -v ./...


+ 31
- 0
Makefile View File

@ -0,0 +1,31 @@
IMAGE=skwrl/silicon-dawn:latest
BIN=./bin/silicon-dawn
all: update test docker-run
update:
go get -u ./...
go mod tidy
go vendor
test:
go test ./...
build:
docker build -f localcards.dockerfile -t $(IMAGE) .
run: docker-build
docker run -p 8080:3200 --name Make-Dawn $(IMAGE)
push:
docker push $(IMAGE)
local-build: $(BIN)
go build -v -o $(BIN)
local: local-build
$(BIN) serve
download: local-build
$(BIN) get

+ 0
- 1
localcards.dockerfile View File

@ -3,7 +3,6 @@ FROM golang:1.14 as builder
WORKDIR /go/src/app
COPY . .
RUN go get -d -v ./...
ARG CGO_ENABLED=0
RUN go install -v ./...


Loading…
Cancel
Save