Skip to content
Snippets Groups Projects
Commit b6c3be27 authored by Yordan Kinkov's avatar Yordan Kinkov
Browse files

Merge branch 'migrate-vereign-to-gaiax-gitlab' into 'main'

Migrate vereign to gaiax gitlab

See merge request gaiax/tsa-migrate/task!1
parents 06d59b45 008b2d08
No related branches found
Tags v1.1.0
No related merge requests found
Pipeline #53935 passed with stages
in 1 minute and 8 seconds
Showing
with 64 additions and 54 deletions
......@@ -24,8 +24,8 @@ lint:
- golangci-lint --version
- golangci-lint run
before_script:
- ln -s /builds /go/src/code.vereign.com
- cd /go/src/code.vereign.com/${CI_PROJECT_PATH}
- ln -s /builds /go/src/gitlab.com
- cd /go/src/gitlab.com/${CI_PROJECT_PATH}
unit tests:
image: golang:1.17.7
......
......@@ -2,8 +2,8 @@ stages:
- test
before_script:
- ln -s /builds /go/src/code.vereign.com
- cd /go/src/code.vereign.com/${CI_PROJECT_PATH}
- ln -s /builds /go/src/gitlab.com
- cd /go/src/gitlab.com/${CI_PROJECT_PATH}
lint:
image: golangci/golangci-lint:v1.44.2
......
[![pipeline status](https://code.vereign.com/gaiax/tsa/task/badges/main/pipeline.svg)](https://code.vereign.com/gaiax/tsa/task/-/commits/main)
[![coverage report](https://code.vereign.com/gaiax/tsa/task/badges/main/coverage.svg)](https://code.vereign.com/gaiax/tsa/task/-/commits/main)
[![pipeline status](https://gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/task/badges/main/pipeline.svg)](https://gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/task/-/commits/main)
[![coverage report](https://gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/task/badges/main/coverage.svg)](https://gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/task/-/commits/main)
# Task Service
......
......@@ -19,25 +19,25 @@ import (
goa "goa.design/goa/v3/pkg"
"golang.org/x/sync/errgroup"
"code.vereign.com/gaiax/tsa/golib/graceful"
goahealth "code.vereign.com/gaiax/tsa/task/gen/health"
goahealthsrv "code.vereign.com/gaiax/tsa/task/gen/http/health/server"
goaopenapisrv "code.vereign.com/gaiax/tsa/task/gen/http/openapi/server"
goatasksrv "code.vereign.com/gaiax/tsa/task/gen/http/task/server"
goatasklistsrv "code.vereign.com/gaiax/tsa/task/gen/http/task_list/server"
"code.vereign.com/gaiax/tsa/task/gen/openapi"
goatask "code.vereign.com/gaiax/tsa/task/gen/task"
goatasklist "code.vereign.com/gaiax/tsa/task/gen/task_list"
"code.vereign.com/gaiax/tsa/task/internal/clients/cache"
"code.vereign.com/gaiax/tsa/task/internal/clients/policy"
"code.vereign.com/gaiax/tsa/task/internal/config"
"code.vereign.com/gaiax/tsa/task/internal/executor"
"code.vereign.com/gaiax/tsa/task/internal/listexecutor"
"code.vereign.com/gaiax/tsa/task/internal/service"
"code.vereign.com/gaiax/tsa/task/internal/service/health"
"code.vereign.com/gaiax/tsa/task/internal/service/task"
"code.vereign.com/gaiax/tsa/task/internal/service/tasklist"
"code.vereign.com/gaiax/tsa/task/internal/storage"
"gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/golib/graceful"
goahealth "gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/task/gen/health"
goahealthsrv "gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/task/gen/http/health/server"
goaopenapisrv "gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/task/gen/http/openapi/server"
goatasksrv "gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/task/gen/http/task/server"
goatasklistsrv "gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/task/gen/http/task_list/server"
"gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/task/gen/openapi"
goatask "gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/task/gen/task"
goatasklist "gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/task/gen/task_list"
"gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/task/internal/clients/cache"
"gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/task/internal/clients/policy"
"gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/task/internal/config"
"gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/task/internal/executor"
"gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/task/internal/listexecutor"
"gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/task/internal/service"
"gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/task/internal/service/health"
"gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/task/internal/service/task"
"gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/task/internal/service/tasklist"
"gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/task/internal/storage"
)
var Version = "0.0.0+development"
......
FROM golang:1.17.8-alpine3.15 as builder
ENV GOPRIVATE=code.vereign.com
FROM golang:1.19-alpine3.15 as builder
RUN apk add git
WORKDIR /go/src/code.vereign.com/gaiax/tsa/task
WORKDIR /go/src/gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/task
ADD . .
......
FROM golang:1.17.8
FROM golang:1.19
ENV GO111MODULE=on
ENV GOPRIVATE=code.vereign.com
RUN go install github.com/canthefason/go-watcher/cmd/watcher@v0.2.4
ADD . /go/src/code.vereign.com/gaiax/tsa/task
ADD . /go/src/gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/task
WORKDIR /go/src/code.vereign.com/gaiax/tsa/task
WORKDIR /go/src/gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/task
RUN go install -mod=vendor ./cmd/task/...
EXPOSE 8080
ENTRYPOINT ["sh", "-c", "/go/bin/watcher -run code.vereign.com/gaiax/tsa/task/cmd/task -watch code.vereign.com/gaiax/tsa/task"]
\ No newline at end of file
ENTRYPOINT ["sh", "-c", "/go/bin/watcher -run gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/task/cmd/task -watch gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/task"]
\ No newline at end of file
......@@ -3,7 +3,8 @@
// health client
//
// Command:
// $ goa gen code.vereign.com/gaiax/tsa/task/design
// $ goa gen
// gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/task/design
package health
......
......@@ -3,7 +3,8 @@
// health endpoints
//
// Command:
// $ goa gen code.vereign.com/gaiax/tsa/task/design
// $ goa gen
// gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/task/design
package health
......
......@@ -3,7 +3,8 @@
// health service
//
// Command:
// $ goa gen code.vereign.com/gaiax/tsa/task/design
// $ goa gen
// gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/task/design
package health
......
......@@ -3,7 +3,8 @@
// task HTTP client CLI support package
//
// Command:
// $ goa gen code.vereign.com/gaiax/tsa/task/design
// $ goa gen
// gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/task/design
package cli
......@@ -13,17 +14,16 @@ import (
"net/http"
"os"
healthc "code.vereign.com/gaiax/tsa/task/gen/http/health/client"
taskc "code.vereign.com/gaiax/tsa/task/gen/http/task/client"
tasklistc "code.vereign.com/gaiax/tsa/task/gen/http/task_list/client"
healthc "gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/task/gen/http/health/client"
taskc "gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/task/gen/http/task/client"
tasklistc "gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/task/gen/http/task_list/client"
goahttp "goa.design/goa/v3/http"
goa "goa.design/goa/v3/pkg"
)
// UsageCommands returns the set of commands and sub-commands using the format
//
// command (subcommand1|subcommand2|...)
//
// command (subcommand1|subcommand2|...)
func UsageCommands() string {
return `health (liveness|readiness)
task (create|task-result)
......
......@@ -3,6 +3,7 @@
// health HTTP client CLI support package
//
// Command:
// $ goa gen code.vereign.com/gaiax/tsa/task/design
// $ goa gen
// gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/task/design
package client
......@@ -3,7 +3,8 @@
// health client HTTP transport
//
// Command:
// $ goa gen code.vereign.com/gaiax/tsa/task/design
// $ goa gen
// gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/task/design
package client
......
......@@ -3,7 +3,8 @@
// health HTTP client encoders and decoders
//
// Command:
// $ goa gen code.vereign.com/gaiax/tsa/task/design
// $ goa gen
// gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/task/design
package client
......
......@@ -3,7 +3,8 @@
// HTTP request path constructors for the health service.
//
// Command:
// $ goa gen code.vereign.com/gaiax/tsa/task/design
// $ goa gen
// gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/task/design
package client
......
......@@ -3,6 +3,7 @@
// health HTTP client types
//
// Command:
// $ goa gen code.vereign.com/gaiax/tsa/task/design
// $ goa gen
// gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/task/design
package client
......@@ -3,7 +3,8 @@
// health HTTP server encoders and decoders
//
// Command:
// $ goa gen code.vereign.com/gaiax/tsa/task/design
// $ goa gen
// gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/task/design
package server
......
......@@ -3,7 +3,8 @@
// HTTP request path constructors for the health service.
//
// Command:
// $ goa gen code.vereign.com/gaiax/tsa/task/design
// $ goa gen
// gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/task/design
package server
......
......@@ -3,7 +3,8 @@
// health HTTP server
//
// Command:
// $ goa gen code.vereign.com/gaiax/tsa/task/design
// $ goa gen
// gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/task/design
package server
......@@ -11,7 +12,7 @@ import (
"context"
"net/http"
health "code.vereign.com/gaiax/tsa/task/gen/health"
health "gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/task/gen/health"
goahttp "goa.design/goa/v3/http"
goa "goa.design/goa/v3/pkg"
)
......
......@@ -3,6 +3,7 @@
// health HTTP server types
//
// Command:
// $ goa gen code.vereign.com/gaiax/tsa/task/design
// $ goa gen
// gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/task/design
package server
......@@ -3,7 +3,8 @@
// openapi client HTTP transport
//
// Command:
// $ goa gen code.vereign.com/gaiax/tsa/task/design
// $ goa gen
// gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/task/design
package client
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment