Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
Docker
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
Container Registry
Model registry
Operate
Environments
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
Kontr 2.0
Docker
Commits
9a6bd66a
There was an error fetching the commit references. Please try again later.
Verified
Commit
9a6bd66a
authored
6 years ago
by
Peter Stanko
Browse files
Options
Downloads
Patches
Plain Diff
Universal build docker compose
parent
d9e5bd92
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
build/run.sh
+0
-42
0 additions, 42 deletions
build/run.sh
docker-compose.yml
+29
-0
29 additions, 0 deletions
docker-compose.yml
with
29 additions
and
42 deletions
build/run.sh
deleted
100755 → 0
+
0
−
42
View file @
d9e5bd92
#! /bin/bash
WORK_DIR
=
"
$(
mktemp
-d
)
"
ORGNAME
=
"kontr2"
BASE_REPO
=
"git@gitlab.fi.muni.cz:grp-kontr2"
function
build_one
()
{
name
=
$1
repo
=
$2
path
=
"
$WORK_DIR
/
$name
"
echo
"[BUILD]
\"
$name
\"
:
${
repo
}
"
echo
"[CLONE]
\"
$repo
\"
to
\"
$path
\"
"
git clone
--depth
1
"
$repo
"
"
$path
"
tag
=
"
$ORGNAME
/
$name
"
echo
"[DOCKER] Building
$tag
"
docker build
--tag
"
$tag
"
"
$path
"
echo
"[DOCKER] Pushing
$tag
"
docker push
"
$tag
"
}
function
build_portal_all
()
{
echo
"[BUILD] All portal related images"
build_one
"portal"
"
$BASE_REPO
/portal.git"
build_one
"frontend"
"
$BASE_REPO
/portal-frontend.git"
}
function
build_all
()
{
echo
"[BUILD] All docker images"
build_portal_all
}
build_all
This diff is collapsed.
Click to expand it.
docker-compose.yml
0 → 100644
+
29
−
0
View file @
9a6bd66a
version
:
'
3'
services
:
base
:
build
:
base
image
:
kontr2/base-pipenv
ktdk
:
build
:
ktdk
image
:
kontr2/ktdk-runner
ktdk-cpp
:
build
:
context
:
ktdk
dockerfile
:
cpp-runner.Dockerfile
image
:
kontr2/ktdk-cpp-runner
portal
:
build
:
https://gitlab.fi.muni.cz/grp-kontr2/portal.git
image
:
kontr2/portal
frontend
:
build
:
https://gitlab.fi.muni.cz/grp-kontr2/portal-frontend.git
image
:
kontr2/portal-frontend
kontr-worker
:
build
:
https://gitlab.fi.muni.cz/grp-kontr2/kontr-worker.git
image
:
kontr2/kontr-worker
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