Giter Club home page Giter Club logo

Comments (7)

g7morris avatar g7morris commented on July 22, 2024

@hamhpc I like the thinking here.

Tested the command locally:

Output after running command:

sed: 1: "/etc/hosts": extra characters at the end of h command

End result: (updated /etc/hosts file)

127.0.0.1 localhost
#127.0.0.1 localhost islandora-docker.com fedora web fedora.islandora-docker.com web.islandora-docker.com
255.255.255.255 broadcasthost

Does this look correct to you? @hamhpc

from isle.

hamhpc avatar hamhpc commented on July 22, 2024

actually it doesn't. The logic here is to find the match for the first line:

127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4

and replace it with the same line followed by a carriage return and the second line containing the isle host info. I think the tricky part here is that I think there needs to be a tab in the line and a copy paste might not copy properly. You can look at: https://github.com/hamhpc/ISLE-ks/blob/master/ks_ISLE.cfg for the version I'm using and appears to work when running it via kickstart.

The only issue is that the first line looks like this for CentOS:

127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4

But I'm not sure it's the same convention for other OS's so that might need to be handled.

from isle.

g7morris avatar g7morris commented on July 22, 2024

@hamhpc @McFateM @br2490 I've not heard back on how to advance with this command. Wondering if still needed given in isle.localdomain we use the extra_hosts: command to give the containers the appropriate DNS resolution. @br2490 Does this match your experience during your community alpha?

from isle.

hamhpc avatar hamhpc commented on July 22, 2024

from isle.

br2490 avatar br2490 commented on July 22, 2024

@g7morris, yes my experience in Alpha2.

I'll add I've also had success using separately defined docker networks - I'm behind on my pre-alpha-alpha (Barnard was set for Feb, I jumped the gun) testing so hopefully by Monday I have something more meaningful to say.

I think there are several ways to accomplish this and extra_hosts is probably the fastest. I'd still like to investigate separate docker networks, one internal (all containers sit on this), and one external (such that only outward facing containers go here, i.e.: isle-apache).

@hamhpc in trying to keep with Docker practice we try to avoid editing the host file directly and let docker handle it. Gavin mentions extra_hosts which adds an unlimited number of entries into hosts, I'll mention hostname and domainname params too, but I fail to remember if compose respects them. knowing compose, it's like a 50/50.

edit, specifying which alpha.

from isle.

hamhpc avatar hamhpc commented on July 22, 2024

from isle.

g7morris avatar g7morris commented on July 22, 2024

Closing ticket as requested.

from isle.

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.