Git Product home page Git Product logo

Comments (5)

sbani avatar sbani commented on May 4, 2024

My suggestions what should be done here:

Alpine and/or debian

Create an image based on alpine golang:1.6-alpine and debian golang:1.6

Info from the golang image

This variant is highly recommended when final image size being as small as possible is desired. The main caveat to note is that it does use musl libc instead of glibc and friends, so certain software might run into issues depending on the depth of their libc requirements.

Image sizes

$ sudo docker images -a
REPOSITORY             TAG                 IMAGE ID            CREATED             SIZE
golang                 1.6                 2529f72145a7        8 days ago          744 MB
golang                 1.6-alpine          c40da134e949        4 weeks ago         238 MB

All in one package

Should we create an "all in one package" with postgres? Could be useful for testing purpose like the vagrant machine is.

Build and push

One task is to build and push the image with the CI server (travis)

Docker compose

Create a compose yaml to run database and hydra with one command. I don't know how to "hide" the database passwords - by environments vars?

from hydra.

aeneasr avatar aeneasr commented on May 4, 2024

Looks good! As of right now, we have multiple executables (see cli). I was thinking of splitting those up in separate repositories as the current pattern tricky do deal with in buildpacks. Could multiple executables work with Docker or is it there an issue as well?

from hydra.

aeneasr avatar aeneasr commented on May 4, 2024

Ok, of course we could simply build multiple executables in the Dockerfile and expose them on different ports. So it shouldn't be a huge deal

from hydra.

sbani avatar sbani commented on May 4, 2024

The docker best practice doc says:

In almost all cases, you should only run a single process in a single container.

That's why we should create multiple containers for the different executables.

from hydra.

aeneasr avatar aeneasr commented on May 4, 2024

Ok, I don't think that would work with docker autobuild. Looks like we have to create multiple repositories.

from hydra.

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.