-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(refactor): move NGINX to Synapse rock (#541)
* chore(refactor): move NGINX to Synapse rock * fix: remove synapse-nginx-image param * fix: change rock version just in case
- Loading branch information
Showing
19 changed files
with
63 additions
and
193 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
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
This file was deleted.
Oops, something went wrong.
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
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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 |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
name: synapse | ||
summary: Synapse rock | ||
description: Synapse OCI image for the Synapse charm | ||
version: "1.0" | ||
version: "2.0" | ||
base: [email protected] | ||
# renovate: base: ubuntu:22.04@sha256:58b87898e82351c6cf9cf5b9f3c20257bb9e2dcf33af051e12ce532d7f94e3fe | ||
build-base: [email protected] | ||
|
@@ -41,6 +41,31 @@ parts: | |
overlay-script: | | ||
groupadd -R $CRAFT_OVERLAY --gid 991 synapse | ||
useradd -R $CRAFT_OVERLAY --system --gid 991 --uid 991 --home /srv/synapse -m synapse | ||
chmod 755 $CRAFT_OVERLAY/etc | ||
groupadd -R $CRAFT_OVERLAY --gid 2000 nginx | ||
useradd -R $CRAFT_OVERLAY --system --gid 2000 --uid 2000 --no-create-home nginx | ||
nginx-conf: | ||
plugin: dump | ||
source: etc | ||
organize: | ||
nginx.conf: etc/nginx/nginx.conf | ||
worker_location.conf: etc/nginx/worker_location.conf | ||
abuse_report_location.conf.template: etc/nginx/abuse_report_location.conf.template | ||
abuse_report_location.conf: etc/nginx/abuse_report_location.conf | ||
main_location.conf.template: etc/nginx/main_location.conf.template | ||
main_location.conf: etc/nginx/main_location.conf | ||
nginx: | ||
stage-packages: | ||
- logrotate | ||
- nginx | ||
- sed | ||
plugin: nil | ||
override-build: | | ||
craftctl default | ||
rm $CRAFT_PART_INSTALL/etc/nginx/nginx.conf | ||
override-prime: | | ||
craftctl default | ||
mkdir run | ||
synapse: | ||
build-packages: | ||
- build-essential | ||
|
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
Oops, something went wrong.