Skip to content
This repository has been archived by the owner on Jul 18, 2024. It is now read-only.

Commit

Permalink
Add one action to release v1.2 (#417)
Browse files Browse the repository at this point in the history
Signed-off-by: Xue, Chendi <chendi.xue@intel.com>
  • Loading branch information
xuechendi authored Oct 25, 2023
1 parent a6954c6 commit 04ae58c
Show file tree
Hide file tree
Showing 2 changed files with 78 additions and 0 deletions.
55 changes: 55 additions & 0 deletions .github/workflows/release_docker_e2eaiokv12.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: Publish e2eAIOK Docker v1.2 for RecDP and deltatuner

on:
workflow_run:
workflows: ["Publish e2eAIOK Nightly Release to dockerhub"]
types:
- completed
workflow_dispatch:
push:
branches:
- main
paths:
- 'Dockerfile-ubuntu/Dockerfile-v1.2'
- '.github/workflows/release_docker_e2eaiokv12.yml'

jobs:
e2eaiok-release-docker:
runs-on: self-hosted
if: ${{ github.repository_owner == 'intel' }}
steps:
-
name: Checkout
uses: actions/checkout@v2
-
name: Set up Env
run: |
echo RELEASE_VERSION=$(cat e2eAIOK/version | head -1) >> $GITHUB_ENV
echo http_proxy=${http_proxy} >> $GITHUB_ENV
echo https_proxy=${https_proxy} >> $GITHUB_ENV
echo no_proxy=${no_proxy} >> $GITHUB_ENV
-
name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
with:
driver-opts: |
env.http_proxy=${{ env.http_proxy }}
env.https_proxy=${{ env.https_proxy }}
"env.no_proxy='${{ env.no_proxy}}'"
-
name: Build and Push Docker images
uses: docker/build-push-action@v3
with:
context: ./Dockerfile-ubuntu
file: ./Dockerfile-ubuntu/Dockerfile-v1.2
push: true
tags: ${{ secrets.DOCKER_HUB_USERNAME }}/e2eaiok-v1.2:${{ env.RELEASE_VERSION }} , ${{ secrets.DOCKER_HUB_USERNAME }}/e2eaiok-v1.2:latest
build-args: |
"http_proxy=${{ env.http_proxy }}"
"https_proxy=${{ env.https_proxy }}"
23 changes: 23 additions & 0 deletions Dockerfile-ubuntu/Dockerfile-v1.2
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
FROM ubuntu

# See http://bugs.python.org/issue19846
ENV LANG C.UTF-8

# Install system dependencies
RUN apt-get -y update \
&& apt-get install -y build-essential \
&& apt-get install -y wget numactl git \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y python3 python3-pip python-is-python3 graphviz \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y openjdk-8-jre \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*

RUN pip install torch==1.13.0 transformers datasets accelerate SentencePiece \
evaluate peft==0.4.0 torchsummary \
nltk rouge_score protobuf==3.20.1 tokenizers einops wandb \
sigopt

RUN pip install --upgrade pip
RUN pip install pyspark
RUN pip install graphviz jupyterlab
RUN pip install featuretools

0 comments on commit 04ae58c

Please sign in to comment.