Git Product home page Git Product logo

Comments (8)

beevee avatar beevee commented on August 17, 2024

Thanks for the suggestion! Would you like to create a PR with your favorite and most convenient build tools for Elixir? I can make one, but it will probably be a very simple Hello world application compiled with the most basic command I can find in the Quickstart guide.

Please, use https://github.com/icfpcontest2020/dockerfiles/tree/master/dockerfiles/haskell as an example of file layout for base image and submission image.

from dockerfiles.

JEG2 avatar JEG2 commented on August 17, 2024

@piisalie, want to tackle this one?

from dockerfiles.

piisalie avatar piisalie commented on August 17, 2024

Sure @JEG2

@beevee can you unpack what Command line arguments will be provided to your program means?

Do we have control over these command line arguments? Or are those to be determined in context of the contest?

from dockerfiles.

piisalie avatar piisalie commented on August 17, 2024

Ask because Elixir/Erlang's release process is kind of odd, so knowing how exactly we expect the application to be started, and if we have control over the arguments passed at runtime would directly affect how I'd write an ideal Dockerfile.

from dockerfiles.

beevee avatar beevee commented on August 17, 2024

Considering all the other proposals for different platforms, I think you should do this:

  1. Use C++ Dockerfile and starterkit-cpp as an example of build and run process. You will find build and run shell scripts that serve as extension points to pass any arguments you like during the build and run time.

  2. Include all the necessary libraries for HTTP interaction and show a simple example of said interaction along the lines of starterkit-csharp. This should answer your question on purpose of command line arguments :-) Basically fetch URL that is passed as a first argument with a query parameter that is passed as a second argument. Exit with non-zero code on any non-200 status code returned.

from dockerfiles.

beevee avatar beevee commented on August 17, 2024

I've created a starterkit repo for Elixir: https://github.com/icfpcontest2020/starterkit-elixir/

from dockerfiles.

piisalie avatar piisalie commented on August 17, 2024

Okay - thanks. I'll give it a shot.

from dockerfiles.

beevee avatar beevee commented on August 17, 2024

Well, it builds without errors. And when run it makes a HTTP request to the provided URL. I consider that a success. Thank you very much for the contribution!

from dockerfiles.

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.