This two launchdaemon scripts provide scheduled updates and upgrade for homebrew packages.
It will run in the following way:
brew updateevery day at 12:10brew upgradeevery day at 12:20
| kind: ClusterRole | |
| apiVersion: rbac.authorization.k8s.io/v1 | |
| metadata: | |
| name: system:aggregated-metrics-reader | |
| labels: | |
| rbac.authorization.k8s.io/aggregate-to-view: "true" | |
| rbac.authorization.k8s.io/aggregate-to-edit: "true" | |
| rbac.authorization.k8s.io/aggregate-to-admin: "true" | |
| rules: | |
| - apiGroups: ["metrics.k8s.io"] |
| FROM ubuntu:16.04 | |
| RUN apt-get update && apt-get install software-properties-common python-software-properties -y && \ | |
| add-apt-repository ppa:ubuntu-toolchain-r/test -y && \ | |
| apt-get update && \ | |
| apt-get install -y curl libcurl3-dev unzip wget libstdc++6 && \ | |
| apt-get clean | |
| RUN echo "deb [arch=amd64] http://storage.googleapis.com/tensorflow-serving-apt stable tensorflow-model-server tensorflow-model-server-universal" | tee /etc/apt/sources.list.d/tensorflow-serving.list && \ | |
| curl https://storage.googleapis.com/tensorflow-serving-apt/tensorflow-serving.release.pub.gpg | apt-key add - && \ |
| #!/bin/bash | |
| content=`cat /var/lib/dcos/mesos-slave-common | grep gpu -c` | |
| if [ $content -gt 0 ]; then | |
| apt-get update | |
| apt-get install -y gcc | |
| apt-get install -y make | |
| apt-get install -qqy linux-headers-`uname -r` |
| #!/bin/bash | |
| # An set of disks to ignore from partitioning and formatting | |
| BLACKLIST="/dev/sda|/dev/sdb" | |
| # Base directory to hold the data* files | |
| DATA_BASE="/mnt" | |
| usage() { | |
| echo "Usage: $(basename $0) <new disk>" | |
| } |
| ## based on https://github.com/lioonline/OS-X-El-Capitan | |
| ## pkg file link - http://osxapps.itunes.apple.com/apple-assets-us-std-000001/Purple30/v4/cc/62/24/cc62243b-7ed7-74cd-d47e-374bc470ecdf/diu414781394017735583.pkg | |
| # !!IMPORTANT!! Run this from folder where you have downloaded or copied diu414781394017735583.pkg file | |
| #create a tmp folder | |
| mkdir sierraRoot && cd sierraRoot | |
| #create a folder structure to match apple server | |
| sudo mkdir -p ./apple-assets-us-std-000001/Purple30/v4/cc/62/24/cc62243b-7ed7-74cd-d47e-374bc470ecdf/ |