Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
portal-backend
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
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
HBP Medical Informatics Platform
portal-backend
Commits
aa2bbedb
Commit
aa2bbedb
authored
8 years ago
by
Mirco Nasuti
Browse files
Options
Downloads
Plain Diff
Merge branch 'ci_adaptations' into 'master'
Ci adaptations See merge request
!23
parents
06221820
21b4c174
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
README.md
+1
-1
1 addition, 1 deletion
README.md
captain.yml
+4
-4
4 additions, 4 deletions
captain.yml
captain_build.sh
+1
-0
1 addition, 0 deletions
captain_build.sh
with
6 additions
and
5 deletions
README.md
+
1
−
1
View file @
aa2bbedb
...
...
@@ -13,7 +13,7 @@ This is the MIP backend.
## Usage in building environment
*
Build a versioned image:
`./captain_build.sh`
or
`
captain build`
*
Build a versioned image:
`./captain_build.sh`
(only if
`$WORKSPACE=$(pwd)`
) or
`export WORKSPACE=<path-to-workspace> &&
captain build`
*
Build and test an image:
`./captain_test.sh`
or
`captain test`
*
Run the latest image with a non-persistent postgres (only use this for testing purpose):
`./captain_run.sh`
...
...
This diff is collapsed.
Click to expand it.
captain.yml
+
4
−
4
View file @
aa2bbedb
...
...
@@ -4,7 +4,7 @@ portal-backend-build:
pre
:
-
echo 'Building portal-backend-build'
post
:
-
docker run --rm -v $
(pwd)
:/opt/portal/ -v $
(pwd)
/.m2:/root/.m2/ hbpmip/portal-backend-build
-
docker run --rm -v $
WORKSPACE
:/opt/portal/ -v $
WORKSPACE
/.m2:/root/.m2/ hbpmip/portal-backend-build
-
echo 'Finished building portal-backend-build'
test
:
-
./tests/test-build.sh
...
...
@@ -17,10 +17,10 @@ portal-backend:
-
cp -r $(pwd)/config/ $(pwd)/src/docker/run/config/
-
cp -r $(pwd)/target/ $(pwd)/src/docker/run/target/
post
:
-
rm -rf $
(pwd)
/src/docker/run/target/
-
rm -rf $
(pwd)
/src/docker/run/config/
-
rm -rf $
WORKSPACE
/src/docker/run/target/
-
rm -rf $
WORKSPACE
/src/docker/run/config/
-
echo 'Finished building portal-backend'
test
:
-
./tests/pre-test-run.sh
-
./tests/test-run.sh
-
./tests/post-test-run.sh
\ No newline at end of file
-
./tests/post-test-run.sh
This diff is collapsed.
Click to expand it.
captain_build.sh
+
1
−
0
View file @
aa2bbedb
#!/usr/bin/env bash
export
WORKSPACE
=
$(
pwd
)
captain build
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