Skip to content
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
30 changes: 30 additions & 0 deletions concepts/deployment.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,36 @@ Choose your instance type based on your model's requirements:
Make sure you setup budget monitory and alerts to avoid unexpected charges.
</Warning>

## Docker Server Support

Magemaker now offers improved multi-cloud Docker support. The provided server Dockerfile supports all three major cloud CLIs (AWS CLI, Google Cloud SDK, Azure CLI) preinstalled, making it easier to deploy and manage endpoints across AWS, GCP, and Azure from within a consistent containerized environment.

**Key features:**
- Python 3.11 runtime
- Pre-installed system build dependencies and popular editors (nano, vim)
- Installs and adds to PATH: AWS CLI, Google Cloud SDK, Azure CLI
- Custom `entrypoint.sh` sets up cloud credentials for AWS & GCP on container boot if credentials are mounted
- Ideal for CI/CD, local dev, and production Docker-based workflows

**Sample usage with your source code and credentials:**

```dockerfile
# See Dockerfile-server for details
FROM python:3.11-slim

# ... system dependencies and cloud CLI installation ...

COPY magemaker/docker/entrypoint.sh /usr/local/bin/
RUN chmod +x /usr/local/bin/entrypoint.sh

ENTRYPOINT ["entrypoint.sh"]
CMD ["bash"]
```

Within the container, you can access all three cloud CLIs for managing endpoints and deployments! Be sure to mount your credential files/secrets appropriately:
- AWS: mount `.aws/credentials` to `/root/.aws/credentials`
- Google: mount `application_default_credentials.json` to `/root/.config/gcloud/application_default_credentials.json`
- Azure: configure as needed in the container

## Troubleshooting Deployments

Expand Down
22 changes: 20 additions & 2 deletions configuration/AWS.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,27 @@ Follow this guide to install the latest AWS CLI

https://docs.aws.amazon.com/cli/latest/userguide/getting-started-install.html


Once you have the CLI installed and working, follow these steps

---

### Running Magemaker with Docker

Starting from this release, Magemaker provides a ready-to-use Docker image that includes the AWS CLI and SDK pre-installed, making it simple to run Magemaker in a containerized environment. The Docker image also allows for easy integration with your cloud credentials.

#### Running with AWS Credentials

To use your local AWS credentials inside the Docker container, mount your credentials directory when running the container:

```bash
docker run -it \
-v ~/.aws:/root/.aws \
ghcr.io/slashml/magemaker:latest
```

This will make your AWS credentials available at `/root/.aws/credentials` within the container. The Docker entrypoint automatically detects this and sets the necessary environment variables, so the AWS CLI and Magemaker can access your credentials without additional setup.

---

### AWS Account

Expand Down Expand Up @@ -79,4 +97,4 @@ Enter a description (this is optional, can leave blank). Then click next.

![Enter image alt description](../Images/Gjw_Image_10.png)
</Step>
</Steps>
</Steps>