-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merges any changes from greg2010-master branch
- Loading branch information
Showing
11 changed files
with
136 additions
and
50 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 |
---|---|---|
@@ -1,10 +1,26 @@ | ||
PROJECT_ROOT="" | ||
CONTAINER_NAME="pf" | ||
DOMAIN="" | ||
# Emails from Let's Encrypt about your certificate will go here | ||
LE_EMAIL="" | ||
APP_PASSWORD="" | ||
MYSQL_HOST="mariadb" | ||
MYSQL_PORT="3306" | ||
MYSQL_USER="root" | ||
MYSQL_PASSWORD="" | ||
MYSQL_PF_DB_NAME="pathfinder" | ||
MYSQL_UNIVERSE_DB_NAME="eve_universe" | ||
MYSQL_CCP_DB_NAME="eve_lifeblood_min" | ||
REDIS_HOST="redis" | ||
REDIS_PORT="6379" | ||
CCP_SSO_CLIENT_ID="" | ||
CCP_SSO_SECRET_KEY="" | ||
CCP_ESI_SCOPES="esi-location.read_online.v1,esi-location.read_location.v1,esi-location.read_ship_type.v1,esi-ui.write_waypoint.v1,esi-ui.open_window.v1,esi-universe.read_structures.v1,esi-corporations.read_corporation_membership.v1,esi-clones.read_clones.v1,esi-characters.read_corporation_roles.v1,esi-search.search_structures.v1" | ||
CCP_ESI_SCOPES="esi-location.read_online.v1,esi-location.read_location.v1,esi-location.read_ship_type.v1,esi-ui.write_waypoint.v1,esi-ui.open_window.v1,esi-universe.read_structures.v1,esi-corporations.read_corporation_membership.v1,esi-clones.read_clones.v1,esi-characters.read_corporation_roles.v1" | ||
PATHFINDER_SOCKET_HOST="pathfinder-socket" | ||
PATHFINDER_SOCKET_PORT="5555" | ||
SMTP_HOST="" | ||
SMTP_PORT="" | ||
SMTP_SCHEME="" | ||
SMTP_USER="" | ||
SMTP_PASS="" | ||
SMTP_FROM="" | ||
SMTP_ERROR="" |
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,48 @@ | ||
name: Create and publish a Docker image | ||
|
||
on: | ||
release: | ||
types: [published] | ||
|
||
env: | ||
REGISTRY: ghcr.io | ||
IMAGE_NAME_OWNER: ${{ github.repository_owner }} | ||
|
||
jobs: | ||
build-and-publish: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: | ||
- dockerfile: ./pathfinder.Dockerfile | ||
image_name: pathfinder | ||
- dockerfile: ./pf-websocket.Dockerfile | ||
image_name: pf-websocket | ||
permissions: | ||
contents: read | ||
packages: write | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
with: | ||
submodules: 'recursive' | ||
- name: Log in to the Container registry | ||
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9 | ||
with: | ||
registry: ${{ env.REGISTRY }} | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Extract metadata (tags, labels) for Docker | ||
id: meta | ||
uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38 | ||
with: | ||
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME_OWNER }}/${{ matrix.image_name }} | ||
- name: Build and push Docker image | ||
uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc | ||
with: | ||
context: . | ||
file: ${{ matrix.dockerfile }} | ||
push: true | ||
tags: ${{ steps.meta.outputs.tags }} | ||
labels: ${{ steps.meta.outputs.labels }} |
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
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,7 @@ | ||
FROM composer:2.3.10 | ||
COPY websocket /app | ||
WORKDIR /app | ||
|
||
RUN composer install | ||
|
||
ENTRYPOINT ["/usr/local/bin/php", "cmd.php"] |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,23 +15,23 @@ URL = {{@SCHEME}}://$DOMAIN | |
; level of debug/error stack trace | ||
DEBUG = 0 | ||
; Pathfinder database | ||
DB_PF_DNS = mysql:host=${CONTAINER_NAME}db;port=3306;dbname= | ||
DB_PF_NAME = pf | ||
DB_PF_USER = root | ||
DB_PF_DNS = mysql:host=${MYSQL_HOST};port=${MYSQL_PORT};dbname= | ||
DB_PF_NAME = $MYSQL_PF_DB_NAME | ||
DB_PF_USER = $MYSQL_USER | ||
DB_PF_PASS = $MYSQL_PASSWORD | ||
|
||
; Universe data (New Eden) cache DB for ESI API respons | ||
DB_UNIVERSE_DNS = mysql:host=${CONTAINER_NAME}db;port=3306;dbname= | ||
DB_UNIVERSE_NAME = eve_universe | ||
DB_UNIVERSE_USER = root | ||
; Universe data (New Eden) cache DB for ESI API response | ||
DB_UNIVERSE_DNS = mysql:host=${MYSQL_HOST};port=${MYSQL_PORT};dbname= | ||
DB_UNIVERSE_NAME = $MYSQL_UNIVERSE_DB_NAME | ||
DB_UNIVERSE_USER = $MYSQL_USER | ||
DB_UNIVERSE_PASS = $MYSQL_PASSWORD | ||
|
||
|
||
; EVE-Online CCP Database export | ||
DB_CCP_DNS = mysql:host=${CONTAINER_NAME}db;port=3306;dbname= | ||
DB_CCP_NAME = eve_lifeblood_min | ||
DB_CCP_USER = root | ||
DB_CCP_PASS = $MYSQL_PASSWORD | ||
DB_CCP_DNS = mysql:host=${MYSQL_HOST};port=${MYSQL_PORT};dbname= | ||
DB_CCP_NAME = $MYSQL_CCP_DB_NAME | ||
DB_CCP_USER = $MYSQL_USER | ||
DB_CCP_PASS = $MYSQL_PASSWORD | ||
|
||
; CCP SSO | ||
CCP_SSO_URL = https://login.eveonline.com | ||
|
@@ -43,19 +43,19 @@ CCP_SSO_DOWNTIME = 11:00 | |
; CCP ESI API | ||
CCP_ESI_URL = https://esi.evetech.net | ||
CCP_ESI_DATASOURCE = tranquility | ||
CCP_ESI_SCOPES = $CCP_ESI_SCOPES | ||
CCP_ESI_SCOPES = $CCP_ESI_SCOPES | ||
CCP_ESI_SCOPES_ADMIN = | ||
|
||
; SMTP settings (optional) | ||
SMTP_HOST = localhost | ||
SMTP_PORT = 25 | ||
SMTP_SCHEME = TLS | ||
SMTP_USER = | ||
SMTP_PASS = | ||
SMTP_HOST = $SMTP_HOST | ||
SMTP_PORT = $SMTP_PORT | ||
SMTP_SCHEME = $SMTP_SCHEME | ||
SMTP_USER = $SMTP_USER | ||
SMTP_PASS = $SMTP_PASS | ||
|
||
SMTP_FROM = [email protected] | ||
SMTP_ERROR = [email protected] | ||
SMTP_FROM = $SMTP_FROM | ||
SMTP_ERROR = $SMTP_EMAIL | ||
|
||
; TCP Socket configuration (optional) (advanced) | ||
SOCKET_HOST = ${CONTAINER_NAME}-socket | ||
SOCKET_PORT = 5555 | ||
SOCKET_HOST = $PATHFINDER_SOCKET_HOST | ||
SOCKET_PORT = $PATHFINDER_SOCKET_PORT |
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