Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/projectkeas/.template-service
- Owner: projectkeas
- License: mit
- Created: 2022-05-09T20:01:06.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-06-30T21:29:22.000Z (6 months ago)
- Last Synced: 2024-07-04T21:35:27.908Z (6 months ago)
- Topics: keas
- Language: Go
- Homepage:
- Size: 89.8 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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" ]
```