Code Monkey home page Code Monkey logo

microsoft / rockpaperscissorslizardspock Goto Github PK

View Code? Open in Web Editor NEW
587.0 37.0 286.0 46.08 MB

Rock, Paper, Scissors, Lizard, Spock - Sample Application

License: MIT License

PowerShell 11.03% Python 2.31% C# 30.80% Dockerfile 0.92% Java 1.95% HTML 16.91% Shell 0.08% CSS 20.65% JavaScript 9.66% PHP 3.45% Mustache 2.24%
dotnet-core nodejs python java php tensorflow javascript blazor aspnetcore azure azure-functions azure-kubernetes-service

rockpaperscissorslizardspock's Issues

Running app locally with docker desktop

Good day

I have problems running the app locally with docker desktop.

I cloned the repository, opened in VS 2019, built the app, everything good. I have RPSLS.Web as startup project and press F5.
I have docker desktop running, but get the following message in the browser:
Could not reconnect to the server.
Have fun defeating our bot with your language of choice!

In the output window I get the message:
fail: Microsoft.AspNetCore.Components.Server.Circuits.CircuitHost[111]
Unhandled exception in circuit '9bTXHbA9Q5vH-LPXg4wBw0SEuZMcT71Huwvutl0nqBc'.
System.InvalidOperationException: Cannot consume scoped service 'RPSLS.Web.Clients.IConfigurationManagerClient' from singleton 'Microsoft.Extensions.Options.IOptions`1[RPSLS.Web.Config.MultiplayerSettings]'.

What am I missing?
Regards

Tiller install error: configmaps is forbidden

On running .\Add-Tiller.ps1 from my local Powershell, I have the following error:

------------------------------------------------------------
Installing Helm
------------------------------------------------------------
Error: configmaps is forbidden: User "system:serviceaccount:kube-system:default" cannot list resource "configmaps" in API group "" in the namespace "kube-system"

Error occurs on the command helm list -q

I'm investigating this now, but if anyone wants to chime in with a solution, please do.

Document Kubernetes Architecture

The app is really cool and provides some good guidelines but any particular reason the app is using Kubernetes instead of the app service? Haven't gone through any particular metrics but usually App service deployments are more affordable than Kubernetes and will benefit from auto-scaling...

MountVolume.SetUp failed for volume "azure-kv"

Almost done with my RPSLS deployment. One more open issue (hopefully).

The rpsls-game-game-api deployment pods fail with the following message (masked with X's):

Warning  FailedMount  40s (x7 over 74s)  kubelet, aks-agentpool-96345064-0  MountVolume.SetUp failed for volume "azure-kv" : mount command failed, status: Failure, reason: /etc/kubernetes/volumeplugins/azure~kv/azurekeyvault-flexvolume failed, Access denied. Caller was not found on any access policy. r nCaller: appid=6e2584bf-XXXXXXXXXXXXXXXX;oid=087127d7-XXXXXXXXXXXXXX;numgroups=0;iss=https://sts.windows.net/XXXXXXXXXXXXXXX/ r nVault: rpslskvXXXXXXXXXXX;location=eastus InnerError={code:AccessDenied}

The secret game-api-kv is in place and in Azure Portal I see my cosmos-constr secret and an Access policy for my service principal. The appid is correct. I'll poke around some more over the weekend, but if anyone has a troubleshooting suggestion, please reply. Thanks

CRLF to LF for entrypoint.sh and mvnw

Just as an FYI: I had trouble with the JavaPlayer Dockerfile build and the ModelUploader.Web Dockerfile build.

JavaPlayer Dockerfile:

line 10: RUN ./mvnw package

./mvnw couldn't be found at docker build

ModelUploader.Web Dockerfile:

line 28: CMD /app/entrypoint.sh

Made the container crash at run time.

Both issues were related to the same problem. Both ./mvnw and entrypoint.sh were using Windows line endings (CRLF) as opposed to Unix ones (LF). Opening each file with Notepad++ - Edit - EOL - change to LF, fixed this error for me.

And I though I'd just leave this FYI out here for anyone else bumping into this issue. Maybe mention in install doc for awareness.

Deploy to Azure button error

Loved the "App Development for Everyone" Ignite keynote and demos. Kudos to all involved!

I'm giving rpsls a go today and have this issue to report.

In Step 1 - Option 1: Creating infrastructure using Azure Portal, I click on the Deploy to Azure button. This opens Azure Portal with the following error:

There was an error loading the template from URI 'https://raw.githubusercontent.com/OriolBonjoch/RPSLS/master/Deploy/arm/deployment.json'. Ensure that the template is publicly accessible and does not have any comments.

I was able to copy and paste deployment.json into a custom template in my Azure subscription and deploy from there.

Apart from the Service Principal Id and Secret, the Kv_object Id is also required. A minor point perhaps, but the Kv_object Id requirement is not mentioned in the README.md.

The deployment succeeded showing the following 10 resources:

image

Need help with Azure Dev Spaces for RPSLS

Hi Friends ๐Ÿ˜ƒ,

At minute 43 of Scott Hanselman's Application Dev Keynote, Jessica Deen comes on stage for an Azure Dev Spaces demo using the Rock Paper Scissors Lizard Spock sample application.

I plan to replicate her demo wherein she redirects traffic from a connected AKS cluster to a development machine. But before I do that, I want to try Team development on Kubernetes using Azure Dev Spaces for RPSLS. This Quickstart is my reference.

My objective is to use Azure Dev Spaces with RPSLS for an AKS workshops that I run.

For testing, I had no problem using Azure Dev Spaces to run and debug RPSLS.Web in its own space. However, when I use azds up for the APIs, the application still uses the pod in the default K8s namespace, not in my azds space. I am interested in hearing if anyone has had success debugging the APIs with Azure Dev Spaces. I am probably missing a step. I'll be happy to share my steps in this issue. Thanks in advance

Deploying services fails

I have complete and utter failure on the Deploying services step ๐Ÿ˜ง. As time permits today, I'll review logs and add information to this issue. If there are particular logs that the maintainers would like to see, please comment. Thanks

$ kubectl get po
NAME                                                 READY   STATUS              RESTARTS   AGE
rpsls-dotnet-dotnet-player-random-5cdfffbff6-pnvxn   0/1     ImagePullBackOff    0          6m3s
rpsls-game-game-api-d96656ffb-wdnvb                  0/1     ContainerCreating   0          5m52s
rpsls-java-java-player-random-69977b48d4-hjt45       0/1     ErrImagePull        0          5m57s
rpsls-node-node-player-paper-696fc4f975-lrl82        0/1     ImagePullBackOff    0          6m2s
rpsls-php-php-player-random-85d89489b6-mngvh         0/1     ErrImagePull        0          5m54s
rpsls-python-python-player-random-76bbdb94f9-x2rd6   0/1     ErrImagePull        0          5m56s
rpsls-web-865fb687c4-t5qcl                           0/2     ImagePullBackOff    0          5m50s

Error retrieving function keys on generation of gvalues file

On running .\Generate-Config.ps1 to auto-generate my gvalues file, I receive the following error:

Not Found({"error":{"code":"NotFound","message":"Error retrieving function keys."}})

The command that invokes the error is:

az rest --method post --uri "https://management.azure.com$($funcapp.id)/functions/$funcname/listKeys?api-version=2018-02-01" -o json --subscription $subscription

At

$funckeys=$(az rest --method post --uri "https://management.azure.com$($funcapp.id)/functions/$funcname/listKeys?api-version=2018-02-01" -o json --subscription $subscription | ConvertFrom-Json)

I suspect an incorrect uri format is the reason, as in this related thread on Stack Overflow. I tried again after updating the api-version to 2018-11-01, but this did not help.

Any thoughts?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.