GithubHelp home page GithubHelp logo

Comments (8)

goern avatar goern commented on August 16, 2024

hmm, we should provide a container image name to amun to execute that, this container image should include the microbenchmark.

from amun-api.

saisankargochhayat avatar saisankargochhayat commented on August 16, 2024

https://paste.ofcode.org/PrLfLsKSwuUr4LamXQvFaN
This is what the create_dockerfile return's when I tried passing the sample from the stage amun link, if I delete the part above FROM, it seems to build as a docker image also, is that what we were expecting? I am not sure.

from amun-api.

fridex avatar fridex commented on August 16, 2024

Check the input string - on the API endpoint, there is requested:

  "script": "#!/usr/bin/bash\necho \"Here should be run tests...\"\n",

that is transformed to (based on your paste):

RUN echo -e "#!/usr/bin/bash\n\\necho \"Here should be run tests...\"\n\\n" > "/home/amun/script"

I think the expected content of the file is (based on the API endpoint input):

#!/usr/bin/bash
echo "Here should be run tests..."

Will the echo invocation (as done in the generated Dockerfile) produce same file as desired?

from amun-api.

saisankargochhayat avatar saisankargochhayat commented on August 16, 2024

image
I think they produce the same result, do you want the extra space to be removed?

from amun-api.

fridex avatar fridex commented on August 16, 2024

do you want the extra space to be removed?

it would be great if they match

from amun-api.

saisankargochhayat avatar saisankargochhayat commented on August 16, 2024

This would be just for the value of the key script right?

from amun-api.

fridex avatar fridex commented on August 16, 2024

I think it applies to all the _write_file_string invocations:

def _write_file_string(content: str, path: str) -> str:

So also for writing the lock file, requirements file or pip configuration.

from amun-api.

goern avatar goern commented on August 16, 2024

whats the status of this?

from amun-api.

Related Issues (20)

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.