Skip to content

Commit

Permalink
fix podcontroller
Browse files Browse the repository at this point in the history
  • Loading branch information
sherix88 committed Jun 27, 2018
1 parent 473f27c commit 8bb0e54
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ RUN curl -LO https://storage.googleapis.com/kubernetes-release/release/$(curl -s
RUN chmod +x ./kubectl
RUN mv ./kubectl /usr/local/bin/kubectl
RUN npm install
CMD ["node","server.js"]
CMD ["sh","run.sh"]
2 changes: 1 addition & 1 deletion run.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export KUBECONFIG=/home/.kube/admin.conf
export KUBECONFIG=/home/.kube/config
node server.js
2 changes: 0 additions & 2 deletions server.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@ app.all('*', function(req, res, next) {
}
});

child_process.exec('RUN export KUBECONFIG=/home/.kube/admin.conf')

app.post('/', function(req, res) {
var name = req.body.repository.repo_name;
var tag = req.body.push_data.tag;
Expand Down

0 comments on commit 8bb0e54

Please sign in to comment.