GithubHelp home page GithubHelp logo

rewrite docker stuff about gitea HOT 16 CLOSED

go-gitea avatar go-gitea commented on May 1, 2024
rewrite docker stuff

from gitea.

Comments (16)

tboerger avatar tboerger commented on May 1, 2024 4

Nobody wants to use scratch, alpine is a perfect base

from gitea.

 avatar commented on May 1, 2024 1

I would strongly recommend against using scratch as that renders any form of shell scripting invalid.

from gitea.

ptman avatar ptman commented on May 1, 2024 1

The way you say it makes it sound like avoiding shell scripts is a bad thing

from gitea.

 avatar commented on May 1, 2024 1

Yes, it breaks many things. Including git-hooks and https://github.com/go-gitea/git.

from gitea.

xinity avatar xinity commented on May 1, 2024

keep s6 as an init replacement.

from gitea.

xinity avatar xinity commented on May 1, 2024

rewrite env variables

from gitea.

xinity avatar xinity commented on May 1, 2024

dockerfile cleanup

from gitea.

DblK avatar DblK commented on May 1, 2024

I would suggest to have the smaller image as possible and by doing so, the compilation should be done outside and the binary pushed to the docker (maybe from scratch instead alpine).

I could provide later a link to a docker images that can be used to build Go program and make docker images without compiler program.

Edit 11/10/16:
Here is the link to build dockerfile for Go program with image "SCRATCH"

from gitea.

xinity avatar xinity commented on May 1, 2024

@DblK feel free to update your comment with the appropriate link :)

from gitea.

tboerger avatar tboerger commented on May 1, 2024

We will use drone to build the binary outside of the docker image, the drone pipeline is in preparation ;)

from gitea.

xinity avatar xinity commented on May 1, 2024

@tboerger nice !

then @DblK send the link to me :) i'd be happy to learn moaaarrrr go :)

from gitea.

willemvd avatar willemvd commented on May 1, 2024

why do we need that s6 stuff instead of setting things up in the dockerfile?

from gitea.

tboerger avatar tboerger commented on May 1, 2024

@willemvd we need s6 as process manager because we will run more than a single service within the container, at least we need Gitea and openSSH.

from gitea.

 avatar commented on May 1, 2024

@tboerger, I just wanted to let anyone that likes @DblK's idea know that it's not going to be good if we use scratch as base.

from gitea.

ogarcia avatar ogarcia commented on May 1, 2024

Using scratch as base not is (in this case) a good idea cause you need OpenSSH and shell scripts.

from gitea.

tboerger avatar tboerger commented on May 1, 2024

We already refactored docker

from gitea.

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.