Sign inSign up

abdennour/envsubst

By abdennour

•Updated almost 7 years ago

Substitute Replace env vars names inside a file or string by env vars actual avalues

Image
0

852

abdennour/envsubst repository overview

https://www.packer.io/docs/builders/docker.html⁠ https://github.com/moby/moby/issues/3378⁠

⁠Availables Image Groups :

⁠abdennour/aws

# basic example
docker run --rm \
  -v "${HOME}/.aws:/root/.aws" \
  abdennour/aws aws s3 ls

⁠abdennour/docker`

# basic example
docker run --rm \
  -v /var/run/docker.sock:/var/run/docker.sock \
  abdennour/docker:19-dind docker images

# docker + aws
docker run --name docker-aws --rm -d \
  -v /var/run/docker.sock:/var/run/docker.sock \
  -v "${HOME}/.aws:/root/.aws" \
  abdennour/docker:19-dind-aws1.16.246 tail -f /dev/null

docker exec docker-aws sh -c '$(aws ecr get-login --no-include-email --region us-west-1)';
docker exec docker-aws docker pull xxxxxxxx.dkr.ecr.us-west-1.amazonaws.com

⁠abdennour/eksctl`

# basic example
docker run --rm \
  -v "${HOME}/.aws:/root/.aws" \
  abdennour/eksctl create cluster ...

⁠abdennour/envsubst

# basic example
cat file_includes_env_vars.txt | docker run -i --rm abdennour/envsubst
# or 
docker run -i --rm abdennour/envsubst < file_includes_env_vars.txt

# assume "Hello $NAME. My home is ${HOME}" is the content of "file.txt"
docker run -i --rm -e NAME=Abdou abdennour/envsubst < file.txt
# the above command outputs :
# "Hello Abdou. My home is /root"

⁠abdennour/jenkins

⁠abdennour/node

⁠abdennour/remark

⁠CI/CD

Managed By Docker hub automated builds⁠

⁠Tests

Linting : in docker-images/<IMAGE>/hooks/pre_build Contatainer Structure Tests in docker-images/<IMAGE>/hooks/build

Tag summary

Content type

Image

Digest

Size

11.1 MB

Last updated

almost 7 years ago

docker pull abdennour/envsubst