File tree 4 files changed +15
-11
lines changed
4 files changed +15
-11
lines changed Original file line number Diff line number Diff line change @@ -2,4 +2,4 @@ sudo: required
2
2
services :
3
3
- docker
4
4
script :
5
- - chmod +x ci.sh && chmod +x test.sh && travis_wait 65 ./ci.sh
5
+ - chmod +x ci.sh && chmod +x test.sh && ./ci.sh
Original file line number Diff line number Diff line change @@ -4,6 +4,8 @@ ENV DEBIAN_FRONTEND=noninteractive \
4
4
OV_PASSWORD=admin \
5
5
PUBLIC_HOSTNAME=openvas
6
6
7
+ ARG SKIP_SYNC=false
8
+
7
9
# Install Prerequisites
8
10
RUN apt-get update && \
9
11
apt-get install --assume-yes --quiet --no-install-recommends --fix-missing \
@@ -118,10 +120,10 @@ RUN cd /usr/src && \
118
120
COPY ./scripts/greenbone-*.sh /usr/local/bin/
119
121
RUN chmod +x /usr/local/bin/greenbone-*.sh
120
122
121
- COPY ./feeds/community-nvt-feed-current.tar.bz2 /usr/src/
122
- RUN cd /usr/src && \
123
- tar -xC /usr/local/var/lib/openvas/plugins/ -f community-nvt-feed-current.tar.bz2 && \
124
- rm community-nvt-feed-current.tar.bz2
123
+ # COPY ./feeds/community-nvt-feed-current.tar.bz2 /usr/src/
124
+ # RUN cd /usr/src && \
125
+ # tar -xC /usr/local/var/lib/openvas/plugins/ -f community-nvt-feed-current.tar.bz2 && \
126
+ # rm community-nvt-feed-current.tar.bz2
125
127
126
128
RUN /usr/local/bin/greenbone-sync.sh
127
129
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ echo "Setup"
5
5
cd $( dirname $0 )
6
6
mkdir -p logs images
7
7
8
- docker build -t openvas .
8
+ docker build --build-arg SKIP_SYNC=true - t openvas .
9
9
10
10
./test.sh
11
11
Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env bash
2
2
3
- greenbone-nvt-sync --rsync > /dev/null
4
- sleep 15
5
- greenbone-certdata-sync > /dev/null
6
- sleep 15
7
- greenbone-scapdata-sync > /dev/null
3
+ if [ " $SKIP_SYNC " == " false" ]; then
4
+ greenbone-nvt-sync --rsync
5
+ sleep 15
6
+ greenbone-certdata-sync
7
+ sleep 15
8
+ greenbone-scapdata-sync
9
+ fi
You can’t perform that action at this time.
0 commit comments