From a61497fde56ba9dac3212fd5c5310f79f1c36a55 Mon Sep 17 00:00:00 2001 From: Daniel King <43149077+dakinggg@users.noreply.github.com> Date: Thu, 6 Jul 2023 17:30:18 -0700 Subject: [PATCH] Remove docker workflow (#412) --- .github/workflows/docker.yaml | 51 ----------------------------------- Dockerfile | 12 --------- 2 files changed, 63 deletions(-) delete mode 100644 .github/workflows/docker.yaml delete mode 100644 Dockerfile diff --git a/.github/workflows/docker.yaml b/.github/workflows/docker.yaml deleted file mode 100644 index acfff619f..000000000 --- a/.github/workflows/docker.yaml +++ /dev/null @@ -1,51 +0,0 @@ -name: Docker -on: - push: - branches: - - main - workflow_dispatch: {} -jobs: - docker-build: - runs-on: ubuntu-latest - if: github.repository_owner == 'mosaicml' - strategy: - matrix: - example: - - bert - - llm - steps: - - name: Checkout - uses: actions/checkout@v3 - - - name: Setup QEMU - uses: docker/setup-qemu-action@v2 - - - name: Setup Docker Buildx - uses: docker/setup-buildx-action@v2 - - - name: Login to DockerHub - uses: docker/login-action@v2 - with: - username: ${{ secrets.DOCKER_HUB_USERNAME }} - password: ${{ secrets.DOCKER_HUB_PASSWORD }} - - - name: Calculate Docker Image Variables - run: | - set -euxo pipefail - - ################### - # Calculate the tag - ################### - GIT_SHA=$(echo ${{ github.sha }} | cut -c1-7) - echo "IMAGE_TAG=${GIT_SHA}" >> ${GITHUB_ENV} - - - name: Build and Push the Docker Image - uses: docker/build-push-action@v3 - with: - context: . - tags: mosaicml/examples:${{ matrix.example }}-latest, - mosaicml/examples:${{ matrix.example }}-${{ env.IMAGE_TAG }} - push: ${{ contains(github.ref, 'refs/heads/main') }} - cache-from: type=registry,ref=mosaicml/examples:${{ matrix.example }}-buildcache - cache-to: type=registry,ref=mosaicml/examples:${{ matrix.example }}-buildcache,mode=max - build-args: EXAMPLE=${{ matrix.example }} diff --git a/Dockerfile b/Dockerfile deleted file mode 100644 index ff3b491a3..000000000 --- a/Dockerfile +++ /dev/null @@ -1,12 +0,0 @@ -# Copyright 2022 MosaicML Composer authors -# SPDX-License-Identifier: Apache-2.0 - -FROM mosaicml/pytorch:1.13.1_cu117-python3.10-ubuntu20.04 - -ARG EXAMPLE -COPY requirements.txt requirements.txt -COPY examples/${EXAMPLE}/requirements.txt ${EXAMPLE}-requirements.txt - -RUN pip install --no-cache-dir -r requirements.txt && \ - pip install --no-cache-dir -r ${EXAMPLE}-requirements.txt && \ - rm requirements.txt ${EXAMPLE}-requirements.txt