Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Repository for ShakeMap4 input XML files

NotificationsYou must be signed in to change notification settings

INGV/shakemap-input-eu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The scope of this project is to maintain a remote shake data repository updated, searching, at time interval, for new shake data available on the net.

When a file is discovered to be changed on the remote repository by external users, it is skipped.

Quickstart

First, clone the git repositry:

$ git clone https://github.com/INGV/shakemap-input-eu.git$ cd shakemap-input-eu

Build docker image

$ docker build --no-cache --pull --build-arg ENV_UID=$(id -u) --build-arg ENV_GID=$(id -g) --tag ingv/shakemap-input-eu .

Add gitremote topush usingssh

$ git remote add origin_ssh git@github.com:INGV/shakemap-input-eu.git

Addssh_key directory into the project folder.

Create anssh_key directory with valid ssh key topush; the ssh key must be calledid_rsa__origin_ssh like below:

$ ls -l ssh_key/total 12-rw------- 1 shake shake 2602 Feb  7 14:26 id_rsa__origin_ssh-rw-r--r-- 1 shake shake  571 Feb  7 14:26 id_rsa__origin_ssh.pub$

after that, create assh_key/config file with this contents:

$ cat ssh_key/configHost github.comHostName github.comPreferredAuthentications publickeyIdentityFile ~/.ssh/id_rsa__origin_ssh

Run

$ docker run -it --rm -v $(pwd):/opt/shakemap-input-eu -v $(pwd)/ssh_key:/home/shake/.ssh ingv/shakemap-input-eu 1d /opt/shakemap-input-eu --end_time 2020-10-31

Tip

crontab file

# shakemap-input-e*/15 * * * * (cd /home/shake/gitwork/_INGV/shakemap-input-eu && docker run --rm -v $(pwd):/opt/shakemap-input-eu -v $(pwd)/ssh_key:/home/shake/.ssh ingv/shakemap-input-eu 1d /opt/shakemap-input-eu --end_time 2020-11-06) >> /tmp/shakemap-input-eu.log 2>&100 00 * * * mv /tmp/shakemap-input-eu.log /tmp/shakemap-input-eu.yesterday.log

Contribute

Thanks to your contributions!

Here is a list of users who already contributed to this repository:

Author

(c) 2022 Valentino Lauciani valentino.lauciani[at]ingv.it
(c) 2022 Sergio Bruni sergio.bruni[at]ingv.it

Istituto Nazionale di Geofisica e Vulcanologia, Italia

About

Repository for ShakeMap4 input XML files

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp