Skip to content

poaudet/sandbox

Repository files navigation

SANDBOX

This repository purspose is to store some helper scripts and other stuff for developping and testing. All stable scripts are store either in the stable folder or in a new repository.

Docker

Simple docker-compose to deploy docker inside a container. Useful to test new image or your deployment script!

Stable scripts

copy_docker_to_host

Copy docker volume to a host folder.

Usage

$ sh copy_docker_to_host name_of_container /path/you/want/to/copy /path/to/destination/on/host

hass_start

I had problem with dimond module installation on my Home Assistant (Hass) container and I didn't wanted to build a custom image which I would have needed to rebuild for each version.

So! I've made a script and add it to my Hass Automation task.

Setup Hass

  1. Put the script in a folder that you will bind with your container (i.e.: /config)

  2. Deploy Home Assistant Image

  3. Add this line in the configuration.yaml

shell_command:
  check_dimond: "sh hass_start.sh"
  1. Add an automation in Hass to run on server start to run the script

commit_cleaner

Copy docker volume to a host folder.

Thank you to muhammad-numan for the answer on StackOverflow

Usage

  1. Put the script in your local repository

  2. (Optional) Add the script in your .gitignor

$ echo "commit_cleaner.sh" > .gitignore
  1. Run the script
$ sh commit_cleaner.sh branch commit_message

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages