Skip to content

Commit

Permalink
install helm
Browse files Browse the repository at this point in the history
  • Loading branch information
sherix88 committed Dec 12, 2017
1 parent 38e59f4 commit 42a4a43
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,8 @@ RUN apk update && apk add curl
RUN curl -LO https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl
RUN chmod +x ./kubectl
RUN mv ./kubectl /usr/local/bin/kubectl
RUN wget https://storage.googleapis.com/kubernetes-helm/helm-v2.7.2-linux-amd64.tar.gz
RUN tar -zxvf helm-v2.7.2-linux-amd64.tar.gz
RUN mv linux-amd64/helm /usr/local/bin/helm
RUN npm install
CMD ["sh","run.sh"]
3 changes: 1 addition & 2 deletions server.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,9 @@ app.all('*', function(req, res, next) {
app.post('/', function(req, res) {
var name = req.body.repository.repo_name;
var tag = req.body.push_data.tag;
var directory = "kubernetes/"+name

if (fs.existsSync(directory)){
dir = exec("sh "+directory+"/actualizar.sh", function(err, stdout, stderr) {
dir = exec("helm --help", function(err, stdout, stderr) {
if (err) { console.log(err) } else {
bot.post(process.env.BOT).send({msg: name}).end(function(err, respuesta){
if(err) { console.log(err) }
Expand Down

0 comments on commit 42a4a43

Please sign in to comment.