comp.lang.ada
 help / color / mirror / Atom feed
* questions regarding Docker, Ada and Alire
@ 2023-10-03 21:44 Kenneth Wolcott
  2023-10-04  0:02 ` Kenneth Wolcott
  2023-10-04  8:29 ` Stéphane Rivière
  0 siblings, 2 replies; 3+ messages in thread
From: Kenneth Wolcott @ 2023-10-03 21:44 UTC (permalink / raw)


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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: questions regarding Docker, Ada and Alire
  2023-10-03 21:44 questions regarding Docker, Ada and Alire Kenneth Wolcott
@ 2023-10-04  0:02 ` Kenneth Wolcott
  2023-10-04  8:29 ` Stéphane Rivière
  1 sibling, 0 replies; 3+ messages in thread
From: Kenneth Wolcott @ 2023-10-04  0:02 UTC (permalink / raw)


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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: questions regarding Docker, Ada and Alire
  2023-10-03 21:44 questions regarding Docker, Ada and Alire Kenneth Wolcott
  2023-10-04  0:02 ` Kenneth Wolcott
@ 2023-10-04  8:29 ` Stéphane Rivière
  1 sibling, 0 replies; 3+ messages in thread
From: Stéphane Rivière @ 2023-10-04  8:29 UTC (permalink / raw)


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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-10-04  8:29 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-10-03 21:44 questions regarding Docker, Ada and Alire Kenneth Wolcott
2023-10-04  0:02 ` Kenneth Wolcott
2023-10-04  8:29 ` Stéphane Rivière

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox