Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Testsuite
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
4
Issues
4
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Environments
Packages & Registries
Packages & Registries
Package Registry
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Feneas
federation
Testsuite
Commits
ebd4d26e
Commit
ebd4d26e
authored
Sep 17, 2019
by
zauberstuhl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix registry path
parent
b1e3ef0d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
9 deletions
+9
-9
docs/index.md
docs/index.md
+2
-2
scripts/build_docker_image.sh
scripts/build_docker_image.sh
+5
-5
test_helper.bash
test_helper.bash
+2
-2
No files found.
docs/index.md
View file @
ebd4d26e
...
...
@@ -156,9 +156,9 @@ fi
Last final step before we have a fully functional docker image is to build the actual image:
docker build --no-cache -t registry.git.feneas.org/feneas/federation/testsuite
_
testproject:v1.0.3-testproject .
docker build --no-cache -t registry.git.feneas.org/feneas/federation/testsuite
/
testproject:v1.0.3-testproject .
The testsuite requires a special naming for every image:
`registry.git.feneas.org/feneas/federation/testsuite
_
<project>:<version>-<project>`
The testsuite requires a special naming for every image:
`registry.git.feneas.org/feneas/federation/testsuite
/
<project>:<version>-<project>`
If we succesfully build the docker image we have to commit our changes
and create a project tag and we are done with the image part:
...
...
scripts/build_docker_image.sh
View file @
ebd4d26e
...
...
@@ -10,10 +10,10 @@ docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY || exit
# build the image locally
docker build
-t
\
${
CI_REGISTRY_IMAGE
}
_
${
project
}
:
$CI_COMMIT_TAG
.
||
exit
1
${
CI_REGISTRY_IMAGE
}
/
${
project
}
:
$CI_COMMIT_TAG
.
||
exit
1
# overwrite latest-tag with new image
docker tag
${
CI_REGISTRY_IMAGE
}
_
${
project
}
:
$CI_COMMIT_TAG
\
${
CI_REGISTRY_IMAGE
}
_
${
project
}
:latest
||
exit
1
docker tag
${
CI_REGISTRY_IMAGE
}
/
${
project
}
:
$CI_COMMIT_TAG
\
${
CI_REGISTRY_IMAGE
}
/
${
project
}
:latest
||
exit
1
# upload the image and both tags
docker push
${
CI_REGISTRY_IMAGE
}
_
${
project
}
:
$CI_COMMIT_TAG
||
exit
1
docker push
${
CI_REGISTRY_IMAGE
}
_
${
project
}
:latest
||
exit
1
docker push
${
CI_REGISTRY_IMAGE
}
/
${
project
}
:
$CI_COMMIT_TAG
||
exit
1
docker push
${
CI_REGISTRY_IMAGE
}
/
${
project
}
:latest
||
exit
1
test_helper.bash
View file @
ebd4d26e
...
...
@@ -83,11 +83,11 @@ function start_app() {
params
=
"-e PROJECT=
$PROJECT
-e PRSHA=
$PRSHA
-e PRREPO=
$PRREPO
"
fi
cid
=
$(
container_id
"
$1
"
)
echo
"Starting docker container
$cid
(
${
CI_REGISTRY_IMAGE
}
_
$3
) on port
$2
"
echo
"Starting docker container
$cid
(
${
CI_REGISTRY_IMAGE
}
/
$3
) on port
$2
"
docker run
--name
=
$cid
$params
\
--link
$(
container_id
"postgres"
)
:postgreshost
\
--link
$(
container_id
"redis"
)
:redishost
\
-e
DATABASE
=
$1
-e
PORT
=
$2
-d
${
CI_REGISTRY_IMAGE
}
_
$3
-e
DATABASE
=
$1
-e
PORT
=
$2
-d
${
CI_REGISTRY_IMAGE
}
/
$3
}
# stop_app "g1"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment