diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..ffea7e3 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "services/amdadb"] + path = services/amdadb + url = git@voparis-gitlab.obspm.fr:vespa/dachs/services/omp/cdpp-epntap.irap.omp.eu/amdadb.git diff --git a/conf/.env b/conf/.env index 9cd2f6c..640c447 100644 --- a/conf/.env +++ b/conf/.env @@ -1,6 +1,6 @@ # enter here all key = value you need to path in docker-compose.yaml file VERSION=11 -SERVER=voparis-tap-planeto +SERVER=cdpp-tap # depot sans l'extension .git -GIT=voparis-tap-planeto -GITURL=https://gitlab.obspm.fr/phamy +GIT=cdpp-tap +GITURL=https://gitlab.irap.omp.eu/CDPP/ diff --git a/conf/000-default.conf b/conf/000-default.conf index f9c5101..6dae2ba 100644 --- a/conf/000-default.conf +++ b/conf/000-default.conf @@ -4,7 +4,7 @@ # ************************************ - ServerAdmin pierre.lesidaner@obspm.fr + ServerAdmin amda@irap.omp.eu ## Vhost docroot DocumentRoot "/var/www" ## Alias declarations for resources outside the DocumentRoot diff --git a/conf/awstats.dachs.conf b/conf/awstats.dachs.conf index f3b84ab..06a46e0 100644 --- a/conf/awstats.dachs.conf +++ b/conf/awstats.dachs.conf @@ -153,7 +153,7 @@ LogSeparator=" " # Example: "ftp.domain.com" # Example: "domain.com" # -SiteDomain="myserver.mydomain" +SiteDomain="irap.omp.eu" # Enter here all other possible domain names, addresses or virtual host @@ -168,7 +168,7 @@ SiteDomain="myserver.mydomain" # Note: You can also use @/mypath/myfile if list of aliases are in a file. # Example: "www.myserver.com localhost 127.0.0.1 REGEX[mydomain\.(net|org)$]" # -HostAliases="localhost 127.0.0.1 myserver.mydomain mydomain" +HostAliases="localhost 127.0.0.1 cdpp-epntap.irap.omp.eu" # If you want to have hosts reported by name instead of ip address, AWStats diff --git a/conf/dachs-dockerfile b/conf/dachs-dockerfile index a1ae26b..928a5df 100644 --- a/conf/dachs-dockerfile +++ b/conf/dachs-dockerfile @@ -40,12 +40,12 @@ RUN apt-get install -y openssh-server openssh-client apache2 w3m ### RUN mkdir -p /root/.ssh -RUN echo "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCx1IuqhW3UJmKWc6ODuhXu58CSdHGavVJaTUILUsR3ig359wRQ7GEpwXdk5dcTNOS16xVVx8KP7SEqsOOGRQ14jy2z3rJLZ0tRKzceCk1nXrFgipJ8qU0sFDc+dvXgJ94XvHlZzgQDT/iLeIZ6lhDEHn6O+EdfNf1g32LqIFXEe4fqRsKsM4ssYcHigdh3cdVDU350ACNxRrVEzCRE9lcGcfouwjSNMeWZO5SnCIzl7sOGJroYmL/c17P1YPIE1HzW3FjNI98FxJR2K/TmcUWJYDc7wDalN6HXyquoFsew7Sn/BZH0aprdaTLO1F820MTUIzcF/oKvhMd/Ihz355srm//a4PGQE7RDPdvPSjOr9KSiM/PU0GiARARex1AYl/a4CY5HnKeIs/sJfOADFJTpDcF7TSqKYq51JN1itWNmVMv8zZ/rfHMiEHKiDxLXZsflmdKPynHLI/Wk+uQqLNyORQ5MWJwKRGOp5haoCKxUtHPU68woVO1uk4FawXI0yLp84iXO7RJrr5MMas+Cjzv/azWA/K1WXOjiiWIqAoOHAYKWS2embavVHgIpbK/0wn8q5BF18QBOlqlpkBICOLTXpBLB+tAjmw998nYMF5PKI8synjzHGytd79OtrphO+ADWrCQuWDSxqkzbisJUMn3m1a4Z5CaaX1kjIL0P4RlvLw== phamy" >> /root/.ssh/authorized_keys +RUN echo "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIL8LvPlnTGHhoqSARTPjjlxxHJPJ9oS+vvx7TmpC51e4 GitLab OBSPM" >> /root/.ssh/authorized_keys RUN chmod 700 /root/.ssh RUN chmod 600 /root/.ssh/authorized_keys RUN mkdir -p /home/dachsroot/.ssh -RUN echo "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCx1IuqhW3UJmKWc6ODuhXu58CSdHGavVJaTUILUsR3ig359wRQ7GEpwXdk5dcTNOS16xVVx8KP7SEqsOOGRQ14jy2z3rJLZ0tRKzceCk1nXrFgipJ8qU0sFDc+dvXgJ94XvHlZzgQDT/iLeIZ6lhDEHn6O+EdfNf1g32LqIFXEe4fqRsKsM4ssYcHigdh3cdVDU350ACNxRrVEzCRE9lcGcfouwjSNMeWZO5SnCIzl7sOGJroYmL/c17P1YPIE1HzW3FjNI98FxJR2K/TmcUWJYDc7wDalN6HXyquoFsew7Sn/BZH0aprdaTLO1F820MTUIzcF/oKvhMd/Ihz355srm//a4PGQE7RDPdvPSjOr9KSiM/PU0GiARARex1AYl/a4CY5HnKeIs/sJfOADFJTpDcF7TSqKYq51JN1itWNmVMv8zZ/rfHMiEHKiDxLXZsflmdKPynHLI/Wk+uQqLNyORQ5MWJwKRGOp5haoCKxUtHPU68woVO1uk4FawXI0yLp84iXO7RJrr5MMas+Cjzv/azWA/K1WXOjiiWIqAoOHAYKWS2embavVHgIpbK/0wn8q5BF18QBOlqlpkBICOLTXpBLB+tAjmw998nYMF5PKI8synjzHGytd79OtrphO+ADWrCQuWDSxqkzbisJUMn3m1a4Z5CaaX1kjIL0P4RlvLw== phamy" >> /home/dachsroot/.ssh/authorized_keys +RUN echo "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIL8LvPlnTGHhoqSARTPjjlxxHJPJ9oS+vvx7TmpC51e4 GitLab OBSPM" >> /home/dachsroot/.ssh/authorized_keys RUN chmod 700 /home/dachsroot/.ssh RUN chmod 600 /home/dachsroot/.ssh/authorized_keys RUN chown dachsroot:gavo -R /home/dachsroot/.ssh @@ -56,7 +56,8 @@ RUN chown dachsroot:gavo -R /home/dachsroot/.ssh ### RUN mkdir $PATH$SERVER -p -RUN git clone $GITURL/$GIT.git $HOMEPATH/$SERVER/$GIT +RUN git clone -c http.sslVerify=0 $GITURL/$GIT.git $HOMEPATH/$SERVER/$GIT +RUN cd $HOMEPATH/$SERVER/$GIT && git submodule update --init && cd services/amdadb && git pull origin update #on déplace les fichiers RUN cp $HOMEPATH/$SERVER/$GIT/conf/000-default.conf /etc/apache2/sites-enabled/000-default.conf diff --git a/conf/defaultmeta.txt b/conf/defaultmeta.txt index 16e735e..de4d4c1 100644 --- a/conf/defaultmeta.txt +++ b/conf/defaultmeta.txt @@ -1,19 +1,19 @@ -publisher: Paris Astronomical Data Centre -publisherID: ivo://vopdc.obspm -contact.name: PADC support team -contact.address: 77 av. Denfert Rochereau, 75014 Paris, FRANCE -contact.email: vo.paris@obspm.fr -contact.telephone: 0033140512082 -creator.name: PADC -creator.logo: http://voparis-srv-paris.obspm.fr/logos/PADC_small.png -authority.creationDate: 2012-01-09T12:53:33 -authority.title: Paris Astronomical Data Centre Authority -authority.shortName: PADC -authority.description: The Paris Astronomical Data Centre project aims at providing VO access to its databases ressources, at participating to international standards developments, at implementing VO compliant simulation codes, data visualization and analysis software. This Naming Authority is used to identify the resources provided by Paris Astronomical Data Centre at Observatoire de Paris, Paris, FRANCE -authority.referenceURL: http://padc.obspm.fr -authority.managingOrg: ivo://vopdc -organization.title: Observatoire de Paris -organization.description: Founded in 1667, the Observatoire de Paris is the largest national research center for astronomy. -organization.referenceURL: http://www.obspm.fr -site.description: The Paris Astronomical Data Centre project aims at providing VO access to its databases ressources, at participating to international standards developments, at implementing VO compliant simulation codes, data visualization and analysis software. +publisher: CDPP - Centre de Données de la Physique des Plasmas +publisherID: ivo://cdpp +contact.name: CDPP team +contact.address: IRAP, 9 Av. du Colonel Roche, 31400 Toulouse, FRANCE +contact.email: cdpp@irap.omp.eu +contact.telephone: 0033561558370 +creator.name: CDPP +creator.logo: http://cdpp.irap.omp.eu/templates/CDPP/favicon.ico +authority.creationDate: 2022-12-09T12:53:33 +authority.title: Centre de Données de la Physique des Plasmas +authority.shortName: CDPP +authority.description: Created in 1998 jointly by CNES and INSU, the CDPP assures the long term preservation of data obtained primarily from instruments built using French resources, and renders them readily accessible and exploitable by the international community. The CDPP also provides services to enable on-line data analysis (AMDA), 3D data visualization in context (3DView), propagation tool and space weather tool which bridges solar perturbations to in-situ measurements. The CDPP is involved in the development of interoperability, participates in several Virtual Observatory projects, and supports data distribution for scientific missions (Solar Orbiter, JUICE). +authority.referenceURL: http://www.cdpp.eu/ +authority.managingOrg: ivo://cdpp +organization.title: CDPP - Centre de Données de la Physique des Plasmas +organization.description: Created in 1998 jointly by CNES and INSU, the CDPP assures the long term preservation of data obtained primarily from instruments built using French resources, and renders them readily accessible and exploitable by the international community. The CDPP also provides services to enable on-line data analysis (AMDA), 3D data visualization in context (3DView), propagation tool and space weather tool which bridges solar perturbations to in-situ measurements. The CDPP is involved in the development of interoperability, participates in several Virtual Observatory projects, and supports data distribution for scientific missions (Solar Orbiter, JUICE). +organization.referenceURL: http://www.cdpp.eu/ +site.description: Created in 1998 jointly by CNES and INSU, the CDPP assures the long term preservation of data obtained primarily from instruments built using French resources, and renders them readily accessible and exploitable by the international community. The CDPP also provides services to enable on-line data analysis (AMDA), 3D data visualization in context (3DView), propagation tool and space weather tool which bridges solar perturbations to in-situ measurements. The CDPP is involved in the development of interoperability, participates in several Virtual Observatory projects, and supports data distribution for scientific missions (Solar Orbiter, JUICE). diff --git a/conf/docker-compose.yml b/conf/docker-compose.yml index 9edcc49..7c1bbf3 100644 --- a/conf/docker-compose.yml +++ b/conf/docker-compose.yml @@ -2,8 +2,8 @@ version: "3.5" services: dachs: - container_name: dachs-voparis - image: dachs-voparis + container_name: dachs-cdpp + image: dachs-cdpp tty: true expose: - "80" @@ -26,4 +26,4 @@ services: secrets: id_rsa: - file: id_rsa-phamy.prive + file: rsa.prive diff --git a/conf/gavo.rc b/conf/gavo.rc index 05a67fe..fcf1388 100644 --- a/conf/gavo.rc +++ b/conf/gavo.rc @@ -1,13 +1,13 @@ [general] rootDir: /var/gavo -maintainerAddress: pierre.lesidaner@obspm.fr +maintainerAddress: cdpp@irap.omp.eu [web] bindAddress: serverPort: 80 #serverURL: http://145.238.197.199:81 serverURL: http://127.0.0.1:80 -sitename: portablelp +sitename: CDPP EPN-TAP server corsOriginPat: http.* logFormat: combined [ivoa] -authority: vopdc.obspm +authority: cdpp diff --git a/conf/id_rsa-phamy.prive b/conf/id_rsa-phamy.prive deleted file mode 100644 index 8b13789..0000000 --- a/conf/id_rsa-phamy.prive +++ /dev/null @@ -1 +0,0 @@ - diff --git a/conf/id_rsa.prive b/conf/id_rsa.prive new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/conf/id_rsa.prive diff --git a/conf/id_rsalesidaner.pub b/conf/id_rsalesidaner.pub deleted file mode 100644 index a766381..0000000 --- a/conf/id_rsalesidaner.pub +++ /dev/null @@ -1 +0,0 @@ -ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDJo++rVp4x81Wu528nJieQob3aG1D5a6kD6ELOphVP0Rd2lTyxqlOFhXtgw7tM7bFTbwshqyO79mnOcVeGm7gkwGyjykORPHibD6yOkiSsc5D1sTFbsI2Hkm7eftkpv9lVmi/VIiV6bRpVM+EbvQoCNiR5m/DStlabfQALnF9z2xu+H3+oTUuO7X6jamSJRSrBTz/ILdf1gb6bT7ndYryttt4ITzcPHiH+dyJWR0AQCOGC8HvzrLURujSm2310Qfqo80YAmTm3zN5ABxD76ib5Hd87Lh4jwY8jxhSFBV2ZnMHJQyCqpm7JAXisD95NWr3EFPlNbbVeMvJMZ4pPshI7 lesidaner@psl-e4200 diff --git a/conf/logo_big.png b/conf/logo_big.png index 9aa525c..45f9344 100644 Binary files a/conf/logo_big.png and b/conf/logo_big.png differ diff --git a/conf/logo_medium.png b/conf/logo_medium.png index fdea9a3..26b3a2c 100644 Binary files a/conf/logo_medium.png and b/conf/logo_medium.png differ diff --git a/conf/myconf.conf b/conf/myconf.conf index 6ca57c5..056a899 100755 --- a/conf/myconf.conf +++ b/conf/myconf.conf @@ -1,4 +1,4 @@ -my_servername=voparis-test -my_domain=obspm.fr -maintainer_email=vo.paris@obspm.fr -authority_ivoid="ivo://vopdc.obspm" +my_servername=cdpp-epntap +my_domain=irap.omp.eu +maintainer_email=cdpp@irap.omp.eu +authority_ivoid="ivo://cdpp" diff --git a/services/amdadb b/services/amdadb new file mode 160000 index 0000000..b30eda8 --- /dev/null +++ b/services/amdadb @@ -0,0 +1 @@ +Subproject commit b30eda811cc19b92c7f84c77ec44ae5f5089fdf1 diff --git a/services/planets/data/Masses2.csv b/services/planets/data/Masses2.csv deleted file mode 100644 index 29b442c..0000000 --- a/services/planets/data/Masses2.csv +++ /dev/null @@ -1,9 +0,0 @@ -target_name,mean_radius,mean_radius_uncertainty,equatorial_radius,equatorial_radius_uncertainty,polar_radius,polar_radius_uncertainty,rms_deviation,elevation_max,elevation_min,mass,distance_to_primary,sideral_rotation_period,obs_idi,thumbnail_url -Mercury,2439.7,1.0,2439.7,1.0,2439.7,1.0,1,4.6,2.5,3.3014E23,57909227.,1407.504,1,http://www.lesia.obspm.fr/BDIP/bdip_icone/bdip8397.jpg -Venus,6051.8,1.0,6051.8,1.0,6051.8,1.0,1,11,2,4.86732E24,108209475.,-5832.432,2,http://www.lesia.obspm.fr/BDIP/bdip_icone/bdip7534.jpg -Earth,6371.00,0.01,6378.14, 0.01,6356.75, 0.01,3.57,8.85,11.52,5.97219E24,149598262.,23.93447232,3,http://www.lesia.obspm.fr/BDIP/bdip_icone/bdip7534.jpg -Mars,3389.5,0.2,3396.19,0.1,3376.,0.1,3.0,22.64,7.55,6.41693E23,227943824.,24.624,4,http://www.lesia.obspm.fr/BDIP/bdip_icone/bdip3073.jpg,http://www.lesia.obspm.fr/BDIP/bdip_icone/bdip3073.jpg -Jupiter,69911.,6,71492.,4,66854.,10,62.1,31,102,1.89813E27,778340821.,9.92496,5,http://www.lesia.obspm.fr/BDIP/bdip_icone/bdip0001.jpg -Saturn,58232.,6,60268.,4,54364.,10,102.9,8,205,5.68319E26,1426666422.,10.656,6,http://www.lesia.obspm.fr/BDIP/bdip_icone/bdip2716.jpg -Uranus,25362.,7,25559.,4,24973.,20,16.8,28,0,8.68103E25,2870658186.,-17.232,7,http://www.lesia.obspm.fr/BDIP/bdip_icone/bdip2716.jpg -Neptune,24622.,19,24764.,15,24341.,30,8,14,0,1.0241E26,4498396441.,16.104,8,http://www.lesia.obspm.fr/BDIP/bdip_icone/bdip2716.jpg diff --git a/services/planets/q.rd b/services/planets/q.rd deleted file mode 100644 index 3c8d4b7..0000000 --- a/services/planets/q.rd +++ /dev/null @@ -1,267 +0,0 @@ - - Characteristics of Planets (demo) - Planets - Planets - -Demonstration service of EPN-TAP v1: main characteristics of planets. Data are included in the table, therefore most relevant parameters are non-standard in EPN-TAP. Data are retrieved from Archinal et al 2009 (IAU report, 2011CeMDA.109..101A) [radii] and Cox et al 2000 (Allen's astrophysical quantities, 2000asqu.book.....C) [masses, heliocentric distances, and rotation periods]. - 2015-08-16T09:42:00Z - planet - mass - radius - period - LESIA-Obs Paris - Stephane Erard - Paris Astronomical Data Centre - LESIA - Stephane Erard - vo.paris@obspm.fr - Observatoire de Paris VOPDC, bat. Perrault, 77 av. Denfert Rochereau, 75014 Paris, FRANCE - 2000asqu.book.....C - General - University - Research - Amateur - ivo://vopdc.obspm/std/EpnCore#schema-2.0 - - - - - - - //epntap2#table-2_0 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - data/Masses2.csv - - - "\schema.epn_core" - - - - - - "ci" - "none" - - - - "Planet" - "N/A" - - - - - - - "2015-08-20T07:54:00.00" - "2017-12-15T17:54:00.00" - "2015-08-20T07:54:00.00" - - "planets" - "2011CeMDA.109..101A#2000asqu.book.....C" - "LESIA" - "planet" - - - @target_class+"/"+@target_name - ("\getConfig{web}{serverURL}/\rdId/epdl/dlmeta" - +"?ID="+urllib.parse.quote(@ds_id)) - - - @granule_gid - @granule_uid - @obs_id - @target_class - "UTC" - - @target_name - "" - "" - - - 5 - - @dataproduct_type - "phys.mass#phys.size.radius" - - - @service_title - @creation_date - @modification_date - @release_date - - - @thumbnail_url - - - - - - - - - yield MS(InputKey, name="epoch", - type="double precision", - unit="d", ucd="meta.epoch", - description="Time the ephemeris is to be computed for, JD", - multiplicity="forced-single", - values=MS(Values, - min=2400000, - max=3000000)) - - - - - - with base.getTableConn() as conn: - url = list(conn.query("SELECT thumbnail_url from \schema.epn_core where" - " target_class=%(targetClass)s and target_name=%(targetName)s", { - "targetClass": descriptor.targetClass, - "targetName": descriptor.targetName}))[0][0] - yield LinkDef(descriptor.pubDID, - url, - description="A preview of the planet", - semantics="#preview", - contentType="image/jpeg") - - - - - - - class PlanetDescriptor(object): - def __init__(self, pubDID): - self.pubDID = pubDID - self.targetClass, self.targetName = self.pubDID.split("/", 1) - self.computeEphemerisId() - - def computeEphemerisId(self): - shortClass = { - 'planet': 'p', - 'satellite': 's', - }[self.targetClass] - self.ephId = "{}:{}".format( - shortClass, self.targetName) - description="computed ephemeris of the planet", - - - - return PlanetDescriptor(pubDID) - - - - - - "http://vo.imcce.fr/webservices/miriade/ephemcc_query.php?-from=vespa&" - - - from urllib.parse import urlencode - from gavo.svcs import WebRedirect - import urllib.parse - - - - parameters = { - "-name": descriptor.ephId, - "-ep": args["epoch"], - } - raise WebRedirect(upstream_service_url+urlencode(parameters)) - - - - - - - - -
-- libgit2 0.21.2