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
0db14a92
Commit
0db14a92
authored
Feb 12, 2020
by
Spiros Koulouzis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
created test docker
parent
231b9cea
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
31 additions
and
3 deletions
+31
-3
Dockerfile
bin/CI-docker/Dockerfile
+15
-2
build.sh
bin/build.sh
+10
-0
test.sh
bin/test.sh
+6
-1
.CI-deployment.yaml.kate-swp
k8s/test_container/.CI-deployment.yaml.kate-swp
+0
-0
No files found.
bin/CI-docker/Dockerfile
View file @
0db14a92
FROM
python:3.8-buster
FROM
ubuntu:18.04
RUN
apt update
-y
&&
apt-get
install
ansible openjdk-11-jre-headless
-y
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/build.sh
View file @
0db14a92
#!/bin/bash
#!/bin/bash
cd
../
mvn
-Dmaven
.test.skip
=
true install
mvn
-Dmaven
.test.skip
=
true install
status
=
$?
[
$status
-eq
0
]
&&
echo
"build successful"
||
exit
-1
cd
planner
&&
rm
-rf
venv
&&
python3
-m
venv venv
&&
venv/bin/pip3
install
-r
requirements.txt
cd
planner
&&
rm
-rf
venv
&&
python3
-m
venv venv
&&
venv/bin/pip3
install
-r
requirements.txt
status
=
$?
[
$status
-eq
0
]
&&
echo
"build successful"
||
exit
-1
cd
../
cd
../
cd
sure_tosca-flask-server
&&
rm
-rf
venv
&&
python3
-m
venv venv
&&
venv/bin/pip3
install
-r
requirements.txt
&&
venv/bin/pip3
install
-r
test-requirements.txt
cd
sure_tosca-flask-server
&&
rm
-rf
venv
&&
python3
-m
venv venv
&&
venv/bin/pip3
install
-r
requirements.txt
&&
venv/bin/pip3
install
-r
test-requirements.txt
status
=
$?
[
$status
-eq
0
]
&&
echo
"build successful"
||
exit
-1
cd
../
cd
../
cd
deployer
&&
rm
-rf
venv
&&
python3
-m
venv venv
&&
venv/bin/pip3
install
-r
requirements.txt
cd
deployer
&&
rm
-rf
venv
&&
python3
-m
venv venv
&&
venv/bin/pip3
install
-r
requirements.txt
status
=
$?
[
$status
-eq
0
]
&&
echo
"build successful"
||
exit
-1
bin/test.sh
View file @
0db14a92
#!/bin/bash
#!/bin/bash
mvn
test
mvn
test
status
=
$?
[
$status
-eq
0
]
&&
echo
"build successful"
||
exit
-1
cd
drip-planner
&&
venv/bin/python3
-m
unittest discover
cd
drip-planner
&&
venv/bin/python3
-m
unittest discover
status
=
$?
[
$status
-eq
0
]
&&
echo
"build successful"
||
exit
-1
cd
../
cd
../
cd
sure_tosca-flask-server
&&
venv/bin/python3
-m
unittest discover
cd
sure_tosca-flask-server
&&
venv/bin/python3
-m
unittest discover
status
=
$?
[
$status
-eq
0
]
&&
echo
"build successful"
||
exit
-1
k8s/test_container/.CI-deployment.yaml.kate-swp
deleted
100644 → 0
View file @
231b9cea
File deleted
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