microsoft / rockpaperscissorslizardspock Goto Github PK
View Code? Open in Web Editor NEWRock, Paper, Scissors, Lizard, Spock - Sample Application
License: MIT License
Rock, Paper, Scissors, Lizard, Spock - Sample Application
License: MIT License
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
The buttons "Browse Code" and "Deploy to Azure" are no longer valid as the branch name was changed to "main". Confirmed that URLs are working when changing to main.
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.
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...
Pipeline Foundation is a non-profit initiative with the sole purpose of giving back to the IT community by assisting OSS projects with DevOps implementations and best practices.
Built with โค by Pipeline Foundation.
When i tried to play the game using my webcam it didn't detect or showed anything on human player's side.
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
Once you have signed in, there is no way of signing out so you can sign in with your twitter account, or to let someone else try it out.
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.
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:
Pipeline Foundation is a non-profit initiative with the sole purpose of giving back to the IT community by assisting OSS projects with DevOps implementations and best practices.
Built with โค by Pipeline Foundation.
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
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
missed the part where i need to clone the repo locally to my PC..
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
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?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.