Hi Stefan,

No worries. Thanks for the explanation. I think using a different image makes 
sense for that deployment stage too. 

David Cook
Senior Software Engineer
Prosentient Systems
Suite 7.03
6a Glen St
Milsons Point NSW 2061
Australia

Office: 02 9212 0899
Online: 02 8005 0595

-----Original Message-----
From: dspace-tech@googlegroups.com <dspace-tech@googlegroups.com> On Behalf Of 
Stefan Fritzsche
Sent: Thursday, 4 August 2022 1:44 AM
To: 'DSpace Technical Support' <dspace-tech@googlegroups.com>
Subject: AW: [dspace-tech] Re: ssh command with docker dspace-dependencies image

Hello David

Sorry for my late reply.

You are correct, we are using the image to send the docker-compose commands to 
the Docker host via ssh. We have customized the Docker files to use our own 
images from the local Docker registry. The local Docker registry is also a part 
of our AI system.

The Gitlab pipeline has a stage that is responsible for building the image with 
the codebase from the last commit of the master branch and pushing the image to 
our Docker registry.  By the way, it is important to use a Docker dind image if 
you want to run Docker commands inside a Docker container. In the next step, a 
container based on the dspace-dependencies image triggers the deploy via ssh. 

I think we use the image because it is used by all other stages and it was 
possible to do ssh. In my opinion, we can also use another image in this stage. 
The reason to reduce the size of the dspace-dependencies image is more 
important.

With kind regards,
Stefan
________________________________________
Von: dc...@prosentient.com.au <dc...@prosentient.com.au>
Gesendet: Donnerstag, 28. Juli 2022 02:20
An: 'Tim Donohue'; 'DSpace Technical Support'; Fritzsche, Stefan
Betreff: RE: [dspace-tech] Re: ssh command with docker dspace-dependencies image

Hi Stefan,

As an aside, I’d be curious to hear how you’re using the Gitlab CI/CD tools 
with DSpace.

Are you using “dspace/dspace-dependencies:dspace-7_x” image for the Gitlab 
Runner container and then SSHing to your target Docker host server to do your 
Docker deployment?

David Cook
Senior Software Engineer
Prosentient Systems
Suite 7.03
6a Glen St
Milsons Point NSW 2061
Australia

Office: 02 9212 0899
Online: 02 8005 0595

From: 'Tim Donohue' via DSpace Technical Support <dspace-tech@googlegroups.com>
Sent: Thursday, 28 July 2022 1:42 AM
To: DSpace Technical Support <dspace-tech@googlegroups.com>
Subject: [dspace-tech] Re: ssh command with docker dspace-dependencies image

Hi Stefan,

We didn't purposefully remove SSH, but I do see that recently we switched the 
`dspace-dependencies` image to use `openjdk:11-slim` instead of previously 
using `tomcat:9-jdk11`.  The primary reason was to create a smaller image, as 
that image doesn't need to have all of Tomcat on it.

So, I'd recommend just adding SSH to your image if you need it.  Or, if you 
wish, you can provide a PR back to DSpace to suggest similar modifications to 
the Dockerfile for this image: 
https://github.com/DSpace/DSpace/blob/main/Dockerfile.dependencies

Tim
On Tuesday, July 26, 2022 at 7:21:46 AM UTC-5 Stefan Fritzsche wrote:
Dear community,

we are using the CI tools provided by our GitLab for our deploy workflow.

However, our workflow builds a docker container using the 
dspace/dspace-dependencies:dspace-7_x image. In this container it was possible 
to run the ssh command "before" (about 8 months ago). Unfortunately, this is no 
longer possible. Has the ssh command been removed from the image?

Regards,
Stefan
--
All messages to this mailing list should adhere to the Code of Conduct: 
https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx
---
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to 
dspace-tech+unsubscr...@googlegroups.com<mailto:dspace-tech+unsubscr...@googlegroups.com>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dspace-tech/3327424d-8cd7-4d28-a2d0-0da801f579ean%40googlegroups.com<https://groups.google.com/d/msgid/dspace-tech/3327424d-8cd7-4d28-a2d0-0da801f579ean%40googlegroups.com?utm_medium=email&utm_source=footer>.

-- 
All messages to this mailing list should adhere to the Code of Conduct: 
https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx
--- 
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dspace-tech+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dspace-tech/cce9d152a5b94e72bc616eda2a022da9%40tu-dresden.de.

-- 
All messages to this mailing list should adhere to the Code of Conduct: 
https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx
--- 
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dspace-tech+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dspace-tech/0eb401d8a78f%240fe11200%242fa33600%24%40prosentient.com.au.

Reply via email to