-
Notifications
You must be signed in to change notification settings - Fork 28
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 #649 from RedHatInsights/devel
Release 2021/11/02
- Loading branch information
Showing
88 changed files
with
8,593 additions
and
7,003 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,8 +1,13 @@ | ||
FROM node:15 | ||
FROM registry.access.redhat.com/ubi8/nodejs-14 | ||
|
||
WORKDIR /app | ||
COPY package.json /app | ||
COPY package-lock.json /app | ||
USER 0 | ||
RUN curl -sL https://rpm.nodesource.com/setup_16.x | bash - | ||
RUN yum remove -y nodejs npm | ||
RUN yum install -y nodejs | ||
RUN yum install -y bzip2 fontconfig nss.x86_64 pango.x86_64 libXcomposite.x86_64 libXcursor.x86_64 libXdamage.x86_64 libXext.x86_64 libXi.x86_64 libXtst.x86_64 cups-libs.x86_64 libXScrnSaver.x86_64 libXrandr.x86_64 GConf2.x86_64 alsa-lib.x86_64 atk.x86_64 gtk3.x86_64 libdrm libgbm libxshmfence | ||
|
||
WORKDIR /src | ||
COPY . /src | ||
RUN npm ci | ||
COPY . /app | ||
|
||
CMD npm run start:container |
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,23 @@ | ||
#!/bin/bash | ||
|
||
# -------------------------------------------- | ||
# Export vars for helper scripts to use | ||
# -------------------------------------------- | ||
# name of app-sre "application" folder this component lives in; needs to match for quay | ||
export COMPONENT="tower-analytics" | ||
export APP_NAME=`node -e 'console.log(require("./package.json").insights.appname)'` # `automation-analytics` | ||
export IMAGE="quay.io/cloudservices/automation-analytics-frontend" | ||
export APP_ROOT=$(pwd) | ||
cat /etc/redhat-release | ||
COMMON_BUILDER=https://raw.githubusercontent.com/RedHatInsights/insights-frontend-builder-common/master | ||
|
||
set -exv | ||
|
||
npm ci | ||
npm run verify | ||
|
||
# Generate nginx config based on app name in package.json | ||
curl -sSL $COMMON_BUILDER/src/nginx_conf_gen.sh | bash -s | ||
|
||
curl -sSL $COMMON_BUILDER/src/quay_push.sh | bash -s | ||
|
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
Oops, something went wrong.