Comments (6)
some notes:
- use gradlew to use the wrapper instead of your system's gradle
- use gradlew and run
./gradlew install
in primary openstack directory - do a docker pull on all files (like openwhisk/action-dotnet2.2) and then docker tag them:
docker tag openwhisk/action-dotnet-v2.2 action-dotnet-v2.2
so they are 'local'
so far got the existing tests to pass, now I just need to debug why my container is failing
from openwhisk-runtime-dotnet.
I typically run ./gradlew install
in primary openstack directory then in the runtime directly, run ./gradlew distDocker
to build the local image and then test
to run the tests. You shouldn't need to apply tags manually.
from openwhisk-runtime-dotnet.
@rabbah do you know if there's a way to tweak the scala action containers so they don't delete the docker container after a run? I'd like to look at the logs if possible of the docker container, but there's nothing there when I run my docker ps -a
from openwhisk-runtime-dotnet.
also what IDE do you recommend for scala? I'd like to learn more about how to run these tests 😅
specifically in the scala tests, there's code like
package actionContainers
import org.junit.runner.RunWith
import org.scalatest.junit.JUnitRunner
import common.WskActorSystem
import spray.json._
import actionContainers.ActionContainer.withContainer
import java.nio.file.Paths
is it possible to see those base imports?
class DotNet6_0ActionContainerTests extends BasicActionRunnerTests with WskActorSystem
I'm guessing if I could change how it sends the docker run command I might be able to keep the container around without deletion and then review the logs, possibly. I might just have to build my own test harness with base64 encoded test project and debug myself
from openwhisk-runtime-dotnet.
@rabbah do you know if there's a way to tweak the scala action containers so they don't delete the docker container after a run? I'd like to look at the logs if possible of the docker container, but there's nothing there when I run my docker ps -a
For this, it's probably more convenient for you to use invoke.py
to manually start the container, init
and run
against it. You'll se the logs on the console.
I use IntelliJ for Scala dev.
The imports like actionContainers.ActionContainer.withContainer
are coming from the main openwhisk repo, which is why you run the snapshot/install build first. You can if you like copy those files over and have them available locally, then you can modify the code and not destroy the container after a test - look at the withContainer
wrapper for that.
from openwhisk-runtime-dotnet.
thanks for the advice I was able to debug locally and found my issue, thanks for the guidance!
from openwhisk-runtime-dotnet.
Related Issues (18)
- incorrect quick start guide HOT 1
- Is dotnet core based runtime , Beta or Production ready ? HOT 5
- The README needs to include the Apache 2 license badge at the top.
- readme update HOT 2
- Add async/await support HOT 8
- Raw requests to skip JObject conversion HOT 12
- "Cannot invoke an uninitialized action." error occurs intermittently HOT 5
- improve cold start times HOT 24
- 150kb+ json request crashes whole deployment HOT 2
- Unknown error HOT 2
- Action cannot load Microsoft.Extensions.DependencyInjection.Abstraction HOT 8
- support init time parameters HOT 1
- Add example using asynchronous returns HOT 3
- Remove dependency on 3rd party JSON library from next version of runtime HOT 1
- Question: how to log to activations using dotnet and openwhisk? HOT 2
- kind 'dotnet:2.1' not in Set HOT 2
- Can't send messages to kafka HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from openwhisk-runtime-dotnet.