Skip to content
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

Added config for standalone-dev extender #329

Open
wants to merge 7 commits into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions README_AWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,17 @@ Login using [AWS Session Manager](README_SETUP_RELEASE.md)
# install openjdk
brew install openjdk@17

# on arm64 macOS
# https://earthly.dev/blog/homebrew-on-m1/
echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> /Users/ec2-user/.zprofile
eval "$(/opt/homebrew/bin/brew shellenv)"

# on arm64 macOS
# if not set it seems like Ruby is having certificate verification issues such as:
# 'certificate verify failed (unable to get local issuer certificate)''
echo 'export SSL_CERT_FILE=/etc/ssl/cert.pem' >> /Users/ec2-user/.zprofile
export SSL_CERT_FILE=/etc/ssl/cert.pem

# symlink openjdk
# depending on install location use one of these:
sudo ln -sfn /usr/local/opt/openjdk@17/libexec/openjdk.jdk /Library/Java/JavaVirtualMachines/openjdk-17.jdk
Expand Down
27 changes: 27 additions & 0 deletions server/scripts/publish-darwin-dev.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
#!/bin/bash -e

SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
SOURCE_DIR=${SCRIPT_DIR}/../..

VERSION=$(date "+%Y%m%d_%H%M")

PRODUCTION_VARIANT=dev
TARGET_HOST_URL=build-darwin-${PRODUCTION_VARIANT}.defold.com
TARGET_HOST=i-0d371683f5c876b73
TARGET_USER=ec2-user
TARGET_DIR=/usr/local/extender-${PRODUCTION_VARIANT}
TARGET_KEY=~/.ssh/defold2_ec2.pem

source ${SCRIPT_DIR}/standalone/publish-standalone.sh

check_uncommitted_changes ${SOURCE_DIR}
build_artifact ${SOURCE_DIR}
deploy_artifact ${SOURCE_DIR} ${TARGET_DIR} ${VERSION} ${TARGET_HOST} ${TARGET_USER} ${TARGET_KEY} ${PRODUCTION_VARIANT}

SERVER=https://${TARGET_HOST_URL}

echo "**********************************"
echo "Checking the server version at ${SERVER}:"
wget -q -O - $SERVER
echo ""
echo "**********************************"
18 changes: 8 additions & 10 deletions server/src/main/resources/application-dev.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@

extender:
sdk:
cache-clear-on-exit: false
sdk.cache-size: 5
cache:
type: S3
s3.bucket: defold-extender-cache-dev
remote-builder:
enabled: true
type: LOCAL
local.basedir: /var/extender/cache/data
#type: S3
#s3.bucket: defold-extender-cache-dev
url: https://build-darwin-dev.defold.com

remote-builder:
enabled: false
# This points to the host machine from inside docker
url: http://host.docker.internal:9010
endpoints:
health:
sensitive: true
15 changes: 15 additions & 0 deletions server/src/main/resources/application-local.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@

extender:
sdk:
cache-clear-on-exit: false
cache:
enabled: true
type: LOCAL
local.basedir: /var/extender/cache/data
#type: S3
#s3.bucket: defold-extender-cache-dev

remote-builder:
enabled: false
# This points to the host machine from inside docker
url: http://host.docker.internal:9010
Comment on lines +1 to +15
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Previously application-dev.yml

4 changes: 3 additions & 1 deletion server/src/main/resources/application-standalone-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ server:
port: 9010

extender:
sdk.location: /usr/local/extender/sdk
sdk:
location: /usr/local/extender-dev/sdk
cache-size: 5
cache:
enabled: false
remote-builder:
Expand Down