Comments (7)
@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.
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.
@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.
from isle.
@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.
from isle.
Closing ticket as requested.
from isle.
Related Issues (20)
- Staging install instructions: clarify or improve "commit locally to git" HOT 2
- Documentation: How to build a Multisite in ISLE HOT 3
- Drush crashes due to IMI use of Composer in install-local-migrate process at Step 10 HOT 5
- Development needed for Cantaloupe upgrade from 4.0.3 to 4.1.5 HOT 2
- Restore production `/var/www/html/sites/default/files` in `install-local-migrate.md` HOT 1
- Run standalone fedora image with AWS RDS configuration.
- Documentation: small fixes to install-environments.md HOT 1
- Documentation: update the final terminal output of install_solution_packs.sh HOT 1
- Error Message needs attention HOT 1
- Insufficient TemporaryStore disk space halting FEDORA HOT 4
- WARC tools missing from ISLE-apache Dockerfile HOT 4
- No documentation about configuring to send mail HOT 13
- Documentation update: docs/update/update.md needs "master" changed to "main" HOT 3
- Traefik should get an upgrade to 2.0
- Removing forced permissions check on ISLE apache image every time container restarts HOT 1
- Migration instructions have an odd step. HOT 5
- cache.server.source.ttl_seconds set twice in cantaloupe.properties HOT 1
- Tailing fedoragsearch logs: path needs correction HOT 4
- Staging Migration: Software Dependencies for both Ubuntu and CentOS are missing two steps HOT 1
- Should there be a warning that the docs are for ISLE7 / Islandora 7 and not for ISLE2 / Islandora 2 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from isle.