Reaction Commerce Forums

Deploy using Netlify

Has anyone had any experience deploying reaction-platform using Netlify? It actually seems like a viable deploy strategy. However, I’m deploying using the command ‘make;’ and it errors out while trying to build reaction-hydra:

9:34:09 PM: Build ready to start

9:34:11 PM: build-image version: 9e0f207a27642d0115b1ca97cd5e8cebbe492f63

9:34:11 PM: build-image tag: v3.3.2

9:34:11 PM: buildbot version: ef8d0929ed0baabafd8bbb7d0b021e1fc24180c0

9:34:11 PM: Fetching cached dependencies

9:34:11 PM: Starting to download cache of 255.0KB

9:34:11 PM: Finished downloading cache in 80.7412ms

9:34:11 PM: Starting to extract cache

9:34:11 PM: Failed to fetch cache, continuing with build

9:34:11 PM: Starting to prepare the repo for build

9:34:11 PM: No cached dependencies found. Cloning fresh repo

9:34:11 PM: git clone https://github.com/xxxxxx/reaction-platform

9:34:12 PM: Preparing Git Reference refs/heads/master

9:34:12 PM: Starting build script

9:34:13 PM: Installing dependencies

9:34:14 PM: Downloading and installing node v10.16.0…

9:34:14 PM: Downloading https://nodejs.org/dist/v10.16.0/node-v10.16.0-linux-x64.tar.xz

9:34:15 PM: #########

9:34:15 PM: 13.3%

9:34:15 PM: ###################################################

9:34:15 PM: ######## 83.0%

9:34:15 PM: ######################################

9:34:15 PM: ################################## 100.0%

9:34:15 PM: Computing checksum with sha256sum

9:34:15 PM: Checksums matched!

9:34:17 PM: Now using node v10.16.0 (npm v6.9.0)

9:34:18 PM: Attempting ruby version 2.6.2, read from environment

9:34:19 PM: Using ruby version 2.6.2

9:34:19 PM: Using PHP version 5.6

9:34:19 PM: Started restoring cached go cache

9:34:19 PM: Finished restoring cached go cache

9:34:19 PM: unset GOOS;

9:34:19 PM: unset GOARCH;

9:34:19 PM: export GOROOT=’/opt/buildhome/.gimme/versions/go1.12.linux.amd64’;

9:34:19 PM: export PATH="/opt/buildhome/.gimme/versions/go1.12.linux.amd64/bin:${PATH}";

9:34:19 PM: go version >&2;

9:34:19 PM: export GIMME_ENV=’/opt/buildhome/.gimme/env/go1.12.linux.amd64.env’;

9:34:19 PM: go version go1.12 linux/amd64

9:34:19 PM: Installing missing commands

9:34:19 PM: Verify run directory

9:34:19 PM: Executing user command: make

9:34:20 PM: if [ ! -d “reaction-hydra” ] ; then git clone “https://github.com:/reactioncommerce/reaction-hydra.git” “reaction-hydra”; cd reaction-hydra && git checkout “v2.0.0”; fi

9:34:20 PM: Cloning into ‘reaction-hydra’…

9:34:20 PM: Note: checking out ‘v2.0.0’.

9:34:20 PM: You are in ‘detached HEAD’ state. You can look around, make experimental

9:34:20 PM: changes and commit them, and you can discard any commits you make in this

9:34:20 PM: state without impacting any branches by performing another checkout.

9:34:20 PM: If you want to create a new branch to retain commits you create, you may

9:34:20 PM: do so (now or later) by using -b with the checkout command again. Example:

9:34:20 PM: git checkout -b

9:34:20 PM: HEAD is now at 9269c3a chore: update CONTRIBUTING.md to be consistent with other projects

9:34:20 PM: /bin/sh: 1: docker: not found

9:34:20 PM: /bin/sh: 1: docker: not found

9:34:20 PM: /bin/sh: 1: docker: not found

9:34:20 PM: Running pre-build hook script for reaction-hydra.

9:34:20 PM: reaction-hydra post-project-start script invoked.

9:34:20 PM: Adding DATABASE_URL to .env

9:34:20 PM: Adding OAUTH2_CONSENT_URL to .env

9:34:20 PM: Adding OAUTH2_ISSUER_URL to .env

9:34:20 PM: Adding OAUTH2_LOGIN_URL to .env

9:34:20 PM: Adding OAUTH2_SHARE_ERROR_DEBUG to .env

9:34:20 PM: Adding OIDC_SUBJECT_TYPE_PAIRWISE_SALT to .env

9:34:20 PM: Adding OIDC_SUBJECT_TYPES_SUPPORTED to .env

9:34:20 PM: Adding SYSTEM_SECRET to .env

9:34:20 PM: /bin/sh: 1: docker-compose: not found

9:34:20 PM: Makefile:183: recipe for target ‘build-reaction-hydra’ failed

9:34:20 PM: make: *** [build-reaction-hydra] Error 127

9:34:20 PM: Skipping functions preparation step: no functions directory set

9:34:20 PM: Caching artifacts

9:34:20 PM: Started saving pip cache

9:34:20 PM: Finished saving pip cache

9:34:20 PM: Started saving emacs cask dependencies

9:34:20 PM: Finished saving emacs cask dependencies

9:34:20 PM: Started saving maven dependencies

9:34:20 PM: Finished saving maven dependencies

9:34:20 PM: Started saving boot dependencies

9:34:20 PM: Finished saving boot dependencies

9:34:20 PM: Started saving go dependencies

9:34:20 PM: Finished saving go dependencies

9:34:23 PM: Error running command: Build script returned non-zero exit code: 2

9:34:23 PM: Failing build: Failed to build site

9:34:23 PM: failed during stage ‘building site’: Build script returned non-zero exit code: 2

9:34:23 PM: Finished processing build request in 12.338980022s