Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
Paas CI
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
INFN Cloud
Paas CI
Commits
c114362d
Commit
c114362d
authored
2 years ago
by
Marica Antonacci
Browse files
Options
Downloads
Patches
Plain Diff
Move python script to ansible role
parent
bf606632
No related branches found
No related tags found
No related merge requests found
Pipeline
#85039
passed
2 years ago
Stage: build
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
.gitlab-ci.yml
+0
-1
0 additions, 1 deletion
.gitlab-ci.yml
files/script.py
+0
-0
0 additions, 0 deletions
files/script.py
tasks/2-scan.yml
+5
-0
5 additions, 0 deletions
tasks/2-scan.yml
utils/Dockerfile
+2
-4
2 additions, 4 deletions
utils/Dockerfile
with
7 additions
and
5 deletions
.gitlab-ci.yml
+
0
−
1
View file @
c114362d
...
@@ -25,5 +25,4 @@ docker-build:
...
@@ -25,5 +25,4 @@ docker-build:
rules
:
rules
:
-
if
:
$CI_COMMIT_BRANCH
-
if
:
$CI_COMMIT_BRANCH
changes
:
changes
:
-
$DOCKERFILES_DIR/*.py
-
$DOCKERFILES_DIR/Dockerfile
-
$DOCKERFILES_DIR/Dockerfile
\ No newline at end of file
This diff is collapsed.
Click to expand it.
ut
ils/script.py
→
f
il
e
s/script.py
+
0
−
0
View file @
c114362d
File moved
This diff is collapsed.
Click to expand it.
tasks/2-scan.yml
+
5
−
0
View file @
c114362d
...
@@ -5,6 +5,11 @@
...
@@ -5,6 +5,11 @@
-
debug
:
-
debug
:
var
:
paas_ci_test.endpoints_to_scan
var
:
paas_ci_test.endpoints_to_scan
-
name
:
Copy script to run
copy
:
src
:
files/script.py
dest
:
{{
paas_ci_scan_script_path
}}
-
name
:
Run scan
-
name
:
Run scan
command
:
"
python3
{{
paas_ci_scan_script_path
}}
{{
paas_ci_test.endpoints_to_scan
}}
{{
paas_ci_workdir
+
'/dep.json'}}
{{
paas_ci_workdir
}}"
command
:
"
python3
{{
paas_ci_scan_script_path
}}
{{
paas_ci_test.endpoints_to_scan
}}
{{
paas_ci_workdir
+
'/dep.json'}}
{{
paas_ci_workdir
}}"
...
...
This diff is collapsed.
Click to expand it.
utils/Dockerfile
+
2
−
4
View file @
c114362d
...
@@ -3,11 +3,9 @@ FROM jenkins/ssh-agent:4.1.0
...
@@ -3,11 +3,9 @@ FROM jenkins/ssh-agent:4.1.0
ARG
ORCHENT_VERSION=1.2.9
ARG
ORCHENT_VERSION=1.2.9
RUN
DEBIAN_FRONTEND
=
noninteractive apt-get update
\
RUN
DEBIAN_FRONTEND
=
noninteractive apt-get update
\
&&
apt-get
install
-y
wget git ansible python3-pip
iproute2 iputils-ping
\
&&
apt-get
install
-y
wget git ansible python3-pip
\
&&
wget https://github.com/indigo-dc/orchent/releases/download/v
${
ORCHENT_VERSION
}
/orchent_
${
ORCHENT_VERSION
}
_amd64.deb
\
&&
wget https://github.com/indigo-dc/orchent/releases/download/v
${
ORCHENT_VERSION
}
/orchent_
${
ORCHENT_VERSION
}
_amd64.deb
\
&&
dpkg
-i
orchent_
${
ORCHENT_VERSION
}
_amd64.deb
\
&&
dpkg
-i
orchent_
${
ORCHENT_VERSION
}
_amd64.deb
\
&&
apt-get clean
&&
rm
-rf
/var/lib/apt/lists/
*
&&
apt-get clean
&&
rm
-rf
/var/lib/apt/lists/
*
RUN
pip
install
gvm-tools jq yq
RUN
pip
install
gvm-tools jq yq
\ No newline at end of file
COPY
script.py /opt/scan.py
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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