vault backup: 2025-12-10 11:37:35
This commit is contained in:
@@ -0,0 +1,45 @@
|
||||
|
||||
|
||||
# Erzeugen des Repository
|
||||
```shell
|
||||
gcloud artifacts repositories create <REPO-NAME> --repository-format=maven --location=europe-west10 --description="Java package repository"
|
||||
gcloud config set artifacts/repository <REPO-NAME>
|
||||
gcloud config set artifacts/location europe-west10
|
||||
```
|
||||
|
||||
|
||||
# Ausgabe der Gradle Einstellungen
|
||||
```shell
|
||||
gcloud artifacts print-settings gradle
|
||||
```
|
||||
|
||||
```shell
|
||||
gcloud artifacts packages list --repository=<REPO-NAME>
|
||||
gcloud artifacts versions list --package=
|
||||
```
|
||||
|
||||
|
||||
## Löschen des Repository
|
||||
|
||||
```shell
|
||||
gcloud artifacts repositories delete <REPO-NAME>
|
||||
gcloud config unset artifacts/repository
|
||||
gcloud config unset artifacts/location
|
||||
```
|
||||
|
||||
|
||||
## Konfigurieren von Logging in Java Anwendungen
|
||||
|
||||
```shell
|
||||
gcloud iam service-accounts create logging-quickstart --project tpeetz-kontor
|
||||
gcloud projects add-iam-policy-binding tpeetz-kontor --member serviceAccount:logging-quickstart@tpeetz-kontor.iam.gserviceaccount.com \ --role roles/logging.logWriter
|
||||
gcloud iam service-accounts keys create logging-key.json --iam-account logging-quickstart@tpeetz-kontor.iam.gserviceaccount.com
|
||||
export GOOGLE_APPLICATION_CREDENTIALS=logging-key.json
|
||||
|
||||
|
||||
|
||||
gcloud iam service-accounts delete logging-quickstart --project tpeetz-kontor
|
||||
|
||||
```
|
||||
|
||||
https://console.cloud.google.com/logs/query;cursorTimestamp=2024-08-22T09:18:46.935961Z?project=tpeetz-kontor
|
||||
Reference in New Issue
Block a user