This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Tests\Contract; | |
use App\Domains\Book\Service\BookServiceClient; | |
use GuzzleHttp\Client; | |
use PhpPact\Consumer\Matcher\Matcher; | |
use PhpPact\Standalone\MockService\MockServerEnvConfig; | |
use PHPUnit\Framework\TestCase; | |
class SheepPactTest extends TestCase | |
{ | |
public function test_getSheep() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM python:3.6.7 | |
ENV PYTHONUNBUFFERED 1 | |
RUN mkdir /code | |
WORKDIR /code | |
ADD requirements.txt /code/ | |
RUN pip install --upgrade pip | |
RUN pip install -r requirements.txt | |
# RUN pip install -U nltk | |
ADD . /code/ | |
RUN python -m nltk.downloader punkt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export IMAGE_FAMILY="pytorch-1-0-cu92-experimental" # or "pytorch-1-0-cpu-experimental" for non-GPU instances | |
export ZONE="europe-west4-a" | |
export INSTANCE_NAME="my-fastai-instance" | |
export INSTANCE_TYPE="n1-standard-8" | |
gcloud compute instances create $INSTANCE_NAME \ | |
--zone=$ZONE \ | |
--image-family=$IMAGE_FAMILY \ | |
--image-project=deeplearning-platform-release \ | |
--maintenance-policy=TERMINATE \ | |
--accelerator='type=nvidia-tesla-p100,count=1' \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tensorflow: | |
build: ./tensorflow/examples/udacity | |
volumes: | |
- .:/tf_files |