Skip to content

Commit e433bda

Browse files
committed
Fix for pdns startup
1 parent 5b4fe24 commit e433bda

File tree

4 files changed

+19
-15
lines changed

4 files changed

+19
-15
lines changed

Jenkinsfile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,12 +112,16 @@ pipeline {
112112
// Dumps to analyze later
113113
sh 'mkdir -p debug'
114114
sh 'docker-compose cp fullstack:/data/logs/acme.sh.log debug/acme.sh.log'
115-
116115
sh 'docker logs $(docker-compose ps -q fullstack) > debug/docker_fullstack.log'
116+
sh 'docker-compose logs fullstack > debug/docker_compose_fullstack.log'
117117
sh 'docker logs $(docker-compose ps -q stepca) > debug/docker_stepca.log'
118+
sh 'docker-compose logs stepca > debug/docker_compose_stepca.log'
118119
sh 'docker logs $(docker-compose ps -q pdns) > debug/docker_pdns.log'
120+
sh 'docker-compose logs pdns > debug/docker_compose_pdns.log'
119121
sh 'docker logs $(docker-compose ps -q pdns-db) > debug/docker_pdns-db.log'
122+
sh 'docker-compose logs pdns-db > debug/docker_compose_pdns-db.log'
120123
sh 'docker logs $(docker-compose ps -q dnsrouter) > debug/docker_dnsrouter.log'
124+
sh 'docker-compose logs dnsrouter > debug/docker_compose_dnsrouter.log'
121125
junit 'test/results/junit/*'
122126
}
123127
}

docker/dev/pdns-db.sql

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ CREATE TABLE `comments` (
44
`name` varchar(255) NOT NULL,
55
`type` varchar(10) NOT NULL,
66
`modified_at` int(11) NOT NULL,
7-
`account` varchar(40) CHARACTER SET utf8mb3 DEFAULT NULL,
8-
`comment` text CHARACTER SET utf8mb3 NOT NULL,
7+
`account` varchar(40) DEFAULT NULL,
8+
`comment` text NOT NULL,
99
PRIMARY KEY (`id`),
1010
KEY `comments_name_type_idx` (`name`,`type`),
1111
KEY `comments_order_idx` (`domain_id`,`modified_at`)
12-
);
12+
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
1313

1414
CREATE TABLE `cryptokeys` (
1515
`id` int(11) NOT NULL AUTO_INCREMENT,
@@ -20,7 +20,7 @@ CREATE TABLE `cryptokeys` (
2020
`content` text DEFAULT NULL,
2121
PRIMARY KEY (`id`),
2222
KEY `domainidindex` (`domain_id`)
23-
);
23+
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
2424

2525
CREATE TABLE `domainmetadata` (
2626
`id` int(11) NOT NULL AUTO_INCREMENT,
@@ -29,7 +29,7 @@ CREATE TABLE `domainmetadata` (
2929
`content` text DEFAULT NULL,
3030
PRIMARY KEY (`id`),
3131
KEY `domainmetadata_idx` (`domain_id`,`kind`)
32-
);
32+
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
3333

3434
INSERT INTO `domainmetadata` VALUES (1,1,'SOA-EDIT-API','DEFAULT');
3535

@@ -40,10 +40,10 @@ CREATE TABLE `domains` (
4040
`last_check` int(11) DEFAULT NULL,
4141
`type` varchar(6) NOT NULL,
4242
`notified_serial` int(10) unsigned DEFAULT NULL,
43-
`account` varchar(40) CHARACTER SET utf8mb3 DEFAULT NULL,
43+
`account` varchar(40) DEFAULT NULL,
4444
PRIMARY KEY (`id`),
4545
UNIQUE KEY `name_index` (`name`)
46-
);
46+
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
4747

4848
INSERT INTO `domains` VALUES (1,'example.com','',NULL,'NATIVE',NULL,'');
4949

@@ -56,13 +56,13 @@ CREATE TABLE `records` (
5656
`ttl` int(11) DEFAULT NULL,
5757
`prio` int(11) DEFAULT NULL,
5858
`disabled` tinyint(1) DEFAULT 0,
59-
`ordername` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL,
59+
`ordername` varchar(255) DEFAULT NULL,
6060
`auth` tinyint(1) DEFAULT 1,
6161
PRIMARY KEY (`id`),
6262
KEY `nametype_index` (`name`,`type`),
6363
KEY `domain_id` (`domain_id`),
6464
KEY `ordername` (`ordername`)
65-
);
65+
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
6666

6767
INSERT INTO `records` VALUES
6868
(1,1,'example.com','NS','ns1.pdns',1500,0,0,NULL,1),
@@ -73,9 +73,9 @@ INSERT INTO `records` VALUES
7373
CREATE TABLE `supermasters` (
7474
`ip` varchar(64) NOT NULL,
7575
`nameserver` varchar(255) NOT NULL,
76-
`account` varchar(40) CHARACTER SET utf8mb3 NOT NULL,
76+
`account` varchar(40) NOT NULL,
7777
PRIMARY KEY (`ip`,`nameserver`)
78-
);
78+
) DEFAULT CHARSET=latin1;
7979

8080
CREATE TABLE `tsigkeys` (
8181
`id` int(11) NOT NULL AUTO_INCREMENT,
@@ -84,4 +84,4 @@ CREATE TABLE `tsigkeys` (
8484
`secret` varchar(255) DEFAULT NULL,
8585
PRIMARY KEY (`id`),
8686
UNIQUE KEY `namealgoindex` (`name`,`algorithm`)
87-
);
87+
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

docker/docker-compose.ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ services:
6767
volumes:
6868
- pdns_mysql_vol:/var/lib/mysql
6969
- '/etc/localtime:/etc/localtime:ro'
70-
- ./dev/pdns-db.sql:/docker-entrypoint-initdb.d/01_init.sql:ro
70+
- './dev/pdns-db.sql:/docker-entrypoint-initdb.d/01_init.sql:ro'
7171

7272
dnsrouter:
7373
image: jc21/dnsrouter

docker/docker-compose.dev.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ services:
114114
volumes:
115115
- npm_pdns_mysql_vol:/var/lib/mysql
116116
- /etc/localtime:/etc/localtime:ro
117-
- ./dev/pdns-db.sql:/docker-entrypoint-initdb.d/01_init.sql:ro
117+
- './dev/pdns-db.sql:/docker-entrypoint-initdb.d/01_init.sql:ro'
118118

119119
npm-dnsrouter:
120120
image: jc21/dnsrouter

0 commit comments

Comments
 (0)