Skip to content
Snippets Groups Projects
Verified Commit 07439364 authored by Andrej Ramašeuski's avatar Andrej Ramašeuski
Browse files

Sync script take pouziva docker secrets

parent 788b8820
No related branches found
No related tags found
No related merge requests found
Pipeline #11401 passed
0.12.0
0.12.1
......@@ -6,10 +6,17 @@ use warnings;
use Mojo::File qw(curfile);
use lib curfile->dirname->sibling('lib')->to_string;
use File::Find;
use Path::Tiny qw( path );
use Mojo::Pg;
use SeMeet::Schema;
use SeMeet::Model::IAPI;
use constant SECRETS => '/run/secrets';
# env z docker secrets
find(sub { $ENV{$_} = path(SECRETS . "/$_")->slurp_utf8 }, SECRETS);
my $iapi = SeMeet::Model::IAPI->new( $ENV{CFG_IAPI} );
my $schema = SeMeet::Schema->connect({
dsn => $ENV{CFG_DB_DSN},
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment