Skip to content

Commit cf2cb44

Browse files
authored
add community Dockerfile (#2499)
Issue: AAH-1818
1 parent 37fb15e commit cf2cb44

File tree

4 files changed

+29
-0
lines changed

4 files changed

+29
-0
lines changed

CHANGES/1818.misc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Add Dockerfile for community galaxy_ng instance

community/Dockerfile

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
FROM node:16-alpine
2+
WORKDIR /workspace/
3+
RUN mkdir -p /workspace/ && \
4+
apk add --no-cache git
5+
COPY . /workspace/
6+
RUN npm ci && \
7+
npm run build-community
8+
9+
FROM registry.access.redhat.com/ubi8/nginx-120:latest
10+
COPY --from=0 /workspace/dist ${NGINX_APP_ROOT}/src
11+
CMD ["nginx", "-g", "daemon off;"]
+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
const webpackBase = require('./webpack.base.config');
2+
3+
// Compile configuration for stnadalone mode
4+
module.exports = webpackBase({
5+
API_HOST: '',
6+
API_BASE_PATH: '/api/',
7+
PULP_API_BASE_PATH: '/api/pulp/api/v3/',
8+
UI_BASE_PATH: '/ui/',
9+
DEPLOYMENT_MODE: 'standalone',
10+
NAMESPACE_TERM: 'namespaces',
11+
UI_USE_HTTPS: false,
12+
UI_DEBUG: false,
13+
TARGET_ENVIRONMENT: 'prod',
14+
UI_EXTERNAL_LOGIN_URI: '/login/github/',
15+
WEBPACK_PUBLIC_PATH: '/',
16+
});

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@
7474
"scripts": {
7575
"build": "webpack --config config/insights.prod.webpack.config.js",
7676
"build-standalone": "NODE_ENV=production webpack --config config/standalone.prod.webpack.config.js",
77+
"build-community": "NODE_ENV=production webpack --config config/community.prod.webpack.config.js",
7778
"build:prod": "NODE_ENV=production webpack --config config/insights.prod.webpack.config.js",
7879
"deploy": "npm-run-all build:prod test-prettier lint:ts",
7980
"eslint": "eslint --ext .js,.jsx,.ts,.tsx src/ config/ test/",

0 commit comments

Comments
 (0)