Re: running pytest

72 views
Skip to first unread message

Hyrum Wright

unread,
Mar 23, 2018, 8:18:06 AM3/23/18
to Charlie White, Bazel/Python Special Interest Group, bazel-discuss
+bazel-sig-python

On Thu, Mar 22, 2018 at 4:34 PM, Charlie White <cha...@gmail.com> wrote:
I know that this is not really a bazel specific issue, but how do I build an image, test that image, and then deploy that image? I am currently running tests in bazel, and then I create the image and push it to my repository.  Instead of running tests from bazel, I would rather run pytest in a running container.

My problem is that when I define the image that the container uses, it requires a main parameter.  I specify my python app for the main,
but when I run the resulting Docker image, it starts up my app, and I don't know how to execute pytest instead.

Hope this makes sense.

--
You received this message because you are subscribed to the Google Groups "bazel-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bazel-discuss+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bazel-discuss/fc69b228-e1a9-4667-bc83-474749e93bfd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages