Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
flan
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
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
Code review analytics
Issue analytics
Insights
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
hdacloud
flan
Commits
3d17b7fe
Commit
3d17b7fe
authored
5 years ago
by
Nadin El-Yabroudi
Browse files
Options
Downloads
Plain Diff
Merge
parents
804a5ae4
20e3b596
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Dockerfile
+2
-2
2 additions, 2 deletions
Dockerfile
kubernetes_templates/deployment.yaml
+2
-2
2 additions, 2 deletions
kubernetes_templates/deployment.yaml
run.sh
+1
-1
1 addition, 1 deletion
run.sh
with
5 additions
and
5 deletions
Dockerfile
+
2
−
2
View file @
3d17b7fe
FROM
python:3.5-alpine
RUN
apk add nmap nmap-scripts git
RUN
apk add
--no-cache
nmap nmap-scripts git
RUN
pip
install
xmltodict google-cloud-storage boto3
RUN
pip
install
--no-cache-dir
xmltodict google-cloud-storage boto3
RUN
git clone https://github.com/vulnersCom/nmap-vulners /usr/share/nmap/scripts/vulners
&&
nmap
--script-updatedb
RUN
mkdir
/shared
...
...
This diff is collapsed.
Click to expand it.
kubernetes_templates/deployment.yaml
+
2
−
2
View file @
3d17b7fe
apiVersion
:
apps/v1
kind
:
Deployment
metadata
:
name
:
flan-scan-deployment
name
:
flan-scan-deployment
labels
:
app
:
flan-scan
spec
:
...
...
@@ -29,7 +29,7 @@ spec:
-
name
:
cloud-key
mountPath
:
/var/secrets/google
-
name
:
shared-files
mountPath
:
/shared
mountPath
:
/shared
env
:
-
name
:
upload
value
:
<GCP_OR_AWS>
...
...
This diff is collapsed.
Click to expand it.
run.sh
+
1
−
1
View file @
3d17b7fe
...
...
@@ -39,7 +39,7 @@ do
upload
$xml_dir
/
$filename
done
< /shared/ips.txt
python /output_report.py
$root_dir$xml_dir
$root_dir$report_file
/shared/ips.txt
python /output_report.py
$root_dir$xml_dir
$root_dir$report_file
/shared/ips.txt
sed
-i
's/_/\\_/g'
$root_dir$report_file
sed
-i
's/\$/\\\$/g'
$root_dir$report_file
sed
-i
's/#/\\#/g'
$root_dir$report_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