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 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