-
-
Notifications
You must be signed in to change notification settings - Fork 13
Multi-arch patching support #14
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
Closed
Closed
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,38 @@ | ||
# PolyMC Meta | ||
|
||
Scripts to generate jsons and jars that PolyMC will access. | ||
|
||
## Deployment | ||
It is recommended to use Docker to deploy the environment. | ||
|
||
- Clone this repo to a server | ||
- Make sure it's writable by the container later: `chown -R 1337:1337 .` | ||
- Configure `config/config_local.sh` | ||
- The defaults should be fine (apart from committer email and name perhaps) | ||
- Put your SSH key (which has push access to meta-upstream and meta-polymc) at `config/deploy.key` | ||
- Pull meta- repos: `bash clone.sh` | ||
- Customize docker-compose.yaml | ||
- Run `docker-compose up -d --build` | ||
- Observe Cron logs using `docker-compose logs -f` (Runs hourly by default) | ||
- (Optional) Run once to fill caches: `docker-compose run meta update` | ||
|
||
For local development you can also use `docker-compose.local.yaml`. By default it uses `UID=1000` and `GID=1000`. | ||
Make sure it's the same as your host instance. | ||
## Configuration | ||
|
||
1. Clone this repo | ||
2. If you want to override any properties from `config.sh`, create a file `config/config_local.sh` and write them there | ||
3. If deploying, put your SSH key in `config/deploy.key` (should have push access to `meta-upstream` and `meta-polymc`) | ||
4. Pull the meta repos: `bash clone.sh` | ||
|
||
## Building | ||
|
||
## Local | ||
|
||
You can run the scripts locally if you want to quickly test or debug. To do so, you need to install [poetry](https://github.com/python-poetry/poetry): | ||
|
||
```bash | ||
pip install poetry | ||
``` | ||
|
||
Then, simply run: | ||
|
||
``` | ||
poetry install | ||
poetry run ./update.sh | ||
``` | ||
|
||
## Docker | ||
|
||
It is recommended to use Docker if you want to deploy the environment. | ||
|
||
1. Customize `docker-compose.yaml` | ||
2. Run `docker-compose up -d --build` | ||
- Observe Cron logs using `docker-compose logs -f` (Runs hourly by default) | ||
- (Optional) Run once to fill caches: `docker-compose run meta update` | ||
|
||
For local development you can also use `docker-compose.local.yaml`. By default it uses `UID=1000` and `GID=1000`. Make sure it's the same as your host instance. |
Empty file.
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 |
---|---|---|
@@ -1,12 +1,16 @@ | ||
export UPSTREAM_DIR=upstream | ||
export UPSTREAM_REPO=git@github.com:PolyMC/meta-upstream.git | ||
export UPSTREAM_REPO=https://github.com/PolyMC/meta-upstream.git | ||
export PMC_DIR=polymc | ||
export PMC_REPO=git@github.com:PolyMC/meta-polymc.git | ||
export BRANCH_master=master | ||
export BRANCH_develop=develop | ||
export PMC_REPO=https://github.com/PolyMC/meta-polymc.git | ||
export BRANCH=master | ||
export DEPLOY_TO_S3=false | ||
export DEPLOY_TO_FOLDER=true | ||
export DEPLOY_FOLDER_master=/app/public/v1 | ||
export DEPLOY_FOLDER_develop=/app/public/dev | ||
export DEPLOY_TO_FOLDER=false | ||
export DEPLOY_FOLDER=/app/public/v1 | ||
export DEPLOY_FOLDER_USER=http | ||
export DEPLOY_FOLDER_GROUP=http | ||
export DEPLOY_TO_GIT=false | ||
# export GIT_SSH_COMMAND="ssh -i '${BASEDIR}/config/deploy.key'" | ||
# export GIT_AUTHOR_NAME="Herpington Derpson" | ||
# export GIT_AUTHOR_EMAIL="herpderp@derpmail.com" | ||
# export GIT_COMMITTER_NAME="$GIT_AUTHOR_NAME" | ||
# export GIT_COMMITTER_EMAIL="$GIT_AUTHOR_EMAIL" |
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
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.
The reason we only "support" Docker is because of some weirdness when running this on different machines. Some machines produce different output, so the Docker container is there to minimize differences in the environment.