Skip to content

Commit

Permalink
Merge branch 'master' of baltig.sandia.gov:scot/SCOT
Browse files Browse the repository at this point in the history
  • Loading branch information
brymon68 committed Feb 4, 2019
2 parents ab9707f + 3b0ca54 commit f776c67
Show file tree
Hide file tree
Showing 4,327 changed files with 806,493 additions and 113,966 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,5 @@ package-lock.json
#scot.js
scot-debug.js
.idea/
scot-ui/build/static/js/
scot-ui/build/
13 changes: 13 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
stages:
- test

before_script:
- export http_proxy=http://wwwproxy.sandia.gov:80
- export https_proxy=http://wwwproxy.sandia.gov:80
- export no_proxy=*.sandia.gov
test:
stage: test
script:
- perl -MDevel::Cover t/api/all.t
coverage: /Total\s+.+\s(\d+\.\d+?)$/
2 changes: 0 additions & 2 deletions Dockerfile-Apache
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@ ENV APACHE_RUN_USER=www-data \
COPY ./docker-configs/apache/run.sh /scripts/
RUN chmod +x /scripts/run.sh



RUN apt-get update && \
apt-get install -y apache2 libldap2-dev libsasl2-dev libssl-dev apache2 libapache2-mod-wsgi \
apache2 libapache2-mod-authnz-external libapache2-mod-rpaf && \
Expand Down
5 changes: 0 additions & 5 deletions Dockerfile-Flair
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,4 @@ COPY bin/flairer.pl /opt/scot/bin/
COPY install/src/scot /opt/scot/etc/
COPY docker-configs/flair/flair.cfg.pl /opt/scot/etc/

RUN groupadd -g 2060 scot && \
useradd -r -u 1060 -g scot scot


USER scot
CMD ["/usr/bin/perl", "/opt/scot/bin/flairer.pl"]
5 changes: 0 additions & 5 deletions Dockerfile-Game
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,4 @@ COPY lib/Scot/App/Game.pm /opt/scot/lib/
COPY install/src/scot /opt/scot/etc/
COPY docker-configs/game/game.cfg.pl /opt/scot/etc/


RUN groupadd -g 2060 scot && \
useradd -r -u 1060 -g scot scot

USER scot
CMD ["/usr/bin/perl", "/opt/scot/bin/game.pl"]
6 changes: 0 additions & 6 deletions Dockerfile-Mail
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,4 @@ COPY docker-configs/mail/Mail.pm /opt/scot/lib/Scot/App/
COPY install/src/scot /opt/scot/etc/
COPY docker-configs/mail/alert.cfg.pl /opt/scot/etc/


RUN groupadd -g 2060 scot && \
useradd -r -u 1060 -g scot scot

#USER scot

CMD ["/usr/bin/perl", "/opt/scot/bin/alert.pl"]
1 change: 0 additions & 1 deletion Dockerfile-Mongodb
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,3 @@ USER mongodb:mongodb


CMD ["/run.sh"]

3 changes: 1 addition & 2 deletions Dockerfile-Perl
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,9 @@ ENV no_proxy="elastic,mongodb,scot,activemq,apache"
ENV NO_PROXY="elastic,mongodb,scot,activemq,apache"



RUN apt-get update && \
apt-get -qy upgrade && \
apt-get install -qy perl build-essential cpanminus perl-doc perl-base perl-modules \
apt-get install -qy perl build-essential cpanminus perl-doc perl-base perl-modules curl vim ssmtp \
perlmagick perltidy libcurses-perl libmagic-dev libxml-perl libyaml-perl libwww-mechanize-perl \
libjson-perl libmath-gmp-perl librose-db-perl libtree-simple-perl libtask-weaken-perl libtree-simple-visitorfactory-perl \
libalgorithm-c3-perl libapparmor-perl libarchive-zip-perl libauthen-krb5-simple-perl libauthen-sasl-perl \
Expand Down
6 changes: 0 additions & 6 deletions Dockerfile-Reflair
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,4 @@ COPY install/src/scot /opt/scot/etc/
COPY docker-configs/reflair/reflair.cfg.pl /opt/scot/etc/
COPY docker-configs/scot/scot.cfg.pl /opt/scot/etc/

RUN groupadd -g 2060 scot && \
useradd -r -u 1060 -g scot scot


USER scot

CMD ["/usr/bin/perl", "/opt/scot/bin/reflair.pl"]
9 changes: 7 additions & 2 deletions Dockerfile-Scot
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ ENV DEBIAN_FRONTEND="noninteractive" \


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


RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10 && \
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 && \
apt-get update && \
apt-get install -y --force-yes --allow-downgrades pwgen mongodb-org-shell mongodb-org-tools && \
echo "mongodb-org-shell hold" | dpkg --set-selections

RUN groupadd -g 2060 scot && \
useradd -r -u 1060 -g scot scot

Expand Down
4 changes: 0 additions & 4 deletions Dockerfile-Stretch
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,4 @@ COPY bin/ /opt/scot/bin/
COPY install/src/scot /opt/scot/etc/
COPY docker-configs/stretch/stretch.cfg.pl /opt/scot/etc/

RUN groupadd -g 2060 scot && \
useradd -r -u 1060 -g scot scot

USER scot
CMD ["/usr/bin/perl", "/opt/scot/bin/stretch.pl"]
2 changes: 1 addition & 1 deletion bin/abm.pl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

use strict;
use warnings;
use v5.18;
use v5.16;

use lib '../../Scot-Internal-Modules/lib';
use lib '../lib';
Expand Down
2 changes: 1 addition & 1 deletion bin/add_first_response.pl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

use strict;
use warnings;
use v5.18;
use v5.16;

use lib '/opt/scot/lib';
use lib '../../Scot-Internal-Modules/lib';
Expand Down
2 changes: 1 addition & 1 deletion bin/add_ip_bits.pl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

use strict;
use warnings;
use v5.18;
use v5.16;

use lib '/opt/scot/lib';
use lib '../../Scot-Internal-Modules/lib';
Expand Down
2 changes: 1 addition & 1 deletion bin/alert.pl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

use strict;
use warnings;
use v5.18;
use v5.16;

use lib '../../Scot-Internal-Modules/lib';
use lib '../lib';
Expand Down
2 changes: 1 addition & 1 deletion bin/amq_queue_read_test.pl
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env perl

use lib '../lib';
use v5.18;
use v5.16;

use strict;
use warnings;
Expand Down
2 changes: 1 addition & 1 deletion bin/amq_queue_send_test.pl
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
use Data::Dumper;
use JSON;
use Net::STOMP::Client;
use v5.18;
use v5.16;

my $stomp = Net::STOMP::Client->new(
host => '127.0.0.1',
Expand Down
2 changes: 1 addition & 1 deletion bin/backup.pl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

use strict;
use warnings;
use v5.18;
use v5.16;
use lib '../lib';
use lib '/opt/scot/lib';

Expand Down
2 changes: 1 addition & 1 deletion bin/beamup.pl
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
use lib '../../lib';
use lib '../../Scot-Internal-Modules/lib';
use lib '/opt/scot/lib';
use v5.18;
use v5.16;
use Scot::App::Responder::BeamUp;
use Scot::Env;

Expand Down
2 changes: 1 addition & 1 deletion bin/check_configs.pl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env perl

use v5.18;
use v5.16;

use lib '../lib';
use Scot::Env;
Expand Down
2 changes: 1 addition & 1 deletion bin/create_apikey.pl
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env perl
use strict;
use warnings;
use v5.18;
use v5.16;
use lib '../lib';
use lib '/opt/scot/lib';

Expand Down
2 changes: 1 addition & 1 deletion bin/dailybrief.pl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

use strict;
use warnings;
use v5.18;
use v5.16;

# use lib '../../Scot-Internal-Modules/lib';
use lib '../lib';
Expand Down
2 changes: 1 addition & 1 deletion bin/david.pl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

use strict;
use warnings;
use v5.18;
use v5.16;

use lib '../lib';
use Scot::Env;
Expand Down
2 changes: 1 addition & 1 deletion bin/dedup_tag_source.pl
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
use lib '../lib';
use strict;
use warnings;
use v5.18;
use v5.16;

use Test::More;
use Test::Mojo;
Expand Down
2 changes: 1 addition & 1 deletion bin/deduplinks.pl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

use MongoDB;
use Data::Dumper;
use v5.18;
use v5.16;

my $mongo = MongoDB->connect->db('scot-prod');
my $collection = $mongo->get_collection('link');
Expand Down
7 changes: 7 additions & 0 deletions bin/download_public_suffix.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash

URL="https://raw.githubusercontent.com/publicsuffix/list/master/public_suffix_list.dat"

cd /opt/scot/etc
wget $URL

2 changes: 1 addition & 1 deletion bin/entity_link_update.pl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

use MongoDB;
use Data::Dumper;
use v5.18;
use v5.16;

#my $env = Scot::Env->new({
# config_file => "../../Scot-Internal-Modules/etc/elu.cfg.pl",
Expand Down
2 changes: 1 addition & 1 deletion bin/esquery.pl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

use strict;
use warnings;
use v5.18;
use v5.16;

use lib '../../Scot-Internal-Modules/lib';
use lib '../lib';
Expand Down
2 changes: 1 addition & 1 deletion bin/fedrec.pl
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
use lib '../../lib';
use lib '../../Scot-Internal-Modules/lib';
use lib '/opt/scot/lib';
use v5.18;
use v5.16;
use Scot::App::FedRec;
use Data::Dumper;

Expand Down
2 changes: 1 addition & 1 deletion bin/fedup.pl
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
use lib '../../lib';
use lib '../../Scot-Internal-Modules/lib';
use lib '/opt/scot/lib';
use v5.18;
use v5.16;
use Scot::App::Responder::FederateUp;
use Data::Dumper;

Expand Down
2 changes: 1 addition & 1 deletion bin/find_cidr.pl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

use strict;
use warnings;
use v5.18;
use v5.16;

use lib '/opt/scot/lib';
use lib '../../Scot-Internal-Modules/lib';
Expand Down
2 changes: 1 addition & 1 deletion bin/fix_alert_stat.pl
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
use lib '/opt/scot/lib';
use Data::Dumper;
use Scot::Env;
use v5.18;
use v5.16;

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

0 comments on commit f776c67

Please sign in to comment.