Giter Club home page Giter Club logo

Comments (6)

paul42 avatar paul42 commented on May 30, 2024

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.

rabbah avatar rabbah commented on May 30, 2024

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.

paul42 avatar paul42 commented on May 30, 2024

@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.

paul42 avatar paul42 commented on May 30, 2024

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 avatar rabbah commented on May 30, 2024

@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.

paul42 avatar paul42 commented on May 30, 2024

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)

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.