Deploying apps - is Git a requirement for Dockerfile and Buildpack based apps?

17 views
Skip to first unread message

rishi.in...@gmail.com

unread,
Nov 15, 2016, 2:10:24 PM11/15/16
to Deis Users List
Hi there,

I now can deploy Docker based apps on s390x platform.  While reading https://deis.com/docs/workflow/applications/deploying-apps/ it appears that I must have a Github account so "git push deis master" succeeds (?).

Is there a way to test Dockerfile/Buildpack based apps outside of using Git?

I thought that once I clone my repo then any "push" will happen in my local Deis Workflow instance.  However, I got this message (I had already registered my local machines ssh keys with Deis):

/=================================/
# deis keys:add (added my ssh keys)
# cd example-go
# git push deis master
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
/=================================/

Am I missing some steps?

Thanks.

Matthew Fisher

unread,
Nov 15, 2016, 2:26:03 PM11/15/16
to rishi.in...@gmail.com, Deis Users List
> While reading https://deis.com/docs/workflow/applications/deploying-apps/ it appears that I must have a Github account so "git push deis master" succeeds (?).

No GitHub account is necessary. You just missed a step, which is to create the application on the platform's side using `deis create`:

$ cd example-go
$ deis create
$ git push deis master

> Is there a way to test Dockerfile/Buildpack based apps outside of using Git?

Yes, you can use `deis pull`, which will pull docker images directly from a registry. Docs are here: https://deis.com/docs/workflow/applications/using-docker-images/#using-docker-images

Matt

--
You received this message because you are subscribed to the Google Groups "Deis Users List" group.
To unsubscribe from this group and stop receiving emails from it, send an email to deis-users+unsubscribe@googlegroups.com.
To post to this group, send email to deis-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/deis-users/652b9230-8b82-43a2-9a61-e97caa6bd31a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

rishi.in...@gmail.com

unread,
Nov 15, 2016, 2:34:39 PM11/15/16
to Deis Users List, rishi.in...@gmail.com
Thanks Matt .. I should have mentioned - I already had "deis create" step done.

Controller logs are not very helpful but builder says something about this .. I suspect this may be happening in builder container.

/=============================/
Accepted connection.
Starting ssh authentication
Channel type: session

Key='LANG', Value='C'

receiving git repo name: nonfat-quotient.git, operation: git-receive-pack, fingerprint: 23:07:2a:f6:94:9b:c0:26:7f:2e:88:01:0a:c6:da:e4, user: admin
creating repo directory /home/git/nonfat-quotient.git
writing pre-receive hook under /home/git/nonfat-quotient.git
---> ---> ---> ---> ---> ---> ---> [ERROR] Failed git receive: Did not write pre-receive hook (Cannot create pre-receive hook file at /home/git/nonfat-quotient.git/hooks/pre-receive (open /home/git/nonfat-quotient.git/hooks/pre-receive: no such file or directory))

/=============================/
To unsubscribe from this group and stop receiving emails from it, send an email to deis-users+...@googlegroups.com.

Matthew Fisher

unread,
Nov 15, 2016, 2:39:36 PM11/15/16
to rishi.in...@gmail.com, Deis Users List
Can you try and confirm if the "hooks" directory was created in the builder? The following should confirm:

$ kubectl --namespace=deis exec <deis-builder-abc123> -- ls -al /home/git/nonfat-quotient.git

If that directory wasn't created I'd try and restart the builder quickly and see if it resolves itself. If not please feel free to open a ticket at https://github.com/deis/builder as that error is pointing at https://github.com/deis/builder/blob/933c1247161bab9c41d0894bff01acf87bfe8c98/pkg/git/git.go#L158-L176.

Matt

To unsubscribe from this group and stop receiving emails from it, send an email to deis-users+unsubscribe@googlegroups.com.

To post to this group, send email to deis-...@googlegroups.com.

rishi.in...@gmail.com

unread,
Nov 15, 2016, 2:52:12 PM11/15/16
to Deis Users List, rishi.in...@gmail.com
I can confirm "hooks" directory was not created even after deleting builder pod.  Here are the contents of the directory:

/===================================/
root@deis-builder-371419795-an2ta:/# ls -al /home/git/nonfat-quotient.git/
total 8
drwxr-xr-x 2 root root 4096 Nov 15 19:46 .
drwxr-xr-x 3 git  git  4096 Nov 15 19:46 ..
root@deis-builder-371419795-an2ta:/#
/===================================/

I will open the ticket although I am not sure if it is related to this platform.
Reply all
Reply to author
Forward
0 new messages