+
Skip to content
This repository was archived by the owner on Apr 7, 2023. It is now read-only.

tkrs/gsutil-crontab

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gsutil-crontab

Docker Repository on Quay

Usage

This container accepts arbitrary subcommands for gsutil. Execution flow of the container is as follows:

  1. Checks if an environment variable DOWNLOAD_DIR is declared and the directory doesn't exist, then create the directory.
  2. If the environment variable SOURCE_PATH is declared and not empty, then run gsutil cp ${SOURCE_PATH} ${DOWNLOAD_DIR}; otherwise pass all arguments to the gsutil command. This process is provided for backward compatibility and will be deprecated in the near future.
  3. Run crond in the foreground.

For example, if you want to run gsutil mv gs://example/foo/bar gs://example/foo/buzz, run as follows:

$ docker run tkrs/gsutil-crontab mv gs://example/foo/bar gs://example/foo/buzz

If you want to run this container in a Kubernetes' Pod, give the instructions via the Pod's definition:

containers:
- name: gsutil
  image: quay.io/tkrs/gsutil-crontab
  args:
  - mv
  - gs://example/foo/bar
  - gs://example/foo/buzz

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors 2

  •  
  •  
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载