Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

Computers are useless. They can only give you answers. -- Pablo Picasso


devel / comp.lang.ada / Re: questions regarding Docker, Ada and Alire

SubjectAuthor
* questions regarding Docker, Ada and AlireKenneth Wolcott
+- Re: questions regarding Docker, Ada and AlireKenneth Wolcott
`- Re: questions regarding Docker, Ada and AlireStéphane Rivière

1
questions regarding Docker, Ada and Alire

<e7413d25-7cb4-4aec-9d9a-1fe6eaffed53n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=10173&group=comp.lang.ada#10173

  copy link   Newsgroups: comp.lang.ada
X-Received: by 2002:ac8:7f0a:0:b0:403:27b2:85b5 with SMTP id f10-20020ac87f0a000000b0040327b285b5mr8405qtk.12.1696369495254;
Tue, 03 Oct 2023 14:44:55 -0700 (PDT)
X-Received: by 2002:a05:6808:19a9:b0:3ae:61f:335e with SMTP id
bj41-20020a05680819a900b003ae061f335emr437876oib.5.1696369495036; Tue, 03 Oct
2023 14:44:55 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.ada
Date: Tue, 3 Oct 2023 14:44:54 -0700 (PDT)
Injection-Info: google-groups.googlegroups.com; posting-host=98.59.238.112; posting-account=oHOvdQoAAACYgyEBjgPNvKFOGxg8pNns
NNTP-Posting-Host: 98.59.238.112
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <e7413d25-7cb4-4aec-9d9a-1fe6eaffed53n@googlegroups.com>
Subject: questions regarding Docker, Ada and Alire
From: kennethwolcott@gmail.com (Kenneth Wolcott)
Injection-Date: Tue, 03 Oct 2023 21:44:55 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 1701
 by: Kenneth Wolcott - Tue, 3 Oct 2023 21:44 UTC

Hi;

Has anybody used a Docker container with Ada and Alire (obviously Linux)?

If so,

1. did you create a Docker image using a Dockerfile?

or

2. did you find a Docker base (eg: official Docker Ubuntu) image and modify it by downloading gnat source, compiling and installing it and then downloading Alire, compiling and installing it?

or

3. Found an exiting Docker Linux image with all of the above all nicely preconfigured?

If you used a Dockerfile, would you mind sharing it?

I'm on a Mac with M1 chip and would like to consider getting Ada and Alire working in this manner as an alternative that *might* work more effectively than what I'm trying now.

Thanks,
Ken Wolcott

Re: questions regarding Docker, Ada and Alire

<2808840a-fc4c-48cf-90f5-9118bc1039b4n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=10174&group=comp.lang.ada#10174

  copy link   Newsgroups: comp.lang.ada
X-Received: by 2002:a05:622a:1051:b0:419:6cf4:247d with SMTP id f17-20020a05622a105100b004196cf4247dmr12877qte.10.1696377775931;
Tue, 03 Oct 2023 17:02:55 -0700 (PDT)
X-Received: by 2002:a9d:6b18:0:b0:6c4:b0e7:7403 with SMTP id
g24-20020a9d6b18000000b006c4b0e77403mr211648otp.6.1696377775686; Tue, 03 Oct
2023 17:02:55 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.ada
Date: Tue, 3 Oct 2023 17:02:55 -0700 (PDT)
In-Reply-To: <e7413d25-7cb4-4aec-9d9a-1fe6eaffed53n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=98.59.238.112; posting-account=oHOvdQoAAACYgyEBjgPNvKFOGxg8pNns
NNTP-Posting-Host: 98.59.238.112
References: <e7413d25-7cb4-4aec-9d9a-1fe6eaffed53n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <2808840a-fc4c-48cf-90f5-9118bc1039b4n@googlegroups.com>
Subject: Re: questions regarding Docker, Ada and Alire
From: kennethwolcott@gmail.com (Kenneth Wolcott)
Injection-Date: Wed, 04 Oct 2023 00:02:55 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 3037
 by: Kenneth Wolcott - Wed, 4 Oct 2023 00:02 UTC

On Tuesday, October 3, 2023 at 2:44:56 PM UTC-7, Kenneth Wolcott wrote:
> Hi;
>
> Has anybody used a Docker container with Ada and Alire (obviously Linux)?
>
> If so,
>
> 1. did you create a Docker image using a Dockerfile?
>
> or
>
> 2. did you find a Docker base (eg: official Docker Ubuntu) image and modify it by downloading gnat source, compiling and installing it and then downloading Alire, compiling and installing it?
>
> or
>
> 3. Found an exiting Docker Linux image with all of the above all nicely preconfigured?
>
> If you used a Dockerfile, would you mind sharing it?
>
> I'm on a Mac with M1 chip and would like to consider getting Ada and Alire working in this manner as an alternative that *might* work more effectively than what I'm trying now.
>
> Thanks,
> Ken Wolcott

Update:

I chose the gcc linux/amd64 Docker Official Image (could have chosen Ubuntu, Fedora, Debian, Rocky, etc).

I downloaded the Linux Alire package and copied it over to the Docker container interactively running bash using the aforementioned Docker image.

I was able to get Alire to install the gnat native compiler for gcc13.

Now what remains is for me to re-learn how to use Docker and how to use Alire...like getting the Alire Docker container environment to be persistent....

Perhaps I will try a different official Docker image as a base to start with as I really don't need anything gcc related that Alire doesn't provide....

Perhaps I will try to create my own Dockerfile to create my own Docker image in which to run containers from.

I was hoping (still hoping) to get some sage advice from those here on any gotchas or suggestions to enhance the experience...

Thanks,
Ken

Re: questions regarding Docker, Ada and Alire

<ufj7om$2s4a$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=10177&group=comp.lang.ada#10177

  copy link   Newsgroups: comp.lang.ada
Path: i2pn2.org!i2pn.org!news.hispagatos.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: stef@genesix.org (Stéphane Rivière)
Newsgroups: comp.lang.ada
Subject: Re: questions regarding Docker, Ada and Alire
Date: Wed, 4 Oct 2023 10:29:10 +0200
Organization: La Maison
Lines: 37
Message-ID: <ufj7om$2s4a$1@dont-email.me>
References: <e7413d25-7cb4-4aec-9d9a-1fe6eaffed53n@googlegroups.com>
Reply-To: stef@genesix.org
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 4 Oct 2023 08:29:10 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="17dc1f5169f5a625423d4735bb3f43c4";
logging-data="94346"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/T4fZaaECx8Ixjh9w0FMR/u3vMH+HMM94="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101
Thunderbird/52.9.1
Cancel-Lock: sha1:JMy0+8c0l/BALUwic5Zowz3O0uk=
Content-Language: fr
Openpgp: preference=signencrypt
In-Reply-To: <e7413d25-7cb4-4aec-9d9a-1fe6eaffed53n@googlegroups.com>
 by: Stéphane Rivière - Wed, 4 Oct 2023 08:29 UTC

Hi Kenneth,

Docker's main relevant use is to offer, at the price of a slight loss of
performance (~15% max), a solid integration for a complex application
including multiple linked programmes (e.g. a mail server).

Docker's interface and standardization make it a pleasure to use. Docker
is also a fast way of deploying a test environment and, in some cases,
Docker is the best way to install an application.

But today's followers sheep swear by micro-services¹, docker, k8s and
other concepts that make applications huge, horribly complex and
non-debuggable...

¹ Since many coders are unable to create more than a few hundred
coherent lines, let's multiply these blocks of code into hundreds of
micro-services, which communicate in a complex and inefficient way.

So, docker is good, Alire is great, but these concepts don't solve
everything. It could be an interesting experiment to link the two if
there are complex program associations.

For example, Docker and Ada could be combined to create a business
application with an integrated MySQL or PostgreSQL DB. Even if the
adoption of the very powerful SQLite would make it possible not to use
Docker.

We avoid using Docker in our multi-DC infrastructure based on Xen and
Debian since we already handle Xen virtual instances. We also observed
that a Docker instance was less reliable and secure than a virtualized
Xen or KVM instance.

We look forward to hearing about your experiences :)

--
Stéphane Rivière
Ile d'Oléron - France

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor