Skip to content

Instantly share code, notes, and snippets.

@stephlocke
Last active February 6, 2017 16:19
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stephlocke/a02d7b8be42604e5b6bbd19d689ab28f to your computer and use it in GitHub Desktop.
Save stephlocke/a02d7b8be42604e5b6bbd19d689ab28f to your computer and use it in GitHub Desktop.
Installation file for installing the Azure File Storage Docker plugin on Ubuntu 16.04+. Takes an argument to allow you to provide a prepopulated config file.

This is an installation script for the Azure File Storage Docker Plugin and is intended to work on Ubuntu 15+

Usage

You need a config file based on the default, that you can pass to this script. This helps you keep the config contents secret.

wget https://gist.githubusercontent.com/stephlocke/a02d7b8be42604e5b6bbd19d689ab28f/raw/fb1accb5baa435d8356d3b72adb9fa8dcc9f8818/install-azurefile-dockerplugin.sh
chmod +x install-azurefile-dockerplugin.sh
sudo ./install-azurefile-dockerplugin.sh azurefile-dockervolumedriver
#!/bin/bash
config=$1
wget -qO /usr/bin/azurefile-dockervolumedriver https://github.com/Azure/azurefile-dockervolumedriver/releases/download/0.2.1/azurefile-dockervolumedriver
chmod +x /usr/bin/azurefile-dockervolumedriver
wget -qO /etc/systemd/system/azurefile-dockervolumedriver.service https://raw.githubusercontent.com/Azure/azurefile-dockervolumedriver/master/contrib/init/systemd/azurefile-dockervolumedriver.service
cp $config /etc/default/
systemctl daemon-reload
systemctl enable azurefile-dockervolumedriver
systemctl start azurefile-dockervolumedriver
systemctl status azurefile-dockervolumedriver
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment