GithubHelp home page GithubHelp logo

Comments (6)

kushti avatar kushti commented on July 1, 2024

That would be awesome!

from scorex.

oiwn avatar oiwn commented on July 1, 2024

Ok, trying to get in. Faced some issues, since there is compilation step (unlike python where you just push the sources inside the container and define entry point). But despite the issues was able to build image and run it. Unfortunately it's not usable yet in this form, need to integrate it with SBT to:

  • automatically pull in dependencies and the correct path/name of target jars
  • ensure build dependencies match dev. runtime environment. (i used sbt 0.13.8 in image while project required 0.13.9 so when i run container it started to download sbt again)

Also the image size is a bit too large - 800+mb and it takes time to build.

I'll try to do the following:

from scorex.

oiwn avatar oiwn commented on July 1, 2024

Guess i found nice solution for smaller image with java:

https://developer.atlassian.com/blog/2015/08/minimal-java-docker-containers/

guys suffered same problem:

Official Java images have historically been mastodontic - cue picture above - I just tried "docker pull java" and I got an image of 816.4MB.

and they was able to reduce the size of image:

fully functional Oracle Java 8 image weighing only 173Mb.

Few questions:

  • can Scorex run under OpenJDK or OracleJDK is required?
  • Which Java to pick 7 or 8?

And here is how to do the rest using sbt-docker:

https://velvia.github.io/Docker-Scala-Sbt/

from scorex.

oiwn avatar oiwn commented on July 1, 2024

And as far as i see data is persistent between sessions, correct?

https://github.com/ConsensusResearch/Scorex-Lagonaki/blob/master/settings.json

"datadir" : "/tmp/data",

Is so it's required to expose /tmp folder to the docker container.

from scorex.

oiwn avatar oiwn commented on July 1, 2024

#22 pull request

from scorex.

kushti avatar kushti commented on July 1, 2024

merged

from scorex.

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.