Helm charts for supporting clustering in ODL
[integration/packaging.git] / packer / provision / config_docker_fedora.sh
1 #!/usr/bin/env bash
2 # Called by packer to do any Docker-specific config
3
4 # Echo commands as they are run
5 set -x
6
7 # Install minimal set of packages
8 # Need to do this as root but don't have sudo installed (Docker), so `su -c`
9 # The `sudo` program is needed by Ansible (so can't change it to use `su -c`)
10 # TODO: Is all of @Base strictly necessary?
11 su -c "dnf install -y sudo"
12
13 # Docker uses Ansible to configure ODL, and Ansible uses `sudo` so Docker's
14 # build will fail at Ansible without this config change (even if we removed it
15 # from subsequent Docker shell provisioning scripts).
16 su -c 'sed -i "s/^.*requiretty/#Defaults requiretty/" /etc/sudoers'