Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
.gradle
bin
.idea
.parcel-cache
.includepath
.ignorepath
.settings
Expand Down
7 changes: 4 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,14 @@
# and takes longer to build but that is worth it.
FROM bitnami/minideb:buster AS base

RUN echo "deb http://archive.debian.org/debian/ buster main" > /etc/apt/sources.list && \
echo "deb http://archive.debian.org/debian-security/ buster/updates main" >> /etc/apt/sources.list
RUN install_packages apt-transport-https gnupg2 ca-certificates

RUN echo "deb https://archive.debian.org/debian/ buster main" > /etc/apt/sources.list && \
echo "deb https://archive.debian.org/debian-security/ buster/updates main" >> /etc/apt/sources.list

# TODO install_packages calls apt-get update and then nukes the list files after. We should avoid multiple calls to apt-get update.....
# We could probably fix this by running the update and installs ourself with `RUN --mount type=cache` but that is "experimental"

RUN install_packages apt-transport-https gnupg2 ca-certificates
COPY .docker/apt/keys/nodesource.gpg /
RUN apt-key add /nodesource.gpg
COPY .docker/apt/sources.list.d/nodesource.list /etc/apt/sources.list.d/
Expand Down
45 changes: 44 additions & 1 deletion air_gapped/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,48 @@
FROM docker.elastic.co/docs/preview:latest
FROM docker.elastic.co/docs/preview:latest AS build

COPY air_gapped/work/target_repo.git /docs_build/.repos/target_repo.git

FROM chainguard/wolfi-base:latest
#FROM perl:5.42-bookworm
RUN apk update
RUN apk add perl
RUN apk add curl
RUN apk add perl-app-cpanminus

RUN apk add gcc make git patch perl-dev wget
RUN apk add openssl-dev
RUN apk add zlib-dev
RUN apk add perl-net-ssleay

ENV PERL5LIB=/usr/local/lib/perl5
ENV PATH=/usr/local/bin:$PATH

WORKDIR /
RUN cpanm -n XML::LibXML
RUN cpanm -n File::Copy::Recursive
RUN cpanm -n Path::Class
RUN cpanm -n Parallel::ForkManager
RUN cpanm -n YAML
#RUN apt update -y
#RUN apt-get install -y perl
#RUN apt-get install -y nginx
#RUN apt-get install -y nodejs
#RUN apt-get install -y git

#RUN apt-get install -y libxml-simple-perl
#RUN apt-get install -y libfile-copy-recursive-perl
#RUN apt-get install -y libpath-class-perl
#RUN apt-get install -y libcapture-tiny-perl
#RUN apt-get install -y libparallel-forkmanager-perl
#RUN apt-get install -y libyaml-perl

RUN apk add nginx
RUN apk add nodejs

COPY --from=build /docs_build /docs_build
COPY --from=build /node_modules /node_modules

RUN adduser -D nginx
RUN mkdir -p /var/lib/nginx/tmp/

CMD ["/docs_build/build_docs.pl", "--in_standard_docker", "--gapped", "--preview"]
2 changes: 2 additions & 0 deletions preview/git.js
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,8 @@ const toStringHandler = (resolve, reject, onMissing) => (err, stdout) => {
if (err) {
if (err.message.includes("Not a valid object name")) {
onMissing("missing");
} else if (err.message.includes("does not exist in")) {
onMissing("missing");
} else {
reject(err);
}
Expand Down