Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Air gapped docker compose #2433

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
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
67 changes: 67 additions & 0 deletions air_gapped/README.md
Original file line number Diff line number Diff line change
@@ -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...
10 changes: 10 additions & 0 deletions air_gapped/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -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