-
Notifications
You must be signed in to change notification settings - Fork 675
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2637 from nextcloud/enh/1581/add-example-containers
- Loading branch information
Showing
7 changed files
with
78 additions
and
3 deletions.
There are no files selected for viewing
This file contains 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,37 @@ | ||
name: Validate community containers | ||
|
||
on: | ||
pull_request: | ||
paths: | ||
- 'community-containers/**' | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- 'community-containers/**' | ||
|
||
jobs: | ||
validator-community-containers: | ||
name: Validate community containers | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
- name: Validate structure | ||
run: | | ||
CONTAINERS="$(find ./community-containers -mindepth 1 -maxdepth 1 -type d)" | ||
mapfile -t CONTAINERS <<< "$CONTAINERS" | ||
for container in "${CONTAINERS[@]}"; do | ||
container="$(echo "$container" | sed 's|./community-containers/||')" | ||
if ! [ -f ./community-containers/"$container"/"$container.json" ]; then | ||
echo ".json file must be named like its parent folder $container" | ||
FAIL=1 | ||
fi | ||
if ! [ -f ./community-containers/"$container"/readme.md ]; then | ||
echo "There must be a readme.md file in the folder!" | ||
FAIL=1 | ||
fi | ||
if [ -n "$FAIL" ]; then | ||
exit 1 | ||
fi | ||
done |
This file contains 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 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,26 @@ | ||
{ | ||
"aio_services_v1": [ | ||
{ | ||
"container_name": "nextcloud-aio-fail2ban", | ||
"display_name": "Fail2ban", | ||
"image": "szaimen/aio-fail2ban", | ||
"image_tag": "%AIO_CHANNEL%", | ||
"internal_port": "host", | ||
"restart": "unless-stopped", | ||
"cap_add": [ | ||
"NET_ADMIN", | ||
"NET_RAW" | ||
], | ||
"environment": [ | ||
"TZ=%TIMEZONE%" | ||
], | ||
"volumes": [ | ||
{ | ||
"source": "nextcloud_aio_nextcloud", | ||
"destination": "/nextcloud", | ||
"writeable": false | ||
} | ||
] | ||
} | ||
] | ||
} |
This file contains 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 @@ | ||
This is not working on Docker Desktop since it needs network_mode: host in order to work correctly. |
This file contains 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 @@ | ||
## This is a WIP and not working yet! |
This file contains 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 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