From mboxrd@z Thu Jan  1 00:00:00 1970
Authentication-Results: mail.toke.dk; spf=pass (mailfrom) smtp.mailfrom=protonmail.com (client-ip=185.70.40.136; helo=mail-40136.protonmail.ch; envelope-from=jvanveen@protonmail.com; receiver=<UNKNOWN>)
Authentication-Results: mail.toke.dk;
	dkim=pass (1024-bit key) header.d=protonmail.com header.i=@protonmail.com header.b=h7iFOLz5
Received: from mail-40136.protonmail.ch (mail-40136.protonmail.ch [185.70.40.136])
	by mail.toke.dk (Postfix) with ESMTPS id 1D8877C08D3
	for <galene@lists.galene.org>; Mon, 28 Dec 2020 19:08:27 +0100 (CET)
Date: Mon, 28 Dec 2020 18:08:22 +0000
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com;
	s=protonmail; t=1609178906;
	bh=HJM5dA6RQshFMHUNhY3kKyYTrxzr51KBYAuP/t3GFak=;
	h=Date:To:From:Cc:Reply-To:Subject:In-Reply-To:References:From;
	b=h7iFOLz5QPDd9mhy0gEKM8pk7ob7BxofPLk5frTKFpxOYEngO7jV9wAYVDNTzi0ZX
	 vHq2HfLAbCgZuVh5BP9/WNxRma5V2Li/FLPYMztbgbsx+Exwbn8uFYcrJ59KtosnLX
	 klBTOsCEpOkmqw6WD5FawrDQoc/Ul6bC+TQJ09MA=
To: =?utf-8?Q?Antonin_D=C3=A9cimo?= <antonin.decimo@gmail.com>
From: Jeroen van Veen <jvanveen@protonmail.com>
Message-ID: <x8tNpqWEsfyFm2NVP6dO1zGF5nmimPizg4LA-de-c_DgKEPCeFUbz8tz3q9UwjNXHLiWO0muiRev5kOJWxYM3UqqaDSx_ovMMkWy7BPPsTs=@protonmail.com>
In-Reply-To: <C84B3PI4P8QJ.1T1W3VWXA7IUP@kobain>
References: <0688ccc55ed16925427c08c0dfa9794e@kn1ght.org> <41iOS83_x7ZCTcMkNNxAKoVhYq4E7H9hFCmZXaSp_4s0R2vVPgYdYPXh3q0t69fbqmFduH86rXn42G0QZ-aHdvbVtQ1FNfEKoy7EEkMpF_8=@protonmail.com> <C84B3PI4P8QJ.1T1W3VWXA7IUP@kobain>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Status: No, score=-1.2 required=10.0 tests=ALL_TRUSTED,DKIM_SIGNED,
	DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM shortcircuit=no
	autolearn=disabled version=3.4.4
X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on
	mailout.protonmail.ch
Message-ID-Hash: KBG63KFP5SKVVC4UFDLK6MVMVEYVRP2C
X-Message-ID-Hash: KBG63KFP5SKVVC4UFDLK6MVMVEYVRP2C
X-MailFrom: jvanveen@protonmail.com
X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; suspicious-header
CC: Cell <galene.org@kn1ght.org>, "galene@lists.galene.org" <galene@lists.galene.org>
X-Mailman-Version: 3.3.2
Precedence: list
Reply-To: Jeroen van Veen <jvanveen@protonmail.com>
Subject: [Galene] Re: Docker image
List-Id: =?utf-8?q?Gal=C3=A8ne_videoconferencing_server_discussion_list?= <galene.lists.galene.org>
Archived-At: <https://lists.galene.org/galene/x8tNpqWEsfyFm2NVP6dO1zGF5nmimPizg4LA-de-c_DgKEPCeFUbz8tz3q9UwjNXHLiWO0muiRev5kOJWxYM3UqqaDSx_ovMMkWy7BPPsTs=@protonmail.com/>
List-Archive: <https://lists.galene.org/galene/>
List-Help: <mailto:galene-request@lists.galene.org?subject=help>
List-Post: <mailto:galene@lists.galene.org>
List-Subscribe: <mailto:galene-join@lists.galene.org>
List-Unsubscribe: <mailto:galene-leave@lists.galene.org>

Hi Antonin,

Thanks for the detailed description! I'll give it a try with
the golang base-image instead.

cheers,

Jeroen


=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90 Original Me=
ssage =E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90
Op maandag, december 28, 2020 10:21 AM, Antonin D=C3=A9cimo <antonin.decimo=
@gmail.com> schreef:

> Hi!
>
> If your image is using a pre-compiled version of Gal=C3=A8ne, you=
=E2=80=99ll lack
> portability across distributions and architectures. You should build
> Gal=C3=A8ne and run it inside the Dockerfile. You could even use a layere=
d
> Dockerfile so that Gal=C3=A8ne is build in one image, then copied in the
> second image and run from there.
>
> Starting from scratch is a bad idea.
>
> I=E2=80=99d use instead the Golang Docker image. It is well documented:
>
> https://hub.docker.com/_/golang
>
> A simple workflow would be to have the Dockerfile inside the Gal=C3=A8ne
> repo and use the example Dockerfile:
>
> FROM golang:1.15
>
> WORKDIR /go/src/galene
> COPY . .
>
> RUN go get -d -v ./...
> RUN go install -v ./...
>
> CMD ["galene"]
>
> Or you could build a "self-hosting" Dockerfile that download the
> package and its dependencies itself (this one is untested, I don't
> have the bandwidth right now):
>
> FROM golang:1.15
>
> WORKDIR /go/src/galene
> COPY data groups static ./
>
> RUN go get -d -v github.com/jech/galene
> RUN go install -v github.com/jech/galene
>
> CMD ["galene"]
>
> The Golang project provides images for Linux, Windows, macOS, and
> various architectures that you can use as base images.
>
> Once an image is build, it is not portable to other systems or
> architectures; but the build script (the Dockerfile) may be portable.
> For Windows, nanoserver is the lightest image, windowsservercore is a
> bit more featured.
>
> -- Antonin
>
> Galene mailing list -- galene@lists.galene.org
> To unsubscribe send an email to galene-leave@lists.galene.org