Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions IFComp-Dev/script/build_zip_of_zips.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh

docker compose exec app perl ./script/build_zip_of_zips.pl --docker
8 changes: 7 additions & 1 deletion IFComp/script/build_zip_of_zips.pl
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,14 @@
use Path::Class;
use File::Basename;
use Archive::Zip qw(AZ_OK);
use Getopt::Long;

my $schema = IFComp::Schema->connect( 'dbi:mysql:ifcomp', 'root', '' );
my $docker;
GetOptions( 'docker' => \$docker )
or die "Usage: $0 [--docker]\n";

my $dsn = $docker ? 'dbi:mysql:database=ifcomp;host=db' : 'dbi:mysql:ifcomp';
my $schema = IFComp::Schema->connect( $dsn, 'root', '' );
$schema->entry_directory( Path::Class::Dir->new("$FindBin::Bin/../entries") );
my $comp = $schema->resultset('Comp');

Expand Down
Loading