https://github.com/catvec/file-wait-container
Docker container which waits for a file to exist.
https://github.com/catvec/file-wait-container
Last synced: about 1 month ago
JSON representation
Docker container which waits for a file to exist.
- Host: GitHub
- URL: https://github.com/catvec/file-wait-container
- Owner: catvec
- License: mit
- Created: 2018-06-21T02:04:53.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-06-21T05:52:30.000Z (almost 8 years ago)
- Last Synced: 2025-09-08T00:47:09.237Z (7 months ago)
- Language: Makefile
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# File Wait Container
Docker container which waits for a file to exist.
# Table Of Contents
- [Overview](#overview)
- [Example](#example)
- [Development](#development)
# Overview
Waits for a file to exist before exiting.
The file to wait for is configured via the `WAIT_FILE_PATH` environment
variable.
# Example
Example of waiting for a file located at `/files/foo`:
```
docker run \
--rm \
-it \
-e WAIT_FILE_PATH=/files/foo \
-v $(pwd):/files \
noahhuppert/file-wait-container:dev
```
# Development
Run the `build` make target to build and tag the Docker image.
Override the following variables to customize the tag:
- `repo`: Defaults to `noahhupert/file-wait-container`
- `version`: Defaults to `dev`
These variables will be assembled to create the tag:
```
:
```