Skip to content

Easily bootstrap a new service by using this template

License

Notifications You must be signed in to change notification settings

projectkeas/.template-service

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Service Template

Checklist

  • Replace .template-service in go.mod
  • Replace appName in ./.github/workflows/PR-Build.yml
  • Replace appName in ./.github/workflows/Release-Published.yml
  • Replace appName in ./app.go
  • Replace app in ./Dockerfile (see below)

Dockerfile changes

If the app you are building is going to be called connector, the Dockerfile needs to change from:

FROM gcr.io/distroless/static
ARG TARGETOS
ARG TARGETARCH
WORKDIR /app
COPY ./app-${TARGETOS}-${TARGETARCH} /app/app
ENTRYPOINT [ "/app/app" ]

to:

FROM gcr.io/distroless/static
ARG TARGETOS
ARG TARGETARCH
WORKDIR /app
COPY ./connector-${TARGETOS}-${TARGETARCH} /app/connector
ENTRYPOINT [ "/app/connector" ]

About

Easily bootstrap a new service by using this template

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Contributors 4

  •  
  •  
  •  
  •