Skip to content

Commit 39f9fed

Browse files
committed
[DM-16383] Finish off creating the mock-qserv.
It doesn't have any data, which isn't great, but the tables are there, you can connect with the same username/password with the same DNS name. Now off to NCSA!
1 parent 02c012e commit 39f9fed

17 files changed

+2036
-10
lines changed

build.sh

+1
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,5 @@ cp build/libs/tap##1000.war docker
66
(cd docker && docker build . -t lsstdax/oracle-db-demo:latest -f Dockerfile.oracle)
77
(cd docker && docker build . -t lsstdax/postgresql-db-demo:latest -f Dockerfile.postgresql)
88
(cd docker && docker build . -t lsstdax/tap-schema-db:latest -f Dockerfile.tap_schema)
9+
(cd docker && docker build . -t lsstdax/mock-qserv:latest -f Dockerfile.mock_qserv)
910
(cd docker && docker build . -t lsstdax/presto:latest -f Dockerfile.presto)

docker/Dockerfile.mock_qserv

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
FROM mysql/mysql-server:8.0.13-1.1.8
2+
3+
ADD ./mock-qserv/* /docker-entrypoint-initdb.d/

docker/mock-qserv/0001_wise_00.sql

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
CREATE DATABASE wise_00;
2+
CREATE USER 'qsmaster'@'%' IDENTIFIED WITH mysql_native_password;
3+
GRANT SELECT ON wise_00.* TO 'qsmaster'@'%';
4+
FLUSH PRIVILEGES;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
USE wise_00;
2+
3+
CREATE TABLE `allsky_2band_p1bm_frm` (
4+
5+
`scan_id` CHAR(6) DEFAULT NULL,
6+
`scangrp` CHAR(2) DEFAULT NULL,
7+
`frame_num` INT DEFAULT NULL,
8+
`band` INT DEFAULT NULL,
9+
`naxis` INT DEFAULT NULL,
10+
`naxis1` INT DEFAULT NULL,
11+
`naxis2` INT DEFAULT NULL,
12+
`wrelease` CHAR(15) DEFAULT NULL,
13+
`crpix1` DECIMAL(4,1) DEFAULT NULL,
14+
`crpix2` DECIMAL(4,1) DEFAULT NULL,
15+
`crval1` DECIMAL(15,12) DEFAULT NULL,
16+
`crval2` DECIMAL(15,12) DEFAULT NULL,
17+
`ctype1` CHAR(13) DEFAULT NULL,
18+
`ctype2` CHAR(13) DEFAULT NULL,
19+
`equinox` DECIMAL(5,1) DEFAULT NULL,
20+
`bunit` CHAR(20) DEFAULT NULL,
21+
`elon` DECIMAL(15,12) DEFAULT NULL,
22+
`elat` DECIMAL(15,12) DEFAULT NULL,
23+
`glon` DECIMAL(15,12) DEFAULT NULL,
24+
`glat` DECIMAL(15,12) DEFAULT NULL,
25+
`ra1` DECIMAL(15,12) DEFAULT NULL,
26+
`dec1` DECIMAL(15,12) DEFAULT NULL,
27+
`ra2` DECIMAL(15,12) DEFAULT NULL,
28+
`dec2` DECIMAL(15,12) DEFAULT NULL,
29+
`ra3` DECIMAL(15,12) DEFAULT NULL,
30+
`dec3` DECIMAL(15,12) DEFAULT NULL,
31+
`ra4` DECIMAL(15,12) DEFAULT NULL,
32+
`dec4` DECIMAL(15,12) DEFAULT NULL,
33+
`magzp` DECIMAL(7,5) DEFAULT NULL,
34+
`magzpunc` DECIMAL(7,6) DEFAULT NULL,
35+
`modeint` DECIMAL(9,3) DEFAULT NULL,
36+
`l0file` CHAR(200) DEFAULT NULL,
37+
`date_obs` CHAR(24) DEFAULT NULL,
38+
`mjd_obs` DECIMAL(13,8) DEFAULT NULL,
39+
`icaldir` CHAR(200) DEFAULT NULL,
40+
`dtanneal` DECIMAL(17,11) DEFAULT NULL,
41+
`utanneal` CHAR(24) DEFAULT NULL,
42+
`unixt` DECIMAL(15,5) DEFAULT NULL,
43+
`ephemt` DECIMAL(15,6) DEFAULT NULL,
44+
`exptime` DECIMAL(3,1) DEFAULT NULL,
45+
`tsamp` DECIMAL(3,1) DEFAULT NULL,
46+
`wcdelt1` DECIMAL(19,18) DEFAULT NULL,
47+
`wcdelt2` DECIMAL(19,18) DEFAULT NULL,
48+
`crder1` FLOAT DEFAULT NULL,
49+
`crder2` FLOAT DEFAULT NULL,
50+
`csdradec` FLOAT DEFAULT NULL,
51+
`pxscal1` DECIMAL(15,14) DEFAULT NULL,
52+
`pxscal2` DECIMAL(15,14) DEFAULT NULL,
53+
`uncrts1` FLOAT DEFAULT NULL,
54+
`uncrts2` FLOAT DEFAULT NULL,
55+
`wcrota2` DECIMAL(16,13) DEFAULT NULL,
56+
`pa` DECIMAL(16,13) DEFAULT NULL,
57+
`uncrtpa` DECIMAL(19,18) DEFAULT NULL,
58+
`skew` DECIMAL(3,1) DEFAULT NULL,
59+
`cd1_1` DECIMAL(19,18) DEFAULT NULL,
60+
`cd1_2` DECIMAL(19,18) DEFAULT NULL,
61+
`cd2_1` DECIMAL(19,18) DEFAULT NULL,
62+
`cd2_2` DECIMAL(19,18) DEFAULT NULL,
63+
`debgain` DECIMAL(8,3) DEFAULT NULL,
64+
`febgain` DECIMAL(9,4) DEFAULT NULL,
65+
`moon_sep` DECIMAL(6,3) DEFAULT NULL,
66+
`saa_sep` DECIMAL(6,3) DEFAULT NULL,
67+
`qual_frame` INT DEFAULT NULL,
68+
`qc_fact` DECIMAL(2,1) DEFAULT NULL,
69+
`qi_fact` DECIMAL(2,1) DEFAULT NULL,
70+
`qn_fact` DECIMAL(2,1) DEFAULT NULL,
71+
`qa_fact` DECIMAL(2,1) DEFAULT NULL,
72+
`qual_scan` INT DEFAULT NULL,
73+
`qs1_fact` DECIMAL(2,1) DEFAULT NULL,
74+
`qs5_fact` DECIMAL(2,1) DEFAULT NULL,
75+
`qp_fact` DECIMAL(2,1) DEFAULT NULL,
76+
`date_imgprep` CHAR(20) DEFAULT NULL,
77+
`cntr` BIGINT DEFAULT NULL
78+
79+
) ENGINE=MyISAM;
+148
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,148 @@
1+
USE wise_00;
2+
3+
CREATE TABLE `allsky_2band_p1bs_psd` (
4+
5+
`SOURCE_ID` VARCHAR(16),
6+
`FRAME_NUM` INT DEFAULT NULL,
7+
`SCAN_ID` VARCHAR(6) DEFAULT NULL,
8+
`SRC` INT DEFAULT NULL,
9+
`RA` DECIMAL(10,7) DEFAULT NULL,
10+
`DECL` DECIMAL(9,7) DEFAULT NULL,
11+
`SIGRA` DECIMAL(7,4) DEFAULT NULL,
12+
`SIGDEC` DECIMAL(7,4) DEFAULT NULL,
13+
`SIGRADEC` DECIMAL(7,4) DEFAULT NULL,
14+
`GLON` DECIMAL(10,7) DEFAULT NULL,
15+
`GLAT` DECIMAL(9,7) DEFAULT NULL,
16+
`ELON` DECIMAL(10,7) DEFAULT NULL,
17+
`ELAT` DECIMAL(9,7) DEFAULT NULL,
18+
`W1X` DECIMAL(7,3) DEFAULT NULL,
19+
`W1Y` DECIMAL(7,3) DEFAULT NULL,
20+
`W2X` DECIMAL(7,3) DEFAULT NULL,
21+
`W2Y` DECIMAL(7,3) DEFAULT NULL,
22+
`W1SKY` DECIMAL(8,3) DEFAULT NULL,
23+
`W1SIGSK` DECIMAL(6,3) DEFAULT NULL,
24+
`W1CONF` DECIMAL(8,3) DEFAULT NULL,
25+
`W2SKY` DECIMAL(8,3) DEFAULT NULL,
26+
`W2SIGSK` DECIMAL(6,3) DEFAULT NULL,
27+
`W2CONF` DECIMAL(8,3) DEFAULT NULL,
28+
`W1SNR` DECIMAL(6,1) DEFAULT NULL,
29+
`W2SNR` DECIMAL(6,1) DEFAULT NULL,
30+
`W1FLUX` FLOAT DEFAULT NULL,
31+
`W1SIGFLUX` FLOAT DEFAULT NULL,
32+
`W2FLUX` FLOAT DEFAULT NULL,
33+
`W2SIGFLUX` FLOAT DEFAULT NULL,
34+
`W1MPRO` DECIMAL(5,3) DEFAULT NULL,
35+
`W1SIGMPRO` DECIMAL(4,3) DEFAULT NULL,
36+
`W1RCHI2` FLOAT DEFAULT NULL,
37+
`W2MPRO` DECIMAL(5,3) DEFAULT NULL,
38+
`W2SIGMPRO` DECIMAL(4,3) DEFAULT NULL,
39+
`W2RCHI2` FLOAT DEFAULT NULL,
40+
`RCHI2` FLOAT DEFAULT NULL,
41+
`NB` INT DEFAULT NULL,
42+
`NA` INT DEFAULT NULL,
43+
`W1FRTR` DECIMAL(4,3) DEFAULT NULL,
44+
`W2FRTR` DECIMAL(4,3) DEFAULT NULL,
45+
`W1SAT` DECIMAL(4,3) DEFAULT NULL,
46+
`W2SAT` DECIMAL(4,3) DEFAULT NULL,
47+
`SATNUM` VARCHAR(4) DEFAULT NULL,
48+
`W1MAG` DECIMAL(5,3) DEFAULT NULL,
49+
`W1SIGM` DECIMAL(4,3) DEFAULT NULL,
50+
`W1FLG` INT DEFAULT NULL,
51+
`W1MCOR` DECIMAL(4,3) DEFAULT NULL,
52+
`W2MAG` DECIMAL(5,3) DEFAULT NULL,
53+
`W2SIGM` DECIMAL(4,3) DEFAULT NULL,
54+
`W2FLG` INT DEFAULT NULL,
55+
`W2MCOR` DECIMAL(4,3) DEFAULT NULL,
56+
`W1MAG_1` DECIMAL(5,3) DEFAULT NULL,
57+
`W1SIGM_1` DECIMAL(4,3) DEFAULT NULL,
58+
`W1FLG_1` INT DEFAULT NULL,
59+
`W2MAG_1` DECIMAL(5,3) DEFAULT NULL,
60+
`W2SIGM_1` DECIMAL(4,3) DEFAULT NULL,
61+
`W2FLG_1` INT DEFAULT NULL,
62+
`W1MAG_2` DECIMAL(5,3) DEFAULT NULL,
63+
`W1SIGM_2` DECIMAL(4,3) DEFAULT NULL,
64+
`W1FLG_2` INT DEFAULT NULL,
65+
`W2MAG_2` DECIMAL(5,3) DEFAULT NULL,
66+
`W2SIGM_2` DECIMAL(4,3) DEFAULT NULL,
67+
`W2FLG_2` INT DEFAULT NULL,
68+
`W1MAG_3` DECIMAL(5,3) DEFAULT NULL,
69+
`W1SIGM_3` DECIMAL(4,3) DEFAULT NULL,
70+
`W1FLG_3` INT DEFAULT NULL,
71+
`W2MAG_3` DECIMAL(5,3) DEFAULT NULL,
72+
`W2SIGM_3` DECIMAL(4,3) DEFAULT NULL,
73+
`W2FLG_3` INT DEFAULT NULL,
74+
`W1MAG_4` DECIMAL(5,3) DEFAULT NULL,
75+
`W1SIGM_4` DECIMAL(4,3) DEFAULT NULL,
76+
`W1FLG_4` INT DEFAULT NULL,
77+
`W2MAG_4` DECIMAL(5,3) DEFAULT NULL,
78+
`W2SIGM_4` DECIMAL(4,3) DEFAULT NULL,
79+
`W2FLG_4` INT DEFAULT NULL,
80+
`W1MAG_5` DECIMAL(5,3) DEFAULT NULL,
81+
`W1SIGM_5` DECIMAL(4,3) DEFAULT NULL,
82+
`W1FLG_5` INT DEFAULT NULL,
83+
`W2MAG_5` DECIMAL(5,3) DEFAULT NULL,
84+
`W2SIGM_5` DECIMAL(4,3) DEFAULT NULL,
85+
`W2FLG_5` INT DEFAULT NULL,
86+
`W1MAG_6` DECIMAL(5,3) DEFAULT NULL,
87+
`W1SIGM_6` DECIMAL(4,3) DEFAULT NULL,
88+
`W1FLG_6` INT DEFAULT NULL,
89+
`W2MAG_6` DECIMAL(5,3) DEFAULT NULL,
90+
`W2SIGM_6` DECIMAL(4,3) DEFAULT NULL,
91+
`W2FLG_6` INT DEFAULT NULL,
92+
`W1MAG_7` DECIMAL(5,3) DEFAULT NULL,
93+
`W1SIGM_7` DECIMAL(4,3) DEFAULT NULL,
94+
`W1FLG_7` INT DEFAULT NULL,
95+
`W2MAG_7` DECIMAL(5,3) DEFAULT NULL,
96+
`W2SIGM_7` DECIMAL(4,3) DEFAULT NULL,
97+
`W2FLG_7` INT DEFAULT NULL,
98+
`W1MAG_8` DECIMAL(5,3) DEFAULT NULL,
99+
`W1SIGM_8` DECIMAL(4,3) DEFAULT NULL,
100+
`W1FLG_8` INT DEFAULT NULL,
101+
`W2MAG_8` DECIMAL(5,3) DEFAULT NULL,
102+
`W2SIGM_8` DECIMAL(4,3) DEFAULT NULL,
103+
`W2FLG_8` INT DEFAULT NULL,
104+
`W1PZPMAG` DECIMAL(6,4) DEFAULT NULL,
105+
`W2PZPMAG` DECIMAL(6,4) DEFAULT NULL,
106+
`W1PZP` DECIMAL(6,4) DEFAULT NULL,
107+
`W2PZP` DECIMAL(6,4) DEFAULT NULL,
108+
`W1AZPMAG` DECIMAL(6,4) DEFAULT NULL,
109+
`W2AZPMAG` DECIMAL(6,4) DEFAULT NULL,
110+
`W1AZP` DECIMAL(6,4) DEFAULT NULL,
111+
`W2AZP` DECIMAL(6,4) DEFAULT NULL,
112+
`W1CC_MAP` INT DEFAULT NULL,
113+
`W1CC_MAP_STR` VARCHAR(9) DEFAULT NULL,
114+
`W2CC_MAP` INT DEFAULT NULL,
115+
`W2CC_MAP_STR` VARCHAR(9) DEFAULT NULL,
116+
`CC_FLAGS` VARCHAR(4) DEFAULT NULL,
117+
`QUAL_FRAME` INT DEFAULT NULL,
118+
`QI_FACT` DECIMAL(2,1) DEFAULT NULL,
119+
`SAA_SEP` DECIMAL(6,3) DEFAULT NULL,
120+
`DTANNEAL` DECIMAL(17,11) DEFAULT NULL,
121+
`MOON_MASKED` VARCHAR(4) DEFAULT NULL,
122+
`DET_BIT` INT DEFAULT NULL,
123+
`PH_QUAL` VARCHAR(4) DEFAULT NULL,
124+
`REL` VARCHAR(1) DEFAULT NULL,
125+
`EXT_FLG` INT DEFAULT NULL,
126+
`SSO_FLG` INT DEFAULT NULL,
127+
`TMASS_KEY` INT DEFAULT NULL,
128+
`R_2MASS` DECIMAL(5,3) DEFAULT NULL,
129+
`PA_2MASS` DECIMAL(4,1) DEFAULT NULL,
130+
`N_2MASS` INT DEFAULT NULL,
131+
`J_M_2MASS` DECIMAL(5,3) DEFAULT NULL,
132+
`J_MSIG_2MASS` DECIMAL(4,3) DEFAULT NULL,
133+
`H_M_2MASS` DECIMAL(5,3) DEFAULT NULL,
134+
`H_MSIG_2MASS` DECIMAL(4,3) DEFAULT NULL,
135+
`K_M_2MASS` DECIMAL(5,3) DEFAULT NULL,
136+
`K_MSIG_2MASS` DECIMAL(4,3) DEFAULT NULL,
137+
`MJD` DECIMAL(11,6) DEFAULT NULL,
138+
`LOAD_ID` INT DEFAULT NULL,
139+
`CNTR` DECIMAL(19,0) DEFAULT NULL,
140+
`X` DECIMAL(17,16) DEFAULT NULL,
141+
`Y` DECIMAL(17,16) DEFAULT NULL,
142+
`Z` DECIMAL(17,16) DEFAULT NULL,
143+
`SPT_IND` INT DEFAULT NULL,
144+
`HTM20` DECIMAL(19,0) DEFAULT NULL,
145+
146+
PRIMARY KEY(`SOURCE_ID`)
147+
148+
) ENGINE=MyISAM;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
USE wise_00;
2+
3+
CREATE TABLE `allsky_3band_p1bm_frm` (
4+
5+
`scan_id` CHAR(6) DEFAULT NULL,
6+
`scangrp` CHAR(2) DEFAULT NULL,
7+
`frame_num` INT DEFAULT NULL,
8+
`band` INT DEFAULT NULL,
9+
`naxis` INT DEFAULT NULL,
10+
`naxis1` INT DEFAULT NULL,
11+
`naxis2` INT DEFAULT NULL,
12+
`wrelease` CHAR(15) DEFAULT NULL,
13+
`crpix1` DECIMAL(4,1) DEFAULT NULL,
14+
`crpix2` DECIMAL(4,1) DEFAULT NULL,
15+
`crval1` DECIMAL(15,12) DEFAULT NULL,
16+
`crval2` DECIMAL(15,12) DEFAULT NULL,
17+
`ctype1` CHAR(13) DEFAULT NULL,
18+
`ctype2` CHAR(13) DEFAULT NULL,
19+
`equinox` DECIMAL(5,1) DEFAULT NULL,
20+
`bunit` CHAR(20) DEFAULT NULL,
21+
`elon` DECIMAL(15,12) DEFAULT NULL,
22+
`elat` DECIMAL(15,12) DEFAULT NULL,
23+
`glon` DECIMAL(15,12) DEFAULT NULL,
24+
`glat` DECIMAL(15,12) DEFAULT NULL,
25+
`ra1` DECIMAL(15,12) DEFAULT NULL,
26+
`dec1` DECIMAL(15,12) DEFAULT NULL,
27+
`ra2` DECIMAL(15,12) DEFAULT NULL,
28+
`dec2` DECIMAL(15,12) DEFAULT NULL,
29+
`ra3` DECIMAL(15,12) DEFAULT NULL,
30+
`dec3` DECIMAL(15,12) DEFAULT NULL,
31+
`ra4` DECIMAL(15,12) DEFAULT NULL,
32+
`dec4` DECIMAL(15,12) DEFAULT NULL,
33+
`magzp` DECIMAL(7,5) DEFAULT NULL,
34+
`magzpunc` DECIMAL(7,6) DEFAULT NULL,
35+
`modeint` DECIMAL(9,3) DEFAULT NULL,
36+
`l0file` CHAR(200) DEFAULT NULL,
37+
`date_obs` CHAR(24) DEFAULT NULL,
38+
`mjd_obs` DECIMAL(13,8) DEFAULT NULL,
39+
`dtanneal` DECIMAL(17,11) DEFAULT NULL,
40+
`utanneal` CHAR(24) DEFAULT NULL,
41+
`unixt` DECIMAL(15,5) DEFAULT NULL,
42+
`ephemt` DECIMAL(15,6) DEFAULT NULL,
43+
`exptime` DECIMAL(3,1) DEFAULT NULL,
44+
`tsamp` DECIMAL(3,1) DEFAULT NULL,
45+
`wcdelt1` DECIMAL(19,18) DEFAULT NULL,
46+
`wcdelt2` DECIMAL(19,18) DEFAULT NULL,
47+
`crder1` FLOAT DEFAULT NULL,
48+
`crder2` FLOAT DEFAULT NULL,
49+
`csdradec` FLOAT DEFAULT NULL,
50+
`pxscal1` DECIMAL(15,14) DEFAULT NULL,
51+
`pxscal2` DECIMAL(15,14) DEFAULT NULL,
52+
`uncrts1` FLOAT DEFAULT NULL,
53+
`uncrts2` FLOAT DEFAULT NULL,
54+
`wcrota2` DECIMAL(16,13) DEFAULT NULL,
55+
`pa` DECIMAL(16,13) DEFAULT NULL,
56+
`uncrtpa` DECIMAL(19,18) DEFAULT NULL,
57+
`skew` DECIMAL(3,1) DEFAULT NULL,
58+
`cd1_1` DECIMAL(19,18) DEFAULT NULL,
59+
`cd1_2` DECIMAL(19,18) DEFAULT NULL,
60+
`cd2_1` DECIMAL(19,18) DEFAULT NULL,
61+
`cd2_2` DECIMAL(19,18) DEFAULT NULL,
62+
`debgain` DECIMAL(8,3) DEFAULT NULL,
63+
`febgain` DECIMAL(9,4) DEFAULT NULL,
64+
`moon_sep` DECIMAL(6,3) DEFAULT NULL,
65+
`saa_sep` DECIMAL(6,3) DEFAULT NULL,
66+
`qual_frame` INT DEFAULT NULL,
67+
`qc_fact` DECIMAL(2,1) DEFAULT NULL,
68+
`qi_fact` DECIMAL(2,1) DEFAULT NULL,
69+
`qn_fact` DECIMAL(2,1) DEFAULT NULL,
70+
`qa_fact` DECIMAL(2,1) DEFAULT NULL,
71+
`qual_scan` INT DEFAULT NULL,
72+
`qs1_fact` DECIMAL(2,1) DEFAULT NULL,
73+
`qs5_fact` DECIMAL(2,1) DEFAULT NULL,
74+
`qp_fact` DECIMAL(2,1) DEFAULT NULL,
75+
`cntr` BIGINT DEFAULT NULL
76+
77+
) ENGINE=MyISAM;

0 commit comments

Comments
 (0)