Skip to content

Commit

Permalink
Fix GCP Image bake and local service registration (#3609)
Browse files Browse the repository at this point in the history
  • Loading branch information
dmanjunath authored Aug 2, 2022
1 parent 6e853cc commit c59af06
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -204,13 +204,14 @@ commands:
}
trap cleanup EXIT
set -x
# authenticate into gcloud
echo $GCLOUD_SERVICE_KEY | gcloud auth activate-service-account $GCLOUD_SERVICE_ACCOUNT_EMAIL --key-file=-
gcloud --quiet config set project ${GOOGLE_PROJECT_ID}
gcloud --quiet config set compute/zone ${GOOGLE_COMPUTE_ZONE}
GCLOUD_VM_NAME=<< parameters.instance-name >>-$(date +%s)
echo "GCLOUD_VM_NAME" $GCLOUD_VM_NAME
export PROTOCOL_DIR=/home/circleci/project
git clone --branch "$CIRCLE_BRANCH" https://github.com/AudiusProject/audius-protocol.git "$PROTOCOL_DIR"
Expand All @@ -225,7 +226,7 @@ commands:
# run A setup on remote dev box to clone protocol and install the prerequisites for A
# A setup ... || true is necessary because exit code returns 141 by default
[ <<parameters.fast>> ] && A_SETUP_ARGS="--fast" || A_SETUP_ARGS=""
<<parameters.fast>> && A_SETUP_ARGS="--fast" || A_SETUP_ARGS=""
yes | $PROTOCOL_DIR/service-commands/scripts/A setup remote-dev $GCLOUD_VM_NAME $A_SETUP_ARGS --spot-instance || true
GCLOUD_IP_ADDRESS=$(gcloud compute instances describe $GCLOUD_VM_NAME --format='get(networkInterfaces[0].accessConfigs[0].natIP)')
Expand Down Expand Up @@ -287,6 +288,8 @@ jobs:
post-gcp-command: |
BAKE_IMAGE_NAME=ci-image-bake-latest
echo "GCLOUD_VM_NAME" $GCLOUD_VM_NAME
# Stop GCP box, can't take an image from a running VM
gcloud compute instances stop $GCLOUD_VM_NAME
Expand Down
2 changes: 1 addition & 1 deletion libs/examples/initAudiusLibs.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const Web3 = require('../src/web3')

const { libs: AudiusLibs } = require('../dist/index')
const { libs: AudiusLibs } = require('../dist/index.cjs.js')
const dataContractsConfig = require('../data-contracts/config.json')
const ethContractsConfig = require('../eth-contracts/config.json')

Expand Down

0 comments on commit c59af06

Please sign in to comment.