Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/projectkeas/.template-service

Easily bootstrap a new service by using this template
https://github.com/projectkeas/.template-service

keas

Last synced: about 1 month ago
JSON representation

Easily bootstrap a new service by using this template

Awesome Lists containing this project

README

        

# 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:

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

to:

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