feat: add full Zonemaster stack with Docker and Spanish UI
- Clone all 5 Zonemaster component repos (LDNS, Engine, CLI, Backend, GUI) - Dockerfile.backend: 8-stage multi-stage build LDNS→Engine→CLI→Backend - Dockerfile.gui: Astro static build served via nginx - docker-compose.yml: backend (internal) + frontend (port 5353) - nginx.conf: root redirects to /es/, /api/ proxied to backend - zonemaster-gui/config.ts: defaultLanguage set to 'es' (Spanish) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
42
zonemaster-backend/script/add-batch-job.pl
Normal file
42
zonemaster-backend/script/add-batch-job.pl
Normal file
@@ -0,0 +1,42 @@
|
||||
#!/usr/bin/env perl
|
||||
|
||||
# This script is for testing purpose only.
|
||||
|
||||
use 5.14.2;
|
||||
use warnings;
|
||||
|
||||
use Data::Dumper;
|
||||
use Encode qw[decode_utf8];
|
||||
use Zonemaster::Backend::RPCAPI;
|
||||
use Digest::MD5 qw(md5_hex);
|
||||
|
||||
binmode STDOUT, ':utf8';
|
||||
|
||||
my $e = Zonemaster::Backend::RPCAPI->new;
|
||||
|
||||
say "Starting add_batch_job";
|
||||
my @domains;
|
||||
for (my $i = 0; $i < 100; $i++) {
|
||||
push(@domains, substr(md5_hex(rand(10000)), 0, 5).".fr");
|
||||
}
|
||||
|
||||
#die Dumper(\@domains);
|
||||
|
||||
$e->add_api_user({ username => 'test_user', api_key => 'API_KEY_01'});
|
||||
|
||||
$e->add_batch_job(
|
||||
{
|
||||
client_id => 'Add Script',
|
||||
client_version => '1.0',
|
||||
username => 'test_user',
|
||||
api_key => 'API_KEY_01',
|
||||
test_params => {
|
||||
client_id => 'Add Script',
|
||||
client_version => '1.0',
|
||||
ipv4 => 1, # 0 or 1, is the ipv4 checkbox checked
|
||||
ipv6 => 1, # 0 or 1, is the ipv6 checkbox checked
|
||||
profile => 'default', # the id if the Test profile listbox (unused)
|
||||
},
|
||||
domains => \@domains,
|
||||
}
|
||||
);
|
||||
Reference in New Issue
Block a user