Skip to content
Snippets Groups Projects
Commit 736a8983 authored by Yan Sushchynski (EPAM)'s avatar Yan Sushchynski (EPAM)
Browse files

Fix_redame

parent a3759aa5
No related branches found
No related tags found
1 merge request!3Fix_redame
Pipeline #185607 failed
# Project Title
## Table of Contents
- [About](#about)
- [Getting Started](#getting_started)
- [Usage](#usage)
## About <a name = "about"></a>
This CLI utility can be used for generating a GC access token with no need to install any Google SDKs or dependencies.
## Getting Started <a name = "getting_started"></a>
The project has the compiled utility for x86_64 Linux only. However, if there is a need for the CLI for other OS or architecture, it is possible to compile it from the source.
### Compile
```zsh
git clone git@community.opengroup.org:osdu/platform/deployment-and-operations/base-containers-gcp/gc-auth-credentials.git
go build -ldflags "-s -w"
```
## Usage <a name = "usage"></a>
### How to use it on x86_64 Linux.
```zsh
curl https://community.opengroup.org/projects/1410/packages/generic/gc_auth_token/master/gc_auth_token -o gc_auth_token
chmod +x gc_auth_token
export GOOGLE_APPLICATION_CREDENTIALS=<path-to-the-sa-key-json>
./gc_auth_token # will print access token
```
More info about `GOOGLE_APPLICATION_CREDENTIALS` could be found here: https://cloud.google.com/docs/authentication/application-default-credentials#GAC.
# Project Title
## Table of Contents
- [About](#about)
- [Getting Started](#getting_started)
- [Usage](#usage)
## About <a name = "about"></a>
This CLI utility can be used for generating a GC access token with no need to install any Google SDKs or dependencies.
## Getting Started <a name = "getting_started"></a>
The project has the compiled utility for x86_64 Linux only. However, if there is a need for the CLI for other OS or architecture, it is possible to compile it from the source.
### Compile
```zsh
git clone git@community.opengroup.org:osdu/platform/deployment-and-operations/base-containers-gcp/gc-auth-credentials.git
go build -ldflags "-s -w"
```
## Usage <a name = "usage"></a>
### How to use it on x86_64 Linux.
```zsh
curl https://community.opengroup.org/api/v4/projects/1410/packages/generic/gc_auth_token/master/gc_auth_token -o gc_auth_token
chmod +x gc_auth_token
export GOOGLE_APPLICATION_CREDENTIALS=<path-to-the-sa-key-json>
./gc_auth_token # will print access token
```
More info about `GOOGLE_APPLICATION_CREDENTIALS` could be found here: https://cloud.google.com/docs/authentication/application-default-credentials#GAC.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment