Skip to content

Commit 0d0c8af

Browse files
committed
Add tabs
1 parent 1b4d2a0 commit 0d0c8af

File tree

1 file changed

+47
-37
lines changed
  • src/content/docs/cloudflare-one/connections/connect-devices/warp/user-side-certificates

1 file changed

+47
-37
lines changed

src/content/docs/cloudflare-one/connections/connect-devices/warp/user-side-certificates/manual-deployment.mdx

Lines changed: 47 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -435,57 +435,67 @@ To install a certificate for use in a Docker container:
435435
└── certificate.pem
436436
```
437437

438-
4. Add the certificate to the Docker build process. For example:
438+
4. Add the certificate to your Docker container:
439439

440-
```docker title="Red Hat-based images"
441-
FROM registry.access.redhat.com/ubi9/ubi:latest
442-
# Or use: FROM centos:7 or FROM fedora:38
440+
<Tabs> <TabItem label="Dockerfile">
443441

444-
# Install necessary certificates package
445-
RUN dnf install -y ca-certificates
442+
1. Add the certificate to the Docker build process. For example:
446443

447-
# Copy and add Cloudflare root certificate
448-
COPY certs/certificate.pem /etc/pki/ca-trust/source/anchors/certificate.crt
449-
RUN update-ca-trust extract
450-
```
444+
```docker title="Red Hat-based images"
445+
FROM registry.access.redhat.com/ubi9/ubi:latest
446+
# Or use: FROM centos:7 or FROM fedora:38
451447
452-
```docker title="Debian-based images"
453-
FROM debian:12
448+
# Install necessary certificates package
449+
RUN dnf install -y ca-certificates
454450
455-
# Install necessary certificates package
456-
RUN apt-get update && apt-get install -y ca-certificates
451+
# Copy and add Cloudflare root certificate
452+
COPY certs/certificate.pem /etc/pki/ca-trust/source/anchors/certificate.crt
453+
RUN update-ca-trust extract
454+
```
457455

458-
# Copy and add Cloudflare root certificate
459-
COPY certs/certificate.pem /usr/local/share/ca-certificates/certificate.crt
460-
RUN update-ca-certificates
461-
```
456+
```docker title="Debian-based images"
457+
FROM debian:12
462458
463-
```docker title="Alpine-based images"
464-
FROM alpine:3.18
459+
# Install necessary certificates package
460+
RUN apt-get update && apt-get install -y ca-certificates
465461
466-
# Install necessary certificates package
467-
RUN apk add --no-cache ca-certificates
462+
# Copy and add Cloudflare root certificate
463+
COPY certs/certificate.pem /usr/local/share/ca-certificates/certificate.crt
464+
RUN update-ca-certificates
465+
```
468466

469-
# Copy and add Cloudflare root certificate
470-
COPY certs/certificate.pem /usr/local/share/ca-certificates/certificate.crt
471-
RUN update-ca-certificates
472-
```
467+
```docker title="Alpine-based images"
468+
FROM alpine:3.18
473469
474-
5. Build the Docker image:
470+
# Install necessary certificates package
471+
RUN apk add --no-cache ca-certificates
475472
476-
```sh
477-
docker build -t your-image-name .
478-
```
473+
# Copy and add Cloudflare root certificate
474+
COPY certs/certificate.pem /usr/local/share/ca-certificates/certificate.crt
475+
RUN update-ca-certificates
476+
```
479477

480-
6. Verify the certificate was installed:
478+
2. Build the Docker image:
481479

482-
```sh title="Red Hat-based images"
483-
docker run --rm your-image-name sh -c "cat /etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem | grep Cloudflare"
484-
```
480+
```sh
481+
docker build -t your-image-name .
482+
```
485483

486-
```sh title="Debian and Alpine-based images"
487-
docker run --rm your-image-name sh -c "cat /etc/ssl/certs/certificate.pem"
488-
```
484+
3. Verify the certificate was installed:
485+
486+
```sh title="Red Hat-based images"
487+
docker run --rm your-image-name sh -c "cat /etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem | grep Cloudflare"
488+
```
489+
490+
```sh title="Debian and Alpine-based images"
491+
docker run --rm your-image-name sh -c "cat /etc/ssl/certs/certificate.pem"
492+
```
493+
494+
</TabItem>
495+
496+
<TabItem label="Docker Compose">
497+
498+
</TabItem> </Tabs>
489499

490500
### Google Cloud
491501

0 commit comments

Comments
 (0)