Skip to content
Snippets Groups Projects
Commit d6eece1e authored by Lyuben Penkovski's avatar Lyuben Penkovski
Browse files

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

Migrate code.vereign.com paths to gaiax gitlab paths

See merge request gaiax/tsa-migrate/workspace!1
parents fcc7dd5c 37774c87
No related branches found
No related tags found
No related merge requests found
.DS_Store .DS_Store
.idea/ .idea/
volumes/ volumes/
vault/vault-cluster-vault+.json vault/vault-cluster-vault+.json
\ No newline at end of file
...@@ -14,18 +14,18 @@ with environment variables which will be injected in its container. ...@@ -14,18 +14,18 @@ with environment variables which will be injected in its container.
## Setup ## Setup
Clone the workspace repository into `$GOPATH/src/code.vereign.com/gaiax/tsa/workspace`. Using GOPATH is important Clone the workspace repository into `$GOPATH/src/gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/workspace`.
because it's the way the workspace will know where to find you Go source code. Using GOPATH is important because it's the way the workspace will know where to find you Go source code.
```sh ```sh
# create the backend directory where the workspace will be checked out # create the backend directory where the workspace will be checked out
mkdir -p $GOPATH/src/code.vereign.com/gaiax/tsa/workspace mkdir -p $GOPATH/src/gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/workspace
# change to the created directory # change to the created directory
cd $GOPATH/src/code.vereign.com/gaiax/tsa/workspace cd $GOPATH/src/gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/workspace
# clone the workspace repo # clone the workspace repo
git clone git@code.vereign.com:gaiax/tsa/workspace.git . git clone git@gitlab.com:gaia-x/data-infrastructure-federation-services/tsa/workspace.git .
``` ```
### Checkout services repos ### Checkout services repos
...@@ -134,7 +134,6 @@ Setting Vault __(only for local env)__: ...@@ -134,7 +134,6 @@ Setting Vault __(only for local env)__:
1. For "Type" use one of the options in [signer.env](./env/signer.env) for VAULT_SUPPORTED_KEYS 1. For "Type" use one of the options in [signer.env](./env/signer.env) for VAULT_SUPPORTED_KEYS
1. Click "Create encryption key" 1. Click "Create encryption key"
## License ### License
<hr/>
[Apache 2.0 license](LICENSE) [Apache 2.0 license](LICENSE)
...@@ -19,10 +19,10 @@ services: ...@@ -19,10 +19,10 @@ services:
policy: policy:
container_name: policy container_name: policy
build: build:
context: $GOPATH/src/code.vereign.com/gaiax/tsa/policy context: $GOPATH/src/gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/policy
dockerfile: deployment/compose/Dockerfile dockerfile: deployment/compose/Dockerfile
volumes: volumes:
- "$GOPATH/src/code.vereign.com/gaiax/tsa/policy:/go/src/code.vereign.com/gaiax/tsa/policy" - "$GOPATH/src/gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/policy:/go/src/gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/policy"
env_file: env_file:
- ./env/policy.env - ./env/policy.env
ports: ports:
...@@ -36,10 +36,10 @@ services: ...@@ -36,10 +36,10 @@ services:
task: task:
container_name: task container_name: task
build: build:
context: $GOPATH/src/code.vereign.com/gaiax/tsa/task context: $GOPATH/src/gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/task
dockerfile: deployment/compose/Dockerfile dockerfile: deployment/compose/Dockerfile
volumes: volumes:
- "$GOPATH/src/code.vereign.com/gaiax/tsa/task:/go/src/code.vereign.com/gaiax/tsa/task" - "$GOPATH/src/gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/task:/go/src/gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/task"
env_file: env_file:
- ./env/task.env - ./env/task.env
ports: ports:
...@@ -51,10 +51,10 @@ services: ...@@ -51,10 +51,10 @@ services:
cache: cache:
container_name: cache container_name: cache
build: build:
context: $GOPATH/src/code.vereign.com/gaiax/tsa/cache context: $GOPATH/src/gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/cache
dockerfile: deployment/compose/Dockerfile dockerfile: deployment/compose/Dockerfile
volumes: volumes:
- "$GOPATH/src/code.vereign.com/gaiax/tsa/cache:/go/src/code.vereign.com/gaiax/tsa/cache" - "$GOPATH/src/gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/cache:/go/src/gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/cache"
env_file: env_file:
- ./env/cache.env - ./env/cache.env
ports: ports:
...@@ -66,10 +66,10 @@ services: ...@@ -66,10 +66,10 @@ services:
infohub: infohub:
container_name: infohub container_name: infohub
build: build:
context: $GOPATH/src/code.vereign.com/gaiax/tsa/infohub context: $GOPATH/src/gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/infohub
dockerfile: deployment/compose/Dockerfile dockerfile: deployment/compose/Dockerfile
volumes: volumes:
- "$GOPATH/src/code.vereign.com/gaiax/tsa/infohub:/go/src/code.vereign.com/gaiax/tsa/infohub" - "$GOPATH/src/gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/infohub:/go/src/gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/infohub"
env_file: env_file:
- ./env/infohub.env - ./env/infohub.env
ports: ports:
...@@ -82,10 +82,10 @@ services: ...@@ -82,10 +82,10 @@ services:
signer: signer:
container_name: signer container_name: signer
build: build:
context: $GOPATH/src/code.vereign.com/gaiax/tsa/signer context: $GOPATH/src/gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/signer
dockerfile: deployment/compose/Dockerfile dockerfile: deployment/compose/Dockerfile
volumes: volumes:
- "$GOPATH/src/code.vereign.com/gaiax/tsa/signer:/go/src/code.vereign.com/gaiax/tsa/signer" - "$GOPATH/src/gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/signer:/go/src/gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/signer"
env_file: env_file:
- ./env/signer.env - ./env/signer.env
ports: ports:
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
# environment, the email of the git repos will be set to an empty value. # environment, the email of the git repos will be set to an empty value.
# For best experience, set the variable in your .bashrc, .zshrc, etc. # For best experience, set the variable in your .bashrc, .zshrc, etc.
# #
# export email="lyuben.penkovski@vereign.com" # export email="myemail@company.com"
# ------------ # ------------
# pull the main branch of a given git repository. # pull the main branch of a given git repository.
...@@ -32,9 +32,9 @@ function pull() { ...@@ -32,9 +32,9 @@ function pull() {
} }
# getServices clones or pulls the services with separate repos # getServices clones or pulls the services with separate repos
# in ${GOPATH}/src/code.vereign.com/gaiax/tsa # in ${GOPATH}/src/gitlab.com/gaia-x/data-infrastructure-federation-services/tsa
function getServices() { function getServices() {
local GAIAX_TSA_DIR="${GOPATH}/src/code.vereign.com/gaiax/tsa" local GAIAX_TSA_DIR="${GOPATH}/src/gitlab.com/gaia-x/data-infrastructure-federation-services/tsa"
mkdir -p "${GAIAX_TSA_DIR}" && cd "$_" mkdir -p "${GAIAX_TSA_DIR}" && cd "$_"
local services=( local services=(
...@@ -56,7 +56,7 @@ function getServices() { ...@@ -56,7 +56,7 @@ function getServices() {
mkdir -p "$GAIAX_TSA_DIR/$repo" && pushd "$GAIAX_TSA_DIR/$repo" mkdir -p "$GAIAX_TSA_DIR/$repo" && pushd "$GAIAX_TSA_DIR/$repo"
echo "Cloning $repo repository to $GAIAX_TSA_DIR/$repo" echo "Cloning $repo repository to $GAIAX_TSA_DIR/$repo"
git clone "ssh://git@code.vereign.com/gaiax/tsa/${repo}.git" . git clone "ssh://git@gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/${repo}.git" .
if [ ! -d "./vendor" ]; then if [ ! -d "./vendor" ]; then
go mod tidy && go mod vendor # download dependencies to vendor go mod tidy && go mod vendor # download dependencies to vendor
fi fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment