Skip to content

Commit

Permalink
Chore: cleanup unused workers, set all alpine images, add cache
Browse files Browse the repository at this point in the history
  • Loading branch information
TimVosch committed May 22, 2024
1 parent 203f3a1 commit e78ce4f
Show file tree
Hide file tree
Showing 18 changed files with 12 additions and 551 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/build-docker-images.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,7 @@ jobs:
uses: docker/build-push-action@v5
with:
context: .
file: services/core/Dockerfile
target: builder
file: Dockerfile.cache
push: true
platforms: linux/amd64,linux/arm64
tags: ${{ env.BUILDCACHE_TAG }}
Expand Down
6 changes: 6 additions & 0 deletions Dockerfile.cache
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
FROM golang:1.21-alpine
WORKDIR /sensorbucket

COPY go.mod .
COPY go.sum .
RUN go mod download
2 changes: 1 addition & 1 deletion services/core/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.21 AS builder
FROM golang:1.21-alpine AS builder
WORKDIR /sensorbucket

COPY go.mod .
Expand Down
2 changes: 1 addition & 1 deletion services/fission-rmq-connector/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.21 AS builder
FROM golang:1.21-alpine AS builder
WORKDIR /sensorbucket

COPY go.mod .
Expand Down
2 changes: 1 addition & 1 deletion services/fission-user-workers/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.21 AS builder
FROM golang:1.21-alpine AS builder
WORKDIR /sensorbucket

COPY go.mod .
Expand Down
2 changes: 1 addition & 1 deletion services/httpimporter/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.21 AS builder
FROM golang:1.21-alpine AS builder
WORKDIR /sensorbucket

COPY go.mod .
Expand Down
12 changes: 0 additions & 12 deletions services/tenants/transports/webui/routes/api-keys.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import (
"fmt"
"log"
"net/http"
"net/url"
"strconv"
"time"

Expand Down Expand Up @@ -419,14 +418,3 @@ func toViewTenants(tenants []tenants.CreateTenantDTO) []views.TenantInfo {
}
return viewTenants
}

func getCursor(next string) string {
if next == "" {
return ""
}
u, err := url.Parse(next)
if err != nil {
return ""
}
return u.Query().Get("cursor")
}
61 changes: 0 additions & 61 deletions services/tenants/transports/webui/static/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -582,10 +582,6 @@ video {
z-index: 10;
}

.z-\[5000\] {
z-index: 5000;
}

.col-span-full {
grid-column: 1 / -1;
}
Expand Down Expand Up @@ -1212,11 +1208,6 @@ video {
padding-bottom: 0.25rem;
}

.py-1\.5 {
padding-top: 0.375rem;
padding-bottom: 0.375rem;
}

.py-2 {
padding-top: 0.5rem;
padding-bottom: 0.5rem;
Expand Down Expand Up @@ -1532,59 +1523,7 @@ video {
}

@media (min-width: 1024px) {
.lg\:ml-sidebar {
margin-left: 16rem;
}

.lg\:mt-0 {
margin-top: 0px;
}

.lg\:block {
display: block;
}

.lg\:hidden {
display: none;
}

.lg\:h-auto {
height: auto;
}

.lg\:h-header {
height: 4rem;
}

.lg\:h-screen {
height: 100vh;
}

.lg\:w-sidebar {
width: 16rem;
}

.lg\:grid-cols-1 {
grid-template-columns: repeat(1, minmax(0, 1fr));
}

.lg\:flex-col {
flex-direction: column;
}

.lg\:justify-end {
justify-content: flex-end;
}

.lg\:p-0 {
padding: 0px;
}

.lg\:pl-8 {
padding-left: 2rem;
}

.lg\:pr-12 {
padding-right: 3rem;
}
}
2 changes: 1 addition & 1 deletion services/tracing/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.21 AS builder
FROM golang:1.21-alpine AS builder
WORKDIR /sensorbucket

COPY go.mod .
Expand Down
13 changes: 0 additions & 13 deletions workers/multiflexmeter-groundwater-level/Dockerfile

This file was deleted.

65 changes: 0 additions & 65 deletions workers/multiflexmeter-groundwater-level/main.go

This file was deleted.

12 changes: 0 additions & 12 deletions workers/multiflexmeter-particulatematter/Dockerfile

This file was deleted.

32 changes: 0 additions & 32 deletions workers/multiflexmeter-particulatematter/main.go

This file was deleted.

12 changes: 0 additions & 12 deletions workers/pzld-sensorbox/Dockerfile

This file was deleted.

Loading

0 comments on commit e78ce4f

Please sign in to comment.