Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tkrs/gsutil-crontab
https://github.com/tkrs/gsutil-crontab
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/tkrs/gsutil-crontab
- Owner: tkrs
- License: mit
- Created: 2016-10-12T11:37:59.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2023-02-06T06:00:34.000Z (almost 2 years ago)
- Last Synced: 2023-03-11T08:57:01.217Z (almost 2 years ago)
- Language: Dockerfile
- Size: 21.5 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# gsutil-crontab
[![Docker Repository on Quay](https://quay.io/repository/tkrs/gsutil-crontab/status "Docker Repository on Quay")](https://quay.io/repository/tkrs/gsutil-crontab)
## 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:
```yaml
containers:
- name: gsutil
image: quay.io/tkrs/gsutil-crontab
args:
- mv
- gs://example/foo/bar
- gs://example/foo/buzz
```