Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Engage multiple docker-compose YAML files to structure customization of ISLE #216

Open
McFateM opened this issue Mar 31, 2019 · 3 comments

Comments

@McFateM
Copy link
Member

McFateM commented Mar 31, 2019

Issue Description

This is more of a feature request than an issue.

I've written a script that allows an ISLE admin to select and engage customization to ISLE using a relatively simple, structured approach. The script, isle-docker-compose.sh is attached here, and it basically uses a "hook" approach by looking for files on an ISLE host in any directory one level below an institution's ISLE folder, where docker-compose.yml exists. The script scans all such directories for files that fit the naming convention of: docker-compose.ORDER.NAME.yml. It subsequently builds and executes a command of the form:

docker-compose -f docker-compose.yml -f docker-compose.00.name00.yml -f docker-compose.01.name1.yml -f docker-compose.XX.nameXX.yml up -d

The script is attached here, and the comments within explain this in a little more detail.

Additional Requirements

If this script/approach is adopted it will be necessary to:

  • Navigate to the ISLE project directory like so: cd /path/to/ISLE (the host directory where docker-compose.yml exists).
  • Add the script to the project preserving the name of the script, `isle-docker-compose.sh. If the script name is changed you will need to change the following commands to match.
  • Change the script permissions so that it is executable using: chmod u+x isle-docker-compose.sh.
  • Create a symbolic link in the same folder using: ln -s isle-docker-compose.sh isle-docker-compose. Adding this link will essentially define/create a new isle-docker-compose command for the ISLE admin to use.

Example Use

If adopted and installed, this feature would enable sysadmins to add a properly structured feature using a procedure like the following example. This example assumes that ISLE has been cloned into the /opt/ISLE directory on the host. It engages the GitHub project https://github.com/DigitalGrinnell/cleanup-in-ISLE-one-please.

cd /opt/ISLE
## Clone the feature/project to be implemented.  Repeat this for as many features/projects as you like.
git clone https://github.com/DigitalGrinnell/cleanup-in-ISLE-one-please.git
## Do a `docker-compose up -d` with your new feature included
isle-docker-compose
@McFateM
Copy link
Member Author

McFateM commented Mar 31, 2019

Attaching the script as promised above. If used, be sure to change the script name from isle-docker-compose.txt back to isle-docker-compose.sh.

isle-docker-compose.txt

@McFateM
Copy link
Member Author

McFateM commented Apr 1, 2019

Built a 2nd target project/feature this evening... https://github.com/DigitalGrinnell/web-auth-traefik-portainer.

@SummittDweller
Copy link
Contributor

Did a little re-organization of things with some re-naming. Please see https://github.com/DIgitalGrinnell/ISLE_docker_compose for details now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants