-
Notifications
You must be signed in to change notification settings - Fork 28
Create install.sh script
#119
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
Open
davidbeig
wants to merge
99
commits into
master
Choose a base branch
from
feat/decidim_install
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
99 commits
Select commit
Hold shift + click to select a range
2f7a103
add vagrant to test script
davidbeig f0d9789
add compose files
davidbeig 8940ca0
add initial scripts
davidbeig fc2ca20
generate SECRET_KEY_BASE
davidbeig 51f9238
add memory to Vagrant
davidbeig 38fc814
add traefik domain and fix default decidim_image
davidbeig 32e3f9b
add pull_policy always to worker
davidbeig e9d262e
add storage to handle volume in app if not bucket
davidbeig 5181c5f
change how to handle repository path
davidbeig fe067ac
add migration execution on app entrypoint
davidbeig 1e9a000
fix up script to handle local database and local storage
davidbeig e0b7bd5
change local database to generate user, password and database name
davidbeig ca858ad
add script to generate gemfiles
davidbeig f2955bd
add alpine versions for cache and db
davidbeig 32009ec
generate vapid keys
davidbeig 97c3ffb
make docker script exit after installing
davidbeig acc8327
pull decidim image when deciding version
davidbeig 4035540
git clone repository to repository path
davidbeig e550ea6
fix on decidim version script
davidbeig be2ca79
change docker installation process
davidbeig 174af9e
fix on variable assignment
davidbeig 434d6ba
fix use of variable
davidbeig 4917f61
add volumes for Gemfile.wrapper and Gemfile.local
davidbeig a47284b
read from /dev/tty
davidbeig c0168d1
check before deleting .env file
davidbeig 1773cf8
ask before openning ports
davidbeig 03553cd
fix parameters passed to docker compose
davidbeig dc42a99
don't exit on open_ports script
davidbeig 5c15d5d
fix volumes on app.yml
davidbeig fa87b32
change bash errors
davidbeig 4cad4c7
update traefik version
davidbeig 4c2ca22
fix use of sidekiq_entrypoint
davidbeig 7921196
fix on entrypoints paths
davidbeig 6cc99b8
make scripts executable
davidbeig add55e3
make entrypoints execute bundle install
davidbeig 2feb6f7
remove sudo from entrypoints
davidbeig a30dcb5
change database env variables
davidbeig 9ddd38f
change password generated base
davidbeig 0adb8ed
update composes
davidbeig a144c41
fix commands
davidbeig 1408e79
fix reference passed to exec
davidbeig 87796f2
remove network mode
davidbeig 59c7f59
move scripts and add action to build release zip
davidbeig 74c7c9c
move scripts to install folder
davidbeig 907f171
add log debug to traefik
davidbeig fb9d9fa
exit if not a correct distribution
davidbeig b1e12ff
add container name
davidbeig 94a9f10
add keys for s3-compatible buckets
davidbeig 5c206ee
script to create system admin
davidbeig 4fdfe3e
add redis_url env
davidbeig 661dacb
remove env for system admin
davidbeig 783c6fd
unify composes
davidbeig cc10b73
some fixes
davidbeig c480654
add certificates and make worker wait for app first
davidbeig fd55517
fixes on aws variables
davidbeig 6cd940b
remove wait for healthy
davidbeig df615ea
add interactivity to some missing commands
davidbeig 5d3a4f7
update README
davidbeig a7d459c
clean up a bit
davidbeig 2100eb9
add sidekiq config
davidbeig f828cdb
add some readme documentation
davidbeig 9a4fc1d
shell linting
davidbeig 553c013
remove vagrantfile
davidbeig a65ab0b
improve messages to choose decidim version
davidbeig 5ec5764
add more context to vapid and export vars
davidbeig 712467f
change check of decidim running to create system admin
davidbeig 6750e1c
Improve messages and flow of docker installation
davidbeig dccb70b
change messages of up.sh
davidbeig 26ebc1f
add new messages and bash fixes
davidbeig e581b92
refactor and add maps envs
davidbeig b23a5ad
remove env var
davidbeig 5344a7b
shellcheck fixes
davidbeig d83e3c9
shellcheck 1091
davidbeig 3931590
disable sc1091
davidbeig 96ac72f
fixes on certs and health_check
davidbeig 7aa5159
update release zip url
davidbeig 5fa1536
improve and fix zip download
davidbeig 75b462c
force overrite of extracted files
davidbeig 94513a0
add minor improvements
davidbeig 4a665e0
remove pull_policy
davidbeig 9e7b7b8
open ports by default
davidbeig 4e8a722
remove option to change decidim version, only install latest
davidbeig fc3ed3a
automatically create system password
davidbeig 02ac09f
fix generate system
davidbeig b951095
fix typos
davidbeig 3a84f5b
Update install/scripts/entrypoint.sh
davidbeig 2bce55a
Update install/install.sh
davidbeig fc9dd76
Update install/up.sh
davidbeig 8cf9f5a
Update install/install.sh
davidbeig b9e5941
Update install/up.sh
davidbeig f698509
Update install/install.sh
davidbeig c18e59e
Update install/dependencies/build_env.sh
davidbeig 47b2a83
Update install/dependencies/os_version.sh
davidbeig 36720e7
Update install/dependencies/generate_vapid_keys.sh
davidbeig 1107d92
Update install/dependencies/build_env.sh
davidbeig 1d81403
apply fixes by coderabbit
davidbeig 66e0d91
more fixes
davidbeig 468432b
add install readme
davidbeig 4da520b
fix typos in readme
davidbeig File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
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,24 @@ | ||
| name: Build Deployment Zip | ||
|
|
||
| on: | ||
| push: | ||
| branches: | ||
| - main | ||
| workflow_dispatch: | ||
|
|
||
| jobs: | ||
| build: | ||
| runs-on: ubuntu-latest | ||
|
|
||
| steps: | ||
| - uses: actions/checkout@v4 | ||
|
|
||
| - name: Create deployment ZIP | ||
| run: | | ||
| zip -r deploy_bundle.zip \ | ||
| install/ \ | ||
|
|
||
| - name: Release | ||
| uses: softprops/action-gh-release@v2 | ||
| with: | ||
| files: deploy_bundle.zip | ||
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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
🏁 Script executed:
Repository: decidim/docker
Length of output: 172
🌐 Web query:
softprops/action-gh-release requirements tag ref behavior💡 Result:
Summary of softprops/action-gh-release tag/ref behavior and requirements
Sources:
[1] softprops/action-gh-release README (usage, tag_name default and tag-gating).
[2] softprops/action-gh-release GitHub issue reporting failures when using non-existing tag_name (example "latest").
🏁 Script executed:
Repository: decidim/docker
Length of output: 132
Release step will fail on branch pushes without proper tag handling.
softprops/action-gh-releasedefaultstag_nametogithub.refand requires an actual tag ref. Since this workflow triggers onpush: branches: [main], the release step at lines 21-24 will fail with a failed release API call when invoked on branch pushes. Gate the release step withif: startsWith(github.ref, 'refs/tags/')or restrict the trigger to tag pushes only (e.g.,on: push: tags: ['v*']).🔧 Proposed fix (tag-only release)
Or add a conditional gate to the release step:
- name: Release + if: startsWith(github.ref, 'refs/tags/') uses: softprops/action-gh-release@v2🤖 Prompt for AI Agents