Skip to content

Commit f776c67

Browse files
committed
Merge branch 'master' of baltig.sandia.gov:scot/SCOT
2 parents ab9707f + 3b0ca54 commit f776c67

File tree

4,327 files changed

+806493
-113966
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

4,327 files changed

+806493
-113966
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,5 @@ package-lock.json
1919
#scot.js
2020
scot-debug.js
2121
.idea/
22+
scot-ui/build/static/js/
23+
scot-ui/build/

.gitlab-ci.yml

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
stages:
3+
- test
4+
5+
before_script:
6+
- export http_proxy=http://wwwproxy.sandia.gov:80
7+
- export https_proxy=http://wwwproxy.sandia.gov:80
8+
- export no_proxy=*.sandia.gov
9+
test:
10+
stage: test
11+
script:
12+
- perl -MDevel::Cover t/api/all.t
13+
coverage: /Total\s+.+\s(\d+\.\d+?)$/

Dockerfile-Apache

-2
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@ ENV APACHE_RUN_USER=www-data \
2424
COPY ./docker-configs/apache/run.sh /scripts/
2525
RUN chmod +x /scripts/run.sh
2626

27-
28-
2927
RUN apt-get update && \
3028
apt-get install -y apache2 libldap2-dev libsasl2-dev libssl-dev apache2 libapache2-mod-wsgi \
3129
apache2 libapache2-mod-authnz-external libapache2-mod-rpaf && \

Dockerfile-Flair

-5
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,4 @@ COPY bin/flairer.pl /opt/scot/bin/
99
COPY install/src/scot /opt/scot/etc/
1010
COPY docker-configs/flair/flair.cfg.pl /opt/scot/etc/
1111

12-
RUN groupadd -g 2060 scot && \
13-
useradd -r -u 1060 -g scot scot
14-
15-
16-
USER scot
1712
CMD ["/usr/bin/perl", "/opt/scot/bin/flairer.pl"]

Dockerfile-Game

-5
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,4 @@ COPY lib/Scot/App/Game.pm /opt/scot/lib/
1010
COPY install/src/scot /opt/scot/etc/
1111
COPY docker-configs/game/game.cfg.pl /opt/scot/etc/
1212

13-
14-
RUN groupadd -g 2060 scot && \
15-
useradd -r -u 1060 -g scot scot
16-
17-
USER scot
1813
CMD ["/usr/bin/perl", "/opt/scot/bin/game.pl"]

Dockerfile-Mail

-6
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,4 @@ COPY docker-configs/mail/Mail.pm /opt/scot/lib/Scot/App/
1010
COPY install/src/scot /opt/scot/etc/
1111
COPY docker-configs/mail/alert.cfg.pl /opt/scot/etc/
1212

13-
14-
RUN groupadd -g 2060 scot && \
15-
useradd -r -u 1060 -g scot scot
16-
17-
#USER scot
18-
1913
CMD ["/usr/bin/perl", "/opt/scot/bin/alert.pl"]

Dockerfile-Mongodb

-1
Original file line numberDiff line numberDiff line change
@@ -48,4 +48,3 @@ USER mongodb:mongodb
4848

4949

5050
CMD ["/run.sh"]
51-

Dockerfile-Perl

+1-2
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,9 @@ ENV no_proxy="elastic,mongodb,scot,activemq,apache"
1616
ENV NO_PROXY="elastic,mongodb,scot,activemq,apache"
1717

1818

19-
2019
RUN apt-get update && \
2120
apt-get -qy upgrade && \
22-
apt-get install -qy perl build-essential cpanminus perl-doc perl-base perl-modules \
21+
apt-get install -qy perl build-essential cpanminus perl-doc perl-base perl-modules curl vim ssmtp \
2322
perlmagick perltidy libcurses-perl libmagic-dev libxml-perl libyaml-perl libwww-mechanize-perl \
2423
libjson-perl libmath-gmp-perl librose-db-perl libtree-simple-perl libtask-weaken-perl libtree-simple-visitorfactory-perl \
2524
libalgorithm-c3-perl libapparmor-perl libarchive-zip-perl libauthen-krb5-simple-perl libauthen-sasl-perl \

Dockerfile-Reflair

-6
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,4 @@ COPY install/src/scot /opt/scot/etc/
1010
COPY docker-configs/reflair/reflair.cfg.pl /opt/scot/etc/
1111
COPY docker-configs/scot/scot.cfg.pl /opt/scot/etc/
1212

13-
RUN groupadd -g 2060 scot && \
14-
useradd -r -u 1060 -g scot scot
15-
16-
17-
USER scot
18-
1913
CMD ["/usr/bin/perl", "/opt/scot/bin/reflair.pl"]

Dockerfile-Scot

+7-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@ ENV DEBIAN_FRONTEND="noninteractive" \
66

77

88
RUN apt-get update && \
9-
apt-get install apt-utils ca-certificates curl vim ssmtp -y -f && \
10-
update-ca-certificates && \
9+
apt-get install ssmtp -y -f && \
1110
apt-get autoclean && \
1211
apt-get --purge -y autoremove && \
1312
rm -rf /var/lib/apt/lists* /tmp/* /var/tmp/*
@@ -29,6 +28,12 @@ COPY docker-configs/scot/backup.cfg.pl /opt/scot/etc/
2928
COPY docker-configs/scot/restore.cfg.pl /opt/scot/etc/
3029

3130

31+
RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10 && \
32+
echo "deb http://repo.mongodb.org/apt/ubuntu $(cat /etc/lsb-release | grep DISTRIB_CODENAME | cut -d= -f2)/mongodb-org/3.2 multiverse" | tee /etc/apt/sources.list.d/mongodb-org-3.2.list && \
33+
apt-get update && \
34+
apt-get install -y --force-yes --allow-downgrades pwgen mongodb-org-shell mongodb-org-tools && \
35+
echo "mongodb-org-shell hold" | dpkg --set-selections
36+
3237
RUN groupadd -g 2060 scot && \
3338
useradd -r -u 1060 -g scot scot
3439

Dockerfile-Stretch

-4
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,4 @@ COPY bin/ /opt/scot/bin/
99
COPY install/src/scot /opt/scot/etc/
1010
COPY docker-configs/stretch/stretch.cfg.pl /opt/scot/etc/
1111

12-
RUN groupadd -g 2060 scot && \
13-
useradd -r -u 1060 -g scot scot
14-
15-
USER scot
1612
CMD ["/usr/bin/perl", "/opt/scot/bin/stretch.pl"]

bin/abm.pl

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
use strict;
44
use warnings;
5-
use v5.18;
5+
use v5.16;
66

77
use lib '../../Scot-Internal-Modules/lib';
88
use lib '../lib';

bin/add_first_response.pl

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
use strict;
44
use warnings;
5-
use v5.18;
5+
use v5.16;
66

77
use lib '/opt/scot/lib';
88
use lib '../../Scot-Internal-Modules/lib';

bin/add_ip_bits.pl

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
use strict;
44
use warnings;
5-
use v5.18;
5+
use v5.16;
66

77
use lib '/opt/scot/lib';
88
use lib '../../Scot-Internal-Modules/lib';

bin/alert.pl

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
use strict;
44
use warnings;
5-
use v5.18;
5+
use v5.16;
66

77
use lib '../../Scot-Internal-Modules/lib';
88
use lib '../lib';

bin/amq_queue_read_test.pl

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env perl
22

33
use lib '../lib';
4-
use v5.18;
4+
use v5.16;
55

66
use strict;
77
use warnings;

bin/amq_queue_send_test.pl

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
use Data::Dumper;
44
use JSON;
55
use Net::STOMP::Client;
6-
use v5.18;
6+
use v5.16;
77

88
my $stomp = Net::STOMP::Client->new(
99
host => '127.0.0.1',

bin/backup.pl

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
use strict;
44
use warnings;
5-
use v5.18;
5+
use v5.16;
66
use lib '../lib';
77
use lib '/opt/scot/lib';
88

bin/beamup.pl

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
use lib '../../lib';
77
use lib '../../Scot-Internal-Modules/lib';
88
use lib '/opt/scot/lib';
9-
use v5.18;
9+
use v5.16;
1010
use Scot::App::Responder::BeamUp;
1111
use Scot::Env;
1212

bin/check_configs.pl

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env perl
22

3-
use v5.18;
3+
use v5.16;
44

55
use lib '../lib';
66
use Scot::Env;

bin/create_apikey.pl

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env perl
22
use strict;
33
use warnings;
4-
use v5.18;
4+
use v5.16;
55
use lib '../lib';
66
use lib '/opt/scot/lib';
77

bin/dailybrief.pl

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
use strict;
44
use warnings;
5-
use v5.18;
5+
use v5.16;
66

77
# use lib '../../Scot-Internal-Modules/lib';
88
use lib '../lib';

bin/david.pl

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
use strict;
44
use warnings;
5-
use v5.18;
5+
use v5.16;
66

77
use lib '../lib';
88
use Scot::Env;

bin/dedup_tag_source.pl

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
use lib '../lib';
44
use strict;
55
use warnings;
6-
use v5.18;
6+
use v5.16;
77

88
use Test::More;
99
use Test::Mojo;

bin/deduplinks.pl

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
use MongoDB;
44
use Data::Dumper;
5-
use v5.18;
5+
use v5.16;
66

77
my $mongo = MongoDB->connect->db('scot-prod');
88
my $collection = $mongo->get_collection('link');

bin/download_public_suffix.sh

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/bash
2+
3+
URL="https://raw.githubusercontent.com/publicsuffix/list/master/public_suffix_list.dat"
4+
5+
cd /opt/scot/etc
6+
wget $URL
7+

bin/entity_link_update.pl

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
use MongoDB;
44
use Data::Dumper;
5-
use v5.18;
5+
use v5.16;
66

77
#my $env = Scot::Env->new({
88
# config_file => "../../Scot-Internal-Modules/etc/elu.cfg.pl",

bin/esquery.pl

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
use strict;
44
use warnings;
5-
use v5.18;
5+
use v5.16;
66

77
use lib '../../Scot-Internal-Modules/lib';
88
use lib '../lib';

bin/fedrec.pl

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
use lib '../../lib';
77
use lib '../../Scot-Internal-Modules/lib';
88
use lib '/opt/scot/lib';
9-
use v5.18;
9+
use v5.16;
1010
use Scot::App::FedRec;
1111
use Data::Dumper;
1212

bin/fedup.pl

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
use lib '../../lib';
77
use lib '../../Scot-Internal-Modules/lib';
88
use lib '/opt/scot/lib';
9-
use v5.18;
9+
use v5.16;
1010
use Scot::App::Responder::FederateUp;
1111
use Data::Dumper;
1212

bin/find_cidr.pl

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
use strict;
44
use warnings;
5-
use v5.18;
5+
use v5.16;
66

77
use lib '/opt/scot/lib';
88
use lib '../../Scot-Internal-Modules/lib';

bin/fix_alert_stat.pl

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
use lib '/opt/scot/lib';
55
use Data::Dumper;
66
use Scot::Env;
7-
use v5.18;
7+
use v5.16;
88

99
my $env = Scot::Env->new(config_file=>'/opt/scot/etc/scot.cfg.pl');
1010
my $mongo = $env->mongo;

0 commit comments

Comments
 (0)