Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
Wiki
Manage
Activity
Members
Labels
Plan
Issues
53
Issue boards
Milestones
Wiki
Code
Merge requests
6
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
MDM Lab
Wiki
Commits
6e535f35
Commit
6e535f35
authored
1 year ago
by
Remi PLANEL
Browse files
Options
Downloads
Plain Diff
Merge branch 'main' into dev
parents
26569586
ba05a3f7
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#127347
failed with stages
in 11 minutes and 38 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitlab-ci.yml
+8
-5
8 additions, 5 deletions
.gitlab-ci.yml
deploy/df-wiki/values.yaml
+1
-0
1 addition, 0 deletions
deploy/df-wiki/values.yaml
packages/df-wiki-cli/df_wiki_cli/meilisearch/main.py
+4
-2
4 additions, 2 deletions
packages/df-wiki-cli/df_wiki_cli/meilisearch/main.py
with
13 additions
and
7 deletions
.gitlab-ci.yml
+
8
−
5
View file @
6e535f35
...
@@ -360,12 +360,13 @@ update-meilisearch-index:prod:
...
@@ -360,12 +360,13 @@ update-meilisearch-index:prod:
stage
:
get-meili-key
stage
:
get-meili-key
variables
:
variables
:
MEILI_HOST
:
"
http://localhost:7700"
MEILI_HOST
:
"
http://localhost:7700"
MEILI_HOST_NO_PROTOCOLE
:
"
localhost:7700"
script
:
script
:
-
>
-
>
df-wiki-cli
df-wiki-cli
meilisearch
meilisearch
--key "${MEILI_MASTER_KEY}"
--key "${MEILI_MASTER_KEY}"
--host ${MEILI_HOST}
--host
"
${MEILI_HOST}
"
get-env-var
get-env-var
--output build.env
--output build.env
artifacts
:
artifacts
:
...
@@ -378,6 +379,7 @@ set-meili-env:dev:
...
@@ -378,6 +379,7 @@ set-meili-env:dev:
extends
:
.set-meili-env
extends
:
.set-meili-env
variables
:
variables
:
MEILI_HOST
:
"
https://${MEILI_HOST_DEV}"
MEILI_HOST
:
"
https://${MEILI_HOST_DEV}"
MEILI_HOST_NO_PROTOCOLE
:
${MEILI_HOST_DEV}
rules
:
rules
:
-
if
:
$CI_COMMIT_BRANCH != "main"
-
if
:
$CI_COMMIT_BRANCH != "main"
...
@@ -385,6 +387,8 @@ set-meili-env:prod:
...
@@ -385,6 +387,8 @@ set-meili-env:prod:
extends
:
.set-meili-env
extends
:
.set-meili-env
variables
:
variables
:
MEILI_HOST
:
"
https://${MEILI_HOST_PROD}"
MEILI_HOST
:
"
https://${MEILI_HOST_PROD}"
MEILI_HOST_NO_PROTOCOLE
:
${MEILI_HOST_PROD}
rules
:
rules
:
-
if
:
$CI_COMMIT_BRANCH == "main"
-
if
:
$CI_COMMIT_BRANCH == "main"
...
@@ -416,7 +420,6 @@ sync-zotero:
...
@@ -416,7 +420,6 @@ sync-zotero:
-
*docker-login
-
*docker-login
script
:
script
:
-
echo $MEILI_HOST
-
echo $MEILI_HOST
-
echo $MEILI_API_KEY
-
>
-
>
docker buildx build --pull -t "$CI_REGISTRY_IMAGE/$IMAGE_NAME:$CI_COMMIT_SHORT_SHA"
docker buildx build --pull -t "$CI_REGISTRY_IMAGE/$IMAGE_NAME:$CI_COMMIT_SHORT_SHA"
--build-arg "BASE_URL=$BASE_URL"
--build-arg "BASE_URL=$BASE_URL"
...
@@ -450,7 +453,7 @@ build:prod:wiki:
...
@@ -450,7 +453,7 @@ build:prod:wiki:
# - get-pfam
# - get-pfam
variables
:
variables
:
BASE_URL
:
/wiki/
BASE_URL
:
/wiki/
HOST_URL
:
https://${HOST_PROD}
HOST_URL
:
"
https://${HOST_PROD}
"
rules
:
rules
:
-
if
:
$CI_COMMIT_BRANCH == "main"
-
if
:
$CI_COMMIT_BRANCH == "main"
...
@@ -517,7 +520,7 @@ deploy:prod:
...
@@ -517,7 +520,7 @@ deploy:prod:
variables
:
variables
:
NODE_ENV
:
"
production"
NODE_ENV
:
"
production"
KUBE_NAMESPACE
:
"
defense-finder-prod"
KUBE_NAMESPACE
:
"
defense-finder-prod"
PUBLIC_URL
:
"
${HOST_PROD}"
PUBLIC_URL
:
"
https://
${HOST_PROD}"
CI_DEBUG_TRACE
:
"
false"
CI_DEBUG_TRACE
:
"
false"
ENV
:
"
production"
ENV
:
"
production"
environment
:
environment
:
...
@@ -601,7 +604,7 @@ create-structures-archives:prod:
...
@@ -601,7 +604,7 @@ create-structures-archives:prod:
variables
:
variables
:
NODE_ENV
:
"
production"
NODE_ENV
:
"
production"
KUBE_NAMESPACE
:
"
defense-finder-prod"
KUBE_NAMESPACE
:
"
defense-finder-prod"
PUBLIC_URL
:
"
${HOST_PROD}"
PUBLIC_URL
:
"
https://
${HOST_PROD}"
CI_DEBUG_TRACE
:
"
false"
CI_DEBUG_TRACE
:
"
false"
ENV
:
"
production"
ENV
:
"
production"
environment
:
environment
:
...
...
This diff is collapsed.
Click to expand it.
deploy/df-wiki/values.yaml
+
1
−
0
View file @
6e535f35
...
@@ -35,6 +35,7 @@ securityContext:
...
@@ -35,6 +35,7 @@ securityContext:
runAsNonRoot
:
true
runAsNonRoot
:
true
runAsUser
:
101
runAsUser
:
101
runAsGroup
:
101
runAsGroup
:
101
allowPrivilegeEscalation
:
false
# capabilities:
# capabilities:
# drop:
# drop:
# - ALL
# - ALL
...
...
This diff is collapsed.
Click to expand it.
packages/df-wiki-cli/df_wiki_cli/meilisearch/main.py
+
4
−
2
View file @
6e535f35
...
@@ -137,7 +137,9 @@ def get_env_var(
...
@@ -137,7 +137,9 @@ def get_env_var(
keys
=
client
.
get_keys
()
keys
=
client
.
get_keys
()
api_key
=
[
res
.
key
for
res
in
keys
.
results
if
res
.
name
==
"
Default Search API Key
"
]
api_key
=
[
res
.
key
for
res
in
keys
.
results
if
res
.
name
==
"
Default Search API Key
"
]
print
(
ctx
.
obj
.
host
)
if
len
(
api_key
)
==
1
:
if
len
(
api_key
)
==
1
:
with
open
(
output
,
"
a
"
)
as
outfile
:
with
open
(
output
,
"
a
"
)
as
outfile
:
outfile
.
write
(
f
"
MEILI_HOST=
{
ctx
.
obj
.
host
}
\n
"
)
print
(
ctx
.
obj
.
host
)
outfile
.
write
(
f
"
MEILI_API_KEY=
{
api_key
[
0
]
}
\n
"
)
outfile
.
write
(
f
'
MEILI_HOST=
"
{
ctx
.
obj
.
host
}
"
\n
'
)
outfile
.
write
(
f
'
MEILI_API_KEY=
"
{
api_key
[
0
]
}
"
\n
'
)
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment