-
Notifications
You must be signed in to change notification settings - Fork 71
feat: Add optimized build profile and Debian packaging for ARMv6 #1128
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
tomoyan596
wants to merge
4
commits into
atomicdata-dev:develop
Choose a base branch
from
tomoyan596:feat-arm-optimized-deb
base: develop
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 2 commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
5680626
feat: Add optimized build profile and Debian packaging for ARMv6
tomoyan596 c33396c
docs: translate comments to English in debian scripts
tomoyan596 8a315e3
refactor: unify maintainer metadata and clean up systemd service
tomoyan596 8af55fc
chore: add homepage to atomic-cli for metadata consistency
tomoyan596 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
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
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
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,63 @@ | ||
| # Recreates the `/setup` Invite for creating a new Root User. | ||
| # Also re-runs various populate commands, and re-builds the index | ||
| #ATOMIC_INITIALIZE=true | ||
|
|
||
| # Re-builds the indexes. Parses all the resources. | ||
| # Do this when updating requires it, or if you have issues with Collections / Queries / Search. | ||
| #ATOMIC_REBUILD_INDEX=true | ||
|
|
||
| # Use staging environments for services like LetsEncrypt | ||
| #ATOMIC_DEVELOPMENT=true | ||
|
|
||
| # The origin domain where the app is hosted, without the port and schema values. | ||
| ATOMIC_DOMAIN=localhost | ||
|
|
||
| # 9.883 is decimal for the `⚛` character. | ||
| # The port where the HTTP app is available. Set to 80 if you want this to be available on the network. | ||
| #ATOMIC_PORT=9883 | ||
|
|
||
| # The port where the HTTPS app is available. Set to 443 if you want this to be available on the network. | ||
| #ATOMIC_PORT_HTTPS=9884 | ||
|
|
||
| # The IP address of the server. Set to :: if you want this to be available to other devices on your network. | ||
| #ATOMIC_IP=:: | ||
|
|
||
| # Use HTTPS instead of HTTP. | ||
| # Will get certificates from LetsEncrypt fully automated. | ||
| #ATOMIC_HTTPS=true | ||
|
|
||
| # Initializes DNS-01 challenge for LetsEncrypt. Use this if you want to use subdomains. | ||
| #ATOMIC_HTTPS_DNS=true | ||
|
|
||
| # The contact mail address for Let's Encrypt HTTPS setup | ||
| #[email protected] | ||
|
|
||
| # Custom JS script to include in the body of the HTML template | ||
| #ATOMIC_SCRIPT= | ||
|
|
||
| # Path for atomic data config directory. Defaults to "~/.config/atomic/"" | ||
| ATOMIC_CONFIG_DIR=/etc/atomic-server | ||
|
|
||
| # Path for atomic data store folder. Contains your Store, uploaded files and more. Default value depends on your OS. | ||
| ATOMIC_DATA_DIR=/var/lib/atomic-server/data | ||
|
|
||
| # Path for the atomic data cache folder. Contains search index, temp files and more. Default value depends on your OS. | ||
| ATOMIC_CACHE_DIR=/var/cache/atomic-server | ||
|
|
||
| # CAUTION: Skip authentication checks, making all data publicly readable. Improves performance. | ||
| #ATOMIC_PUBLIC_MODE=false | ||
|
|
||
| # The full URL of the server. It should resolve to the home page. | ||
| # Set this if you use an external server or tunnel, instead of directly exposing atomic-server. | ||
| # If you leave this out, it will be generated from `domain`, `port` and `http` / `https`. | ||
| #ATOMIC_SERVER_URL=http://localhost:9883 | ||
|
|
||
| # How much logs you want. Also influences what is sent to your trace service, if you've set one (e.g. OpenTelemetry) | ||
| #RUST_LOG=info | ||
|
|
||
| # How you want to trace what's going on with the server. Useful for monitoring performance and errors in production. | ||
| # Combine with `log_level` to get more or less data (`trace` is the most verbose) | ||
| #ATOMIC_TRACING=stdout | ||
|
|
||
| # Introduces random delays in the server, to simulate a slow connection. Useful for testing. | ||
| #ATOMIC_SLOW_MODE=false |
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,31 @@ | ||
| [Unit] | ||
| Description=Atomic Server | ||
| Documentation=https://docs.atomicdata.dev | ||
| After=network.target | ||
| StartLimitIntervalSec=0 | ||
|
|
||
| [Service] | ||
| Type=simple | ||
| User=atomic-server | ||
| Group=atomic-server | ||
|
|
||
| # Request systemd to manage these directories | ||
| ConfigurationDirectory=atomic-server | ||
| StateDirectory=atomic-server | ||
| CacheDirectory=atomic-server | ||
|
|
||
| # Environment variables | ||
| Environment=ATOMIC_CONFIG_DIR=/etc/atomic-server | ||
| Environment=ATOMIC_DATA_DIR=/var/lib/atomic-server/data | ||
| Environment=ATOMIC_PORT=9883 | ||
| # Use system hostname as the domain by default | ||
| Environment=ATOMIC_DOMAIN=%H | ||
|
|
||
| ExecStart=/usr/bin/atomic-server | ||
| WorkingDirectory=/etc/atomic-server/ | ||
| EnvironmentFile=/etc/atomic-server/atomic-server.env | ||
| Restart=always | ||
| RestartSec=1 | ||
|
|
||
| [Install] | ||
| WantedBy=multi-user.target |
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 @@ | ||
| #!/bin/sh | ||
| set -e | ||
|
|
||
| # Only execute during the 'configure' phase (install and upgrade) | ||
| if [ "$1" = "configure" ]; then | ||
| # Create the system user if it doesn't exist | ||
| if ! getent passwd atomic-server > /dev/null; then | ||
| echo "Creating atomic-server system user..." | ||
| adduser --system --group --no-create-home --home /var/lib/atomic-server --shell /usr/sbin/nologin atomic-server | ||
| fi | ||
|
|
||
| # Ensure correct ownership for directories | ||
| # (Including those managed by systemd's StateDirectory etc.) | ||
| chown -R atomic-server:atomic-server /var/lib/atomic-server || true | ||
| chown -R atomic-server:atomic-server /etc/atomic-server || true | ||
|
|
||
| # Replace 'localhost' with the actual system hostname in the .env file | ||
| if [ -f /etc/atomic-server/atomic-server.env ]; then | ||
| HOSTNAME=$(hostname) | ||
| sed -i "s/ATOMIC_DOMAIN=localhost/ATOMIC_DOMAIN=$HOSTNAME/g" /etc/atomic-server/atomic-server.env | ||
| fi | ||
| fi | ||
|
|
||
| exit 0 |
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.
No this is not how copyright works :P I wrote pretty much the entire repo, you can't claim ownership with one PR that adds some metadata.