Created
December 1, 2020 14:20
-
-
Save saurabhkdm/df7f3d3b0ad9afa03188a2a6fa401cb0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM node:latest | |
RUN apt-get update && \ | |
apt-get install -y apt-transport-https && \ | |
curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add - && \ | |
echo "deb https://apt.kubernetes.io/ kubernetes-xenial main" >> /etc/apt/sources.list.d/kubernetes.list && \ | |
apt-get update && \ | |
apt-get install -y kubectl | |
RUN npm install -g yo generator-hubot coffeescript && mkdir /kubot && chown node:node /kubot | |
RUN chown node:node /home/node/.kube/config | |
USER node | |
WORKDIR /kubot | |
RUN npm install hubot-scripts && npm install hubot-slack --save && yo hubot --owner="Ahmed El-Fakkarany <abohmeed@gmail.com>" --name="kubot" --description="Manage your cluster through Slack" --adapter="slack" --defaults | |
COPY worker.coffee /kubot/scripts/ | |
CMD HUBOT_SLACK_TOKEN=${HUBOT_SLACK_TOKEN} ./bin/hubot --adapter slack |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment