Skip to content

Commit d030d3d

Browse files
authored
Adding the cisco umbrella certificate to the Dockerfile (#10)
* fixing a port-forwarding issue * more port forwarding fixes * default documentation now refers to opening dev containers directly on the dev machine instead of using Codespaces * Adding a line helping when a folder is not opened in a Dev Container * adding a Philips Windows workaround that doesn't require turning off the Cisco umbrella service * adding the cisco umbrella root certificate to the Dockerfile to avoid issues on Philips Windows machines * moving certificate updates to before running other installations * updated documentation to remove cisco workaround (no longer needed due to Dockerfile changes) * workshop learning: the IPv6 issue does not seem to be mac specific
1 parent 3c582e6 commit d030d3d

File tree

2 files changed

+11
-9
lines changed

2 files changed

+11
-9
lines changed

.devcontainer/Dockerfile

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
FROM mcr.microsoft.com/devcontainers/typescript-node:1-22-bullseye
22

3+
# Configure umbrella proxy for users behind this particular corporate proxy
4+
ENV NODE_EXTRA_CA_CERTS=/etc/ssl/certs/ca-certificates.crt
5+
6+
RUN mkdir -p /usr/local/share/ca-certificates/extra && \
7+
curl -o /usr/local/share/ca-certificates/extra/Cisco_Umbrella_Root_CA.crt https://d36u8deuxga9bo.cloudfront.net/certificates/Cisco_Umbrella_Root_CA.cer && \
8+
update-ca-certificates
9+
310
# Install isolate-vm dependencies, these are needed by the @backstage/plugin-scaffolder-backend.
411
RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
512
--mount=type=cache,target=/var/lib/apt,sharing=locked \
@@ -27,4 +34,4 @@ ENV PYTHON /usr/bin/python3
2734

2835
RUN pip3 install setuptools
2936

30-
ENV NODE_OPTIONS="${NODE_OPTIONS:-} --no-node-snapshot"
37+
ENV NODE_OPTIONS="${NODE_OPTIONS:-} --no-node-snapshot"

docs/getting-started.md

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,10 @@ the Backstage app running, please check the following:
5656
and 7007. The codespace is mapping the ports to your local ports. Ensure
5757
you have no other processes running on those ports and both ports are mapped, you may have to manually add port 7007 in the vscode UI.
5858

59-
!!! Warning "Known macOS issue"
59+
!!! Warning "Known IPv6 issue"
6060

61-
Backstage has a known issue on macOS that causes the backstage website to not load, see [here](https://github.com/backstage/backstage/issues/24888). To work around this, please go to `backstage/app-config.yaml` and update the `app` block by explicitly setting the host:
61+
Backstage has a known issue with IPv6 that causes the backstage website to not load, see [here](https://github.com/backstage/backstage/issues/24888).
62+
To work around this, please go to `backstage/app-config.yaml` and update the `app` block by explicitly setting the host:
6263
```
6364
app:
6465
title: Scaffolded Backstage App
@@ -67,12 +68,6 @@ the Backstage app running, please check the following:
6768
host: 0.0.0.0
6869
```
6970

70-
!!! Warning "Cisco Umbrella causes TLS errors"
71-
72-
If you see TLS errors when running `yarn` commands, this is most likely due to the Cisco Umbrella service trying to inject a custom SSL certificate.
73-
To work around this issue, please first export the following environment variable:
74-
`export NODE_TLS_REJECT_UNAUTHORIZED=0`
75-
7671
## Authentication
7772

7873
For this workshop we will need to authenticate with GitHub in order to create

0 commit comments

Comments
 (0)