From b4afe137f4c840d63cf50455a245c6d50b3d3d93 Mon Sep 17 00:00:00 2001 From: face0b1101 <6190957+face0b1101@users.noreply.github.com> Date: Sun, 6 Mar 2022 20:21:06 +0000 Subject: [PATCH 1/2] add simple docker-compose.yml for simpler air-gapped docs starting --- air_gapped/docker-compose.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 air_gapped/docker-compose.yml diff --git a/air_gapped/docker-compose.yml b/air_gapped/docker-compose.yml new file mode 100644 index 0000000000000..f07eb2a18e4f7 --- /dev/null +++ b/air_gapped/docker-compose.yml @@ -0,0 +1,10 @@ +--- +version: "3.7" + +services: + # Run build.sh first to build latest image from source + elastic-docs: + container_name: elastic-docs + image: docker.elastic.co/docs-private/air_gapped:latest + ports: + - 8000:8000/tcp From 5dc7c188e4a7eebfb36e5e687af9a601530a20ef Mon Sep 17 00:00:00 2001 From: face0b1101 <6190957+face0b1101@users.noreply.github.com> Date: Fri, 6 May 2022 11:00:32 +0100 Subject: [PATCH 2/2] add air_gapped README.md --- air_gapped/README.md | 67 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) create mode 100644 air_gapped/README.md diff --git a/air_gapped/README.md b/air_gapped/README.md new file mode 100644 index 0000000000000..d18bca57e1b24 --- /dev/null +++ b/air_gapped/README.md @@ -0,0 +1,67 @@ +# Air-Gapped Elastic Documentation # + +## Build the container ## + +1. Go [here](https://github.com/elastic/docs). Read the docs if desired. +2. Clone the repo: + + ```bash + git clone https://github.com/elastic/docs.git + ``` + +3. navigate to air_gapped: + + ```bash + cd docs/air_gapped + ``` + +4. Build the latest container: + + ```bash + # ensure the build script is executable + chmod +x build.sh + + # Build the container with latest docs + source build.sh + ``` + + * Test, if desired: + + ```bash + # ensure the test script is executable + chmod +x test.sh + + # Quick and dirty build+run combo + source test.sh + ``` + +## How to run ## + +1. Standard `docker run`: + + ```bash + # Vanilla Docker - run prebuilt image + docker run --rm --name elastic-docs --publish 8000:8000/tcp -d docker.elastic.co/docs-private/air_gapped + ``` + +2. Docker-compose: + + ```bash + docker-compose up -d + ``` + +## How to Stop ## + +1. If `docker run` used: + + ```bash + docker stop elastic-docs + ``` + +2. If `docker-compose`: + + ```bash + docker-compose down + ``` + +3. Visit [localhost:8000](localhost:8000), and enjoy... \ No newline at end of file