From 06b808e14aa69ca3cbeafcd862d0edba1a063cb4 Mon Sep 17 00:00:00 2001 From: "pr-test1[bot]" <226697212+pr-test1[bot]@users.noreply.github.com> Date: Sun, 17 Aug 2025 21:54:55 +0000 Subject: [PATCH 1/2] docs: update configuration/AWS.mdx for PR #93 --- configuration/AWS.mdx | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/configuration/AWS.mdx b/configuration/AWS.mdx index cdc4b9f..903cb8c 100644 --- a/configuration/AWS.mdx +++ b/configuration/AWS.mdx @@ -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 @@ -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) - \ No newline at end of file + From f018386a0bbb74f01127a5cdf91cf09416b40eec Mon Sep 17 00:00:00 2001 From: "pr-test1[bot]" <226697212+pr-test1[bot]@users.noreply.github.com> Date: Sun, 17 Aug 2025 21:55:08 +0000 Subject: [PATCH 2/2] docs: update concepts/deployment.mdx for PR #93 --- concepts/deployment.mdx | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/concepts/deployment.mdx b/concepts/deployment.mdx index 66ca7a9..c2a1b61 100644 --- a/concepts/deployment.mdx +++ b/concepts/deployment.mdx @@ -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. +## 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