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
0b25bc39
Commit
0b25bc39
authored
9 years ago
by
Ludovic Claude
Browse files
Options
Downloads
Patches
Plain Diff
run runs, build builds
parent
bc8ef11e
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
build.sh
+3
-8
3 additions, 8 deletions
build.sh
run.sh
+12
-1
12 additions, 1 deletion
run.sh
src/docker/build/.gitignore
+1
-0
1 addition, 0 deletions
src/docker/build/.gitignore
src/docker/build/Dockerfile
+1
-0
1 addition, 0 deletions
src/docker/build/Dockerfile
with
17 additions
and
9 deletions
build.sh
+
3
−
8
View file @
0b25bc39
#!/bin/bash -e
if
groups
$USER
|
grep
&>/dev/null
'\bdocker\b'
;
then
DOCKER_COMPOSE
=
"docker-compose"
else
DOCKER_COMPOSE
=
"sudo docker-compose"
fi
# Create a symlink to the local Maven repository
[
-L
.m2
]
||
ln
-s
-t
.
~/.m2
$DOCKER_COMPOSE
--file
=
docker-compose.init.yml
--project-name
=
portal-backend-init up
echo
"Need to set the current user as owner of the files generated in target directory..."
sudo chown
-R
$USER
:
$USER
./target
cp
target/mip.jar src/docker/build/
echo
"Done"
$DOCKER_COMPOSE
build
This diff is collapsed.
Click to expand it.
run.sh
+
12
−
1
View file @
0b25bc39
#!/bin/bash -e
# Run the backend in a Docker container and start the database.
# The current project is compiler inside the Docker container
if
groups
$USER
|
grep
&>/dev/null
'\bdocker\b'
;
then
DOCKER_COMPOSE
=
"docker-compose"
else
DOCKER_COMPOSE
=
"sudo docker-compose"
fi
$DOCKER_COMPOSE
up
# Create a symlink to the local Maven repository
[
-L
.m2
]
||
ln
-s
-t
.
~/.m2
$DOCKER_COMPOSE
--file
=
docker-compose.init.yml
--project-name
=
portal-backend-init up
echo
"Need to set the current user as owner of the files generated in target directory..."
sudo chown
-R
$USER
:
$USER
./target
echo
"Done"
This diff is collapsed.
Click to expand it.
src/docker/build/.gitignore
0 → 100644
+
1
−
0
View file @
0b25bc39
*.jar
This diff is collapsed.
Click to expand it.
src/docker/build/Dockerfile
+
1
−
0
View file @
0b25bc39
...
...
@@ -7,6 +7,7 @@ RUN wget https://github.com/jwilder/dockerize/releases/download/v0.2.0/dockerize
RUN
tar
-C
/usr/local/bin
-xzvf
dockerize-linux-amd64-v0.2.0.tar.gz
COPY
mip.sh /opt/portal/
COPY
mip.jar /opt/portal/lib/
RUN
chmod
+x /opt/portal/mip.sh
EXPOSE
8080
...
...
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