Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
CONF
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
UvA
CONF
Commits
f2de48e1
Commit
f2de48e1
authored
Apr 16, 2020
by
Spiros Koulouzis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added java CI docker
parent
0b8ef09a
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
47 additions
and
20 deletions
+47
-20
Dockerfile
bin/CI-docker/Dockerfile
+0
-18
Dockerfile
bin/CI-docker/java/Dockerfile
+16
-0
build.sh
bin/CI-docker/java/build.sh
+11
-0
clone_git.sh
bin/CI-docker/java/clone_git.sh
+8
-0
send_to_sonarqube.sh
bin/CI-docker/java/send_to_sonarqube.sh
+10
-0
pom.xml
commons/pom.xml
+2
-2
No files found.
bin/CI-docker/Dockerfile
deleted
100644 → 0
View file @
0b8ef09a
FROM
ubuntu:18.04
RUN
apt-get update
&&
apt-get
install
-y
openssh-server ansible openjdk-11-jre-headless python3.8 python3-venv maven
RUN
mkdir
/var/run/sshd
# RUN echo 'root:XXX' | chpasswd
RUN
sed
-i
's/PermitRootLogin prohibit-password/PermitRootLogin yes/'
/etc/ssh/sshd_config
# SSH login fix. Otherwise user is kicked off after login
RUN
sed
's@session\s*required\s*pam_loginuid.so@session optional pam_loginuid.so@g'
-i
/etc/pam.d/sshd
ENV
NOTVISIBLE "in users profile"
RUN
echo
"export VISIBLE=now"
>>
/etc/profile
RUN
mkdir
-p
~/.ssh
EXPOSE
22
CMD
echo $PUBLIC_KEY >> ~/.ssh/authorized_keys &&\
/usr/sbin/sshd -D
bin/CI-docker/java/Dockerfile
0 → 100644
View file @
f2de48e1
FROM
maven:3.6.3-jdk-11
MAINTAINER
S. Koulouzis
COPY
clone_git.sh clone_git.sh
COPY
build.sh build.sh
COPY
send_to_sonarqube.sh send_to_sonarqube.sh
CMD
./clone_git.sh $BRANCH $GIT_URL $FOLDER_NAME && \
./build.sh $FOLDER_NAME && \
./send_to_sonarqube.sh $SONAR_HOST $SONAR_LOGIN
# docker build -t java_ci .
# docker run -it -e BRANCH=develop -e GIT_URL=https://gitlab.articonf.eu:4430/uva/conf.git -e FOLDER_NAME=conf java_ci -e SONAR_HOST=host -e SONAR_LOGIN=secret
bin/CI-docker/java/build.sh
0 → 100755
View file @
f2de48e1
#!/bin/bash
SRC
=
$1
cd
$SRC
mvn
-Dmaven
.test.skip
=
true install
status
=
$?
[
$status
-eq
0
]
&&
echo
"build successful"
||
exit
-1
bin/CI-docker/java/clone_git.sh
0 → 100755
View file @
f2de48e1
#!/bin/bash
BRANCH
=
$1
GIT_URL
=
$2
FOLDER_NAME
=
$3
git clone
-b
$BRANCH
$GIT_URL
bin/CI-docker/java/send_to_sonarqube.sh
0 → 100755
View file @
f2de48e1
#!/bin/bash
SONAR_HOST
=
$1
SONAR_LOGIN
=
$2
for
i
in
$(
find
-name
target
)
;
do
# Not recommended, will break on whitespace
echo
"Sending
$i
"
done
commons/pom.xml
View file @
f2de48e1
...
...
@@ -9,8 +9,8 @@
<properties>
<java.version>
1.8
</java.version>
<maven.compiler.source>
${java.version}
</maven.compiler.source>
<maven.compiler.target>
${java.version}
</maven.compiler.target>
<maven.compiler.source>
1.8
</maven.compiler.source>
<maven.compiler.target>
1.8
</maven.compiler.target>
<springfox-version>
2.9.2
</springfox-version>
<gson-fire-version>
1.8.3
</gson-fire-version>
<swagger-core-version>
1.5.24
</swagger-core-version>
...
...
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