Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2025-02-17: Add support for private Git repo cloning in libms #1156

Open
wants to merge 9 commits into
base: feature/distributed-demo
Choose a base branch
from
19 changes: 19 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
stages:
- test

test:
stage: test
image: node:14
script:
# Change directory to where the package.json is located.
- cd servers/lib

# Replace the placeholder token in the configuration file.
# Make sure the placeholder in libms.dev.yaml is exactly "YOUR_HTTP_TOKEN_HERE"
- sed -i "s/HTTP_TOKEN/${GITHUB_ACCESS_TOKEN}/g" config/libms.dev.yaml

# Install Node dependencies.
- npm install

# Run your tests.
- npm test
3 changes: 2 additions & 1 deletion client/.prettierrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"tabWidth": 2,
"singleQuote": true,
"trailingComma": "all"
}
}
6 changes: 6 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions servers/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.env
libms.yaml
libms.yml
libms.dev.yaml
libms.dev.yml
3 changes: 2 additions & 1 deletion servers/lib/.prettierrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"tabWidth": 2,
"singleQuote": true,
"trailingComma": "all"
}
}
31 changes: 18 additions & 13 deletions servers/lib/config/libms.dev.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,19 @@
port: '4001'
mode: 'local' #git or local
local-path: '/dtaas/libms/files'
log-level: 'debug'
apollo-path: '/lib'
graphql-playground: 'true'
port: "4001"
mode: "local" #git or local
local-path: "/dtaas/libms/files"
log-level: "debug"
apollo-path: "/lib"
graphql-playground: "true"

git-repos: #only used in git mode
- user1:
repo-url: 'https://gitlab.com/dtaas/user1.git'
- user2:
repo-url: 'https://gitlab.com/dtaas/user2.git'
- common:
repo-url: 'https://gitlab.com/dtaas/common.git'
git-options:
force: false
skip-existing: true

git-repos: #only used in git mode
- user1:
repo-url: "https://github.com/UselessDross/dtaasAttempt2.git" # Is this supposd to be the private repo?
http-token: "${TEST_GIT_TOKEN}" # line added 2025-02-07 by Bachelor student.
- user2:
repo-url: "https://gitlab.com/dtaas/user2.git"
- common:
repo-url: "https://gitlab.com/dtaas/common.git"
15 changes: 15 additions & 0 deletions servers/lib/libms.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
port: "4001"
mode: "git" #git or local
local-path: "C:/Education/Bachelor/BachelorWorkRepo/DTaaS/files"
log-level: "debug"
apollo-path: "/lib"
graphql-playground: "true"

git-repos: #only used in git mode
- user1:
repo-url: "https://github.com/UselessDross/dtaasAttempt2.git" # Is this supposd to be the private repo?
http-token: "${TEST_GIT_TOKEN}" # line added 2025-02-07 by Bachelor student.
- user2:
repo-url: "https://gitlab.com/dtaas/user2.git"
- common:
repo-url: "https://gitlab.com/dtaas/common.git"
Loading