-
Notifications
You must be signed in to change notification settings - Fork 288
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #512 from reactioncommerce/release-v2.0.0-rc.10
Release v2.0.0 rc.10
- Loading branch information
Showing
104 changed files
with
5,833 additions
and
4,627 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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
URL=$1 | ||
LOCATION=$2 | ||
|
||
# Run One Off Test | ||
./../node_modules/calibre/bin/linux/calibre test create $URL --location=$LOCATION | ||
|
||
# Run Snapshot | ||
# California Snapshot Only (Be more generic as we add more site locations to track) | ||
if [ $LOCATION = "California" ] | ||
then | ||
./../node_modules/calibre/bin/linux/calibre site create-snapshot --site reaction-core-"$(echo $LOCATION | tr '[A-Z]' '[a-z]')" | ||
else | ||
echo "No Snapshot Configured for Location" | ||
fi |
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 |
---|---|---|
@@ -1,9 +1,4 @@ | ||
# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. | ||
version: v1.12.0 | ||
# ignores vulnerabilities until expiry date; change duration by modifying expiry date | ||
ignore: | ||
'npm:chownr:20180731': | ||
- '*': | ||
reason: This vulnerability only affects packages used in development, such as webpack, more details at https://github.com/isaacs/chownr/issues/14#issuecomment-421662375 | ||
expires: 2019-01-31T00:00:00.000Z | ||
version: v1.13.3 | ||
patch: {} | ||
ignore: {} |
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 |
---|---|---|
|
@@ -54,16 +54,21 @@ LABEL maintainer="Reaction Commerce <[email protected]>" \ | |
com.reactioncommerce.docker.git.sha1=$GIT_SHA1 \ | ||
com.reactioncommerce.docker.license=$LICENSE | ||
|
||
# Get versions to pin with this command: | ||
# apk list bash curl less vim | cut -d " " -f 1 | sed 's/-/=/' | xargs | ||
RUN apk --no-cache add bash curl less vim | ||
SHELL ["/bin/bash", "-o", "pipefail", "-o", "errexit", "-u", "-c"] | ||
|
||
# Because Docker Compose uses a volume for node_modules and volumes are owned | ||
# by root by default, we have to initially create node_modules here with correct owner. | ||
# Without this Yarn cannot write packages into node_modules later, when running in a container. | ||
RUN mkdir -p "/usr/local/src/node_modules" && chown node "/usr/local/src" && chown node "/usr/local/src/node_modules" | ||
RUN mkdir -p "/usr/local/src/reaction-app/node_modules" && chown node "/usr/local/src/reaction-app" && chown node "/usr/local/src/reaction-app/node_modules" | ||
RUN mkdir -p "/usr/local/src/node_modules"; chown node "/usr/local/src"; chown node "/usr/local/src/node_modules" | ||
RUN mkdir -p "/usr/local/src/reaction-app/node_modules"; chown node "/usr/local/src/reaction-app"; chown node "/usr/local/src/reaction-app/node_modules" | ||
|
||
# Same for Yarn cache folder. Without this Yarn will warn that it's going to use | ||
# a fallback cache dir instead because the one in config is not writable. | ||
RUN mkdir -p "/home/node/.cache/yarn" && chown node "/home/node/.cache/yarn" | ||
RUN mkdir -p "/home/node/.cache/yarn-offline-mirror" && chown node "/home/node/.cache/yarn-offline-mirror" | ||
RUN mkdir -p "/home/node/.cache/yarn"; chown node "/home/node/.cache/yarn" | ||
RUN mkdir -p "/home/node/.cache/yarn-offline-mirror"; chown node "/home/node/.cache/yarn-offline-mirror" | ||
|
||
WORKDIR $APP_SOURCE_DIR/.. | ||
COPY --chown=node package.json yarn.lock $APP_SOURCE_DIR/../ | ||
|
@@ -74,8 +79,7 @@ COPY --chown=node package.json yarn.lock $APP_SOURCE_DIR/../ | |
# The project directory will be mounted during development. Therefore, we'll | ||
# install dependencies into an external directory (one level up.) This works | ||
# because Node traverses up the fs to find node_modules. | ||
RUN set -ex; \ | ||
if [ "$BUILD_ENV" = "production" ]; then \ | ||
RUN if [ "$BUILD_ENV" = "production" ]; then \ | ||
yarn install \ | ||
--frozen-lockfile \ | ||
--ignore-scripts \ | ||
|
@@ -107,8 +111,7 @@ COPY --chown=node . $APP_SOURCE_DIR | |
# our tools use "/home/node" as the HOME dir. | ||
USER node | ||
|
||
RUN set -ex; \ | ||
if [ "$BUILD_ENV" = "production" ]; then \ | ||
RUN if [ "$BUILD_ENV" = "production" ]; then \ | ||
yarn build; \ | ||
fi; | ||
|
||
|
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
Oops, something went wrong.