Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cspray/docker-compose-dates
A Docker Compose configuration showing dates in environment values being handled differently
https://github.com/cspray/docker-compose-dates
Last synced: 28 days ago
JSON representation
A Docker Compose configuration showing dates in environment values being handled differently
- Host: GitHub
- URL: https://github.com/cspray/docker-compose-dates
- Owner: cspray
- Created: 2023-05-01T14:37:19.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-05-01T14:37:37.000Z (over 1 year ago)
- Last Synced: 2024-12-08T21:44:33.102Z (about 1 month ago)
- Language: Makefile
- Size: 32.2 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Docker Compose Date Interpretations
A docker-compose.yml configuration showing that unquoted date values set in environment variables are interpreted into a complete date time.
![Running this repo's available make command showing different output from setting dates in a docker compose environment.](example.png)
_An example of running the available Makefile command showing different values based on quotes being present._## Running this on your own system
You can run this example on your own system. Before following the steps below please ensure you're running an updated version of Docker and Docker Compose.
At the time of creating this repo the author had the following versions:
- Docker version 23.0.5, build bc4487a
- Docker Compose version v2.17.31. Clone this repo: `git clone [email protected]/cspray/docker-compose-dates`
2. Run the make command `make show`If you don't have `make` available on your system you can run the following commands separately:
docker compose run -it --rm non-quoted-date env | grep TEST_VAR
docker compose run -it --rm quoted-date env | grep TEST_VAR