Skip to content

Commit

Permalink
fixing broken build from referenced 5-pulling-images.md pointer
Browse files Browse the repository at this point in the history
  • Loading branch information
bgulla committed Feb 15, 2023
1 parent 30180a9 commit 2dcb6af
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 16 deletions.
28 changes: 14 additions & 14 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,18 +24,18 @@ EXPOSE 3000
# Start the app in debug mode so we can attach the debugger
CMD ["npm", "start"]

# ## Production ##################################################################
# # Also define a production target which doesn't use devDeps
# FROM base as production
# WORKDIR /home/node/app
# COPY --chown=node:node --from=development /home/node/app/node_modules /home/node/app/node_modules
# # Build the Docusaurus app
# RUN npm run build
## Production ##################################################################
# Also define a production target which doesn't use devDeps
FROM base as production
WORKDIR /home/node/app
COPY --chown=node:node --from=development /home/node/app/node_modules /home/node/app/node_modules
# Build the Docusaurus app
RUN npm run build

# ## Deploy ######################################################################
# # Use a stable nginx image
# FROM nginx:stable-alpine as deploy
# WORKDIR /home/node/app
# # Copy what we've installed/built from production
# #COPY --chown=node:node --from=production /home/node/app/build /usr/share/nginx/html/
# COPY --from=production /home/node/app/build /usr/share/nginx/html/
## Deploy ######################################################################
# Use a stable nginx image
FROM nginx:stable-alpine as deploy
WORKDIR /home/node/app
# Copy what we've installed/built from production
#COPY --chown=node:node --from=production /home/node/app/build /usr/share/nginx/html/
COPY --from=production /home/node/app/build /usr/share/nginx/html/
8 changes: 7 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,10 @@ PORT:= 3000
build:
docker rm --force carbide-docs; docker build -t carbide-docs -f Dockerfile.local .
run:
docker run -p ${PORT}:3000 --name=carbide-docs -ti carbide-docs; docker logs -f carbide-docs
docker run -p ${PORT}:3000 --name=carbide-docs -ti carbide-docs; docker logs -f carbide-docs

local:
npm start

local-build:
npm run build
2 changes: 1 addition & 1 deletion docs/registry-docs/rancher-config.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ As Rancher has a dependency on Cert Manager, you'll need to update your Helm ins

If you're following Rancher's [Connected](https://rancher.com/docs/rancher/v2.6/en/installation/install-rancher-on-k8s/#4-install-cert-manager) installation instructions, you'll need to follow the next steps to use the SSF images for cert-manager.

If using the [Airgapped](https://rancher.com/docs/rancher/v2.6/en/installation/other-installation-methods/air-gap/install-rancher/#1-add-the-cert-manager-repo) instructions, make sure you've pulled the [SSF cert-manager images](5-pulling-images.md) to your local/airgapped registry.
If using the [Airgapped](https://rancher.com/docs/rancher/v2.6/en/installation/other-installation-methods/air-gap/install-rancher/#1-add-the-cert-manager-repo) instructions, make sure you've pulled the [SSF cert-manager images](pulling-images.md) to your local/airgapped registry.

### Cert Manager Helm Install

Expand Down
1 change: 1 addition & 0 deletions sidebars.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ const sidebars = {
type: 'category',
label: 'Connected Environments',
items: [
// 'registry-docs/pulling-images',
'registry-docs/validating-images',
'registry-docs/copying-images',
],
Expand Down

0 comments on commit 2dcb6af

Please sign in to comment.