-
Notifications
You must be signed in to change notification settings - Fork 7
Default dev to http. Replace dev/prod profiles with compose override file #98
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
Merged
Merged
Changes from 31 commits
Commits
Show all changes
39 commits
Select commit
Hold shift + click to select a range
8391bd6
remove dev/prod profiles
joecorall d13473e
Add secrets to multiple services in docker-compose
joecorall 7b97b19
http
joecorall e809582
Default to http
joecorall f4c45c3
Use smart port allocation
joecorall 0393652
prepare for template repo
joecorall 6b0b76f
fix GHA
joecorall a64a3ab
default to main starter site
joecorall 7376462
Do not require fetching islandora-starter-site
joecorall ef92250
Add some helpers to understand bad config values
joecorall 0b34f95
update sample override
joecorall 94b7eac
Update init command to update proper permissions after a git clone
joecorall 552811e
Merge README template into README.md
joecorall 04d5223
generate certs, too, on init
joecorall f842c20
Better reverse proxy support
joecorall 1771013
do not open the URL when SSH'd into a machine
joecorall 1d72434
Fix ACME https
joecorall 30d9f63
Remove unnecessary secrets from alpaca service
joecorall eeb78e6
Put default_settings.txt back
joecorall efdf135
better https support
joecorall 6991b27
Call init when necessary
joecorall 5389a7f
fix make traefik-https-letsencrypt
joecorall 0270603
Put static conf in command
joecorall 99d8b5d
Do not expose services in prod environments
joecorall 1fd188f
cleanup
joecorall 123ed55
fix traefik character encoding
joecorall 1500e75
reduce output on make up
joecorall 421580e
fix traefik routing on fcrepo
joecorall ee84111
fix make clean
joecorall 08b1a5e
Add custom makefile support
joecorall 51bd108
Move chmod from make init to make build
joecorall c6d9c14
fix selinux edge
joecorall f8afd9f
Use .SILENT
joecorall 7fc7f1a
Sort alphabetically
joecorall 5bca760
Do not attempt smart port allocation in production
joecorall 3f6fb64
Default to dev environment
joecorall 364f760
update helper text
joecorall 7007773
Fix ping when switching to letsencrypt
joecorall 81e37f8
Remove UID hack
joecorall File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,53 @@ | ||
| name: "Setup ISLE Composite" | ||
| description: "Sets up the ISLE environment" | ||
| inputs: | ||
| buildkit-tag: | ||
| description: "islandora-devops/isle-buildkit docker tag to pull" | ||
| default: "main" | ||
| starter-site-owner: | ||
| description: "islandora-starter-site github owner" | ||
| default: "Islandora-Devops" | ||
| starter-site-ref: | ||
| description: "islandora-starter-site ref to checkout" | ||
| default: "heads/main" | ||
| runs: | ||
| using: "composite" | ||
| steps: | ||
| - name: Validate Inputs | ||
| shell: bash | ||
| run: | | ||
| REGEX_DOCKER="^[a-zA-Z0-9_][a-zA-Z0-9._-]{0,127}$" | ||
| REGEX_GITHUB_OWNER="^[a-zA-Z0-9]([a-zA-Z0-9-]{0,37}[a-zA-Z0-9])?$" | ||
| REGEX_GIT_REF="^([a-zA-Z0-9._\/-]+)$" | ||
| validate() { | ||
| local name=$1 | ||
| local value=$2 | ||
| local regex=$3 | ||
| if [[ ! $value =~ $regex ]]; then | ||
| echo "::error::Invalid input for $name: '$value'. Potential shell injection or malformed string." | ||
| exit 1 | ||
| fi | ||
| } | ||
|
|
||
| validate "buildkit-tag" "${{ inputs.buildkit-tag }}" "$REGEX_DOCKER" | ||
| validate "starter-site-owner" "${{ inputs.starter-site-owner }}" "$REGEX_GITHUB_OWNER" | ||
| validate "starter-site-ref" "${{ inputs.starter-site-ref }}" "$REGEX_GIT_REF" | ||
|
|
||
| - name: setup git identity | ||
| shell: bash | ||
| run: | | ||
| git config --global user.email "actions@github.com" | ||
| git config --global user.name "GitHub Actions" | ||
|
|
||
| - name: Start islandora-starter-site | ||
| shell: bash | ||
| env: | ||
| ISLANDORA_TAG: ${{ inputs.buildkit-tag }} | ||
| TERM: xterm-256color | ||
| run: make up | ||
|
|
||
| - name: make sure traefik is serving traffic | ||
| shell: bash | ||
| run: ./scripts/ping.sh | ||
| env: | ||
| TERM: xterm-256color |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| name: Update from Islandora Starter Site | ||
|
|
||
| on: | ||
| schedule: | ||
| - cron: '0 7 * * *' # Runs daily at 7am UTC | ||
| workflow_dispatch: | ||
|
|
||
| jobs: | ||
| update: | ||
| runs-on: ubuntu-24.04 | ||
| steps: | ||
| - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5 | ||
|
|
||
| - name: Update from starter site | ||
| run: make overwrite-starter-site | ||
|
|
||
| - name: Create Pull Request | ||
| env: | ||
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
| run: make create-starter-site-pr |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,65 @@ | ||
| .PHONY: help pull init up down build setup traefik-http traefik-https-mkcert traefik-https-letsencrypt traefik-certs overwrite-starter-site create-starter-site-pr status clean ping | ||
|
|
||
| # If custom.makefile exists include it. | ||
| -include custom.Makefile | ||
|
|
||
| PROJECT_NAME=$(shell grep '^COMPOSE_PROJECT_NAME=' .env | cut -d= -f2 | tr -d '"' || basename $(CURDIR)) | ||
| DEFAULT_HTTP=80 | ||
| DEFAULT_HTTPS=443 | ||
|
|
||
| help: ## Show this help message | ||
| @echo 'Usage: make [target]' | ||
| @echo '' | ||
| @echo 'Available targets:' | ||
| @awk 'BEGIN {FS = ":.*?## "} /^[a-zA-Z_-]+:.*?## / {printf " \033[36m%-20s\033[0m %s\n", $$1, $$2}' $(MAKEFILE_LIST) | ||
|
|
||
| status: ## Show the current status of the development environment | ||
| @./scripts/status.sh | ||
|
|
||
| traefik-http: ## Switch to HTTP mode (default) | ||
| @./scripts/traefik-http.sh | ||
|
|
||
| traefik-https-mkcert: traefik-certs ## Switch to HTTPS mode using mkcert self-signed certificates | ||
| @./scripts/traefik-https-mkcert.sh | ||
|
|
||
| traefik-https-letsencrypt: ## Switch to HTTPS mode using Let's Encrypt ACME | ||
| @./scripts/traefik-https-letsencrypt.sh | ||
|
|
||
| traefik-certs: ## Generate mkcert certificates | ||
| @./scripts/generate-certs.sh | ||
|
|
||
| pull: | ||
| @docker compose pull --ignore-buildable --ignore-pull-failures | ||
|
|
||
| build: pull ## Build the drupal container | ||
| @./scripts/build.sh | ||
|
|
||
| init: ## Get the host machine configured to run ISLE | ||
| @./scripts/init.sh | ||
|
|
||
| up: ## Start docker compose project with smart port allocation | ||
| @./scripts/up.sh | ||
|
|
||
| up-%: ## Start a specific service (e.g., make up-drupal) | ||
| @docker compose up $* -d | ||
|
|
||
| down: ## Stop/remove the docker compose project's containers and network. | ||
| @docker compose down | ||
|
|
||
| down-%: ## Stop/remove a specific service (e.g., make down-traefik) | ||
| @docker compose down $* | ||
|
|
||
| logs-%: ## Look at logs for a specific service (e.g., make logs-drupal) | ||
| @docker compose logs $* --tail 20 -f | ||
|
|
||
| clean: ## Delete all stateful data. | ||
| @./scripts/clean.sh | ||
|
|
||
| ping: ## Ensure site is available. | ||
| @./scripts/ping.sh | ||
|
|
||
| overwrite-starter-site: ## Keep site template's drupal install in sync with islandora-starter-site | ||
| @./scripts/overwrite-starter-site.sh | ||
|
|
||
| create-starter-site-pr: ## Create a PR for islandora-starter-site updates | ||
| @./scripts/create-pr.sh | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.