Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Machina Callida
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
callidus
Machina Callida
Commits
9b8bb615
Commit
9b8bb615
authored
1 year ago
by
Konstantin Schulz
Browse files
Options
Downloads
Patches
Plain Diff
update Docker (dind) to fix threading issues
parent
a94e54eb
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#51022
failed
1 year ago
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+8
-17
8 additions, 17 deletions
.gitlab-ci.yml
README.md
+5
-3
5 additions, 3 deletions
README.md
with
13 additions
and
20 deletions
.gitlab-ci.yml
+
8
−
17
View file @
9b8bb615
...
...
@@ -4,8 +4,8 @@ stages:
-
ci
-
coverage
variables
:
BA
CKE
ND_IMAGE
:
$CI_REGISTRY_USER/mcser
ver
:
la
test
FRONTEND_IMAGE
:
$CI_REGISTRY_USER/mc_frontend:latest
DO
CKE
R_DRIVER
:
o
verla
y2
DOCKER_TLS_CERTDIR
:
"
"
workflow
:
rules
:
-
if
:
'
$CI_COMMIT_TAG'
...
...
@@ -20,19 +20,16 @@ tag_version:
-
apk add --no-cache git
-
python3 ./mc_frontend/update_version.py
build
:
image
:
docker:2
0.1
0.
8
image
:
docker:2
4.
0.
5
services
:
-
docker:2
0.1
0.
8
-dind
-
docker:2
4.
0.
5
-dind
stage
:
build
script
:
-
docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD
-
docker build ./mc_frontend -t $FRONTEND_IMAGE
-
docker push $FRONTEND_IMAGE
-
docker build -f ./mc_backend/Dockerfile -t $BACKEND_IMAGE .
-
docker push $BACKEND_IMAGE
variables
:
DOCKER_DRIVER
:
overlay2
DOCKER_TLS_CERTDIR
:
"
"
-
docker compose build mcserver
-
docker compose push mcserver
-
docker compose build mc_frontend
-
docker compose push mc_frontend
ci_frontend
:
artifacts
:
paths
:
...
...
@@ -44,9 +41,6 @@ ci_frontend:
stage
:
ci
script
:
-
docker run --rm $FRONTEND_IMAGE npm run test-ci > ci_frontend.log
variables
:
DOCKER_DRIVER
:
overlay2
DOCKER_TLS_CERTDIR
:
"
"
ci_backend
:
artifacts
:
paths
:
...
...
@@ -58,9 +52,6 @@ ci_backend:
stage
:
ci
script
:
-
docker run --env IS_THIS_A_DOCKER_CONTAINER=Yes --rm --entrypoint="./coverage_backend.sh" $BACKEND_IMAGE > ci_backend.log
variables
:
DOCKER_DRIVER
:
overlay2
DOCKER_TLS_CERTDIR
:
"
"
coverage
:
artifacts
:
paths
:
...
...
This diff is collapsed.
Click to expand it.
README.md
+
5
−
3
View file @
9b8bb615
...
...
@@ -41,6 +41,7 @@ To generate class structures for this project automatically:
1.
Install OpenAPI Generator (using, e.g.,
`brew install openapi-generator`
).
2.
Run:
`openapi-generator generate -i mc_backend/mcserver/mcserver_api.yaml -g typescript-angular -o mc_frontend/openapi/ && openapi-generator generate -i mc_backend/mcserver/mcserver_api.yaml -g python-flask -o mc_backend/openapi/ && python mc_backend/openapi_generator.py`
.
...
...
@@ -68,6 +69,7 @@ To update the changelog, use: `git log --oneline --decorate > CHANGELOG`
To test your code locally, run
`./coverage_local.sh`
(all components)
or
`docker compose run --rm --entrypoint="./coverage_backend.sh" mcserver`
(only backend).
To test the GitLab CI locally, run
`gitlab-runner exec docker --docker-privileged --env CI_REGISTRY_USER=YOUR_USERNAME JOB_NAME`
.
Do not forget to insert your actual GitLab username. The
`JOB_NAME`
should be replaced by an actual job name from the
YAML configuration.
To test the GitLab CI locally, run
`gitlab-runner exec docker --docker-privileged JOB_NAME`
.
Do not forget to specify the username and password for your chosen package registry (e.g., Docker). You can do this in
the .gitlab-ci.yml variables, or in the GitLab UI, using
`CI_REGISTRY_USER`
and
`CI_REGISTRY_PASSWORD`
.
The
`JOB_NAME`
should be replaced by an actual job name from the YAML configuration.
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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