Skip to content

Commit

Permalink
refactor(idp): Dockerfile uses binary, remove qodana.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
bouassaba committed Dec 13, 2024
1 parent 88dbb38 commit 219a75f
Show file tree
Hide file tree
Showing 19 changed files with 24 additions and 260 deletions.
3 changes: 0 additions & 3 deletions api/.gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
/.env.local
/voltaserve
/__debug_bin*
/.air
4 changes: 2 additions & 2 deletions api/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@ FROM golang:1.22-alpine AS builder

WORKDIR /build

COPY go.mod go.sum .
COPY go.mod go.sum ./

RUN go mod download

COPY . .

RUN go build -o voltaserve-api

FROM golang:1.22-alpine AS runner
FROM alpine:3.21 AS runner

WORKDIR /app

Expand Down
29 changes: 0 additions & 29 deletions api/qodana.yaml

This file was deleted.

29 changes: 0 additions & 29 deletions console/qodana.yaml

This file was deleted.

4 changes: 0 additions & 4 deletions conversion/.gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1 @@
/.env.local
/voltaserve
__debug_bin*
/*.tsv
/.air
2 changes: 1 addition & 1 deletion conversion/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ FROM golang:1.22-bookworm AS builder

WORKDIR /build

COPY go.mod go.sum .
COPY go.mod go.sum ./

RUN go mod download

Expand Down
29 changes: 0 additions & 29 deletions conversion/qodana.yaml

This file was deleted.

16 changes: 13 additions & 3 deletions idp/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,26 @@
# by the GNU Affero General Public License v3.0 only, included in the file
# AGPL-3.0-only in the root of this repository.

FROM denoland/deno:alpine-2.1.4
FROM denoland/deno:debian-2.1.4 AS builder

WORKDIR /app
WORKDIR /build

COPY src ./src
COPY templates ./templates
COPY .env .
COPY deno.json .
COPY deno.lock .

ENTRYPOINT ["deno", "task", "start"]
RUN deno task compile

FROM debian:bookworm-slim AS runner

WORKDIR /app

COPY --from=builder /build/voltaserve-idp ./voltaserve-idp
COPY --from=builder /build/.env ./.env
COPY --from=builder /build/templates ./templates

ENTRYPOINT ["./voltaserve-idp"]

EXPOSE 8081
2 changes: 1 addition & 1 deletion idp/deno.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"tasks": {
"start": "deno run --allow-read --allow-write --allow-env --allow-sys --allow-net src/app.ts",
"dev": "deno run --allow-read --allow-write --allow-env --allow-sys --allow-net --reload src/app.ts",
"swagger": "deno run --allow-read --allow-write ./swagger.ts"
"compile": "deno compile --allow-read --allow-write --allow-env --allow-sys --allow-net --output voltaserve-idp src/app.ts"
},
"imports": {
"@/": "./src/",
Expand Down
30 changes: 0 additions & 30 deletions idp/qodana.yaml

This file was deleted.

29 changes: 0 additions & 29 deletions language/qodana.yaml

This file was deleted.

4 changes: 0 additions & 4 deletions mosaic/.gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1 @@
/.env.local
/voltaserve
__debug_bin*
/*.tsv
/.air
4 changes: 2 additions & 2 deletions mosaic/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@ FROM golang:1.22-alpine AS builder

WORKDIR /build

COPY go.mod go.sum .
COPY go.mod go.sum ./

RUN go mod download

COPY . .

RUN go build -o voltaserve-mosaic

FROM golang:1.22-alpine AS runner
FROM alpine:3.21 AS runner

WORKDIR /app

Expand Down
29 changes: 0 additions & 29 deletions mosaic/qodana.yaml

This file was deleted.

30 changes: 0 additions & 30 deletions ui/qodana.yaml

This file was deleted.

3 changes: 3 additions & 0 deletions voltaserve.code-workspace
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@
{
"path": "ui",
},
{
"path": ".github",
},
],
"settings": {
"[dockerfile]": {
Expand Down
4 changes: 0 additions & 4 deletions webdav/.gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1 @@
/.env.local
/voltaserve
__debug_bin*
/*.tsv
/.air
4 changes: 2 additions & 2 deletions webdav/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@ FROM golang:1.22-alpine AS builder

WORKDIR /build

COPY go.mod go.sum .
COPY go.mod go.sum ./

RUN go mod download

COPY . .

RUN go build -o voltaserve-webdav

FROM golang:1.22-alpine AS runner
FROM alpine:3.21 AS runner

WORKDIR /app

Expand Down
29 changes: 0 additions & 29 deletions webdav/qodana.yaml

This file was deleted.

0 comments on commit 219a75f

Please sign in to comment.