Skip to content

Instantly share code, notes, and snippets.

@saurabhkdm
Created December 1, 2020 14:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save saurabhkdm/df7f3d3b0ad9afa03188a2a6fa401cb0 to your computer and use it in GitHub Desktop.
Save saurabhkdm/df7f3d3b0ad9afa03188a2a6fa401cb0 to your computer and use it in GitHub Desktop.
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