mirror of
https://github.com/google/nomulus
synced 2026-08-21 22:56:19 +00:00
Convert gsutil to gcloud storage (#2670)
Use of gsutil is discouraged / deprecated, see https://cloud.google.com/storage/docs/gsutil
This commit is contained in:
@@ -61,7 +61,7 @@ $ mkdir /tmp/brda.$$; for date in 2015-02-26 2015-03-05; \
|
||||
* Store the generated files to the GCS bucket.
|
||||
|
||||
```shell
|
||||
$ gsutil -m cp /tmp/brda.$$/*.{ryde,sig} gs://{PROJECT-ID}-icann-brda/`
|
||||
$ gcloud storage cp /tmp/brda.$$/*.{ryde,sig} gs://{PROJECT-ID}-icann-brda/`
|
||||
```
|
||||
|
||||
* Mirror the files in the GCS bucket to the sFTP server.
|
||||
|
||||
@@ -99,12 +99,12 @@ that no cooldown period is necessary.
|
||||
|
||||
## Listing deposits in Cloud Storage
|
||||
|
||||
You can list the files in Cloud Storage for a given TLD using the gsutil tool.
|
||||
You can list the files in Cloud Storage for a given TLD using the gcloud storage tool.
|
||||
All files are stored in the {PROJECT-ID}-rde bucket, where {PROJECT-ID} is the
|
||||
name of the App Engine project for the particular environment you are checking.
|
||||
|
||||
```shell
|
||||
$ gsutil ls gs://{PROJECT-ID}-rde/zip_2015-05-16*
|
||||
$ gcloud storage ls gs://{PROJECT-ID}-rde/zip_2015-05-16*
|
||||
gs://{PROJECT-ID}-rde/zip_2015-05-16-report.xml.ghostryde
|
||||
gs://{PROJECT-ID}-rde/zip_2015-05-16.xml.ghostryde
|
||||
gs://{PROJECT-ID}-rde/zip_2015-05-16.xml.length
|
||||
@@ -167,7 +167,7 @@ Sometimes you'll want to take a peek at the contents of a deposit that's been
|
||||
staged to cloud storage. Use this command:
|
||||
|
||||
```shell
|
||||
$ gsutil cat gs://{PROJECT-ID}-rde/foo.ghostryde | nomulus -e production ghostryde --decrypt | less
|
||||
$ gcloud storage cat gs://{PROJECT-ID}-rde/foo.ghostryde | nomulus -e production ghostryde --decrypt | less
|
||||
```
|
||||
|
||||
## Identifying which phase of the process failed
|
||||
@@ -242,7 +242,7 @@ $ nomulus -e production ghostryde --encrypt \
|
||||
|
||||
# 3. Copy to Cloud Storage so RdeUploadTask can find them.
|
||||
|
||||
$ gsutil cp ${tld}_${date}_full_S1_R0{,-report}.xml.ghostryde gs://{PROJECT-ID}-rde/
|
||||
$ gcloud storage cp ${tld}_${date}_full_S1_R0{,-report}.xml.ghostryde gs://{PROJECT-ID}-rde/
|
||||
```
|
||||
|
||||
## Updating an RDE cursor
|
||||
|
||||
Reference in New Issue
Block a user