Skip to content

Commit

Permalink
add some news
Browse files Browse the repository at this point in the history
  • Loading branch information
wangxiang124 committed Jun 12, 2024
1 parent 876d26c commit 008266f
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/smoke_test_pip_cli_sp_linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ jobs:
cd $root_path
# 检查目标目录是否存在
if [ -d "FedML" ]; then
echo "Directory 'FedML' already exists. Removing it."
rm -rf FedML
git pull
git checkout dev/v0.7.0
fi
git clone -b dev/v0.7.0 --single-branch https://github.com/Qigemingziba/FedML.git
cd FedML
Expand Down
41 changes: 41 additions & 0 deletions devops/dockerfile/github-action-runner/DockerfileWx
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# base
# FROM fedml/fedml:latest-torch1.13.1-cuda11.6-cudnn8-devel
FROM fedml/fedml:light
# set the github runner version
# ARG RUNNER_VERSION="2.317.0"

# update the base packages and add a non-sudo user
#RUN apt-get update -y && apt-get upgrade -y && useradd -m docker
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y git

# cd into the user directory, download and unzip the github actions runner
WORKDIR /home/fedml

RUN mkdir actions-runner && cd actions-runner \
&& curl -o actions-runner-linux-arm64-2.317.0.tar.gz -L https://github.com/actions/runner/releases/download/v2.317.0/actions-runner-linux-arm64-2.317.0.tar.gz \
&& tar xzf ./actions-runner-linux-arm64-2.317.0.tar.gz

# RUN mkdir actions-runner && cd actions-runner \
# && curl -o actions-runner-linux-x64-2.317.0.tar.gz -L https://github.com/actions/runner/releases/download/v2.317.0/actions-runner-linux-x64-2.317.0.tar.gz \
# && tar xzf ./actions-runner-linux-x64-2.317.0.tar.gz

# install some additional dependencies
#RUN chown -R docker ~docker && /home/docker/actions-runner/bin/installdependencies.sh
# copy over the start.sh script
COPY start.sh start.sh

# make the script executable
RUN chmod +x start.sh

RUN git clone https://github.com/Qigemingziba/FedML.git
# RUN cp -f /usr/bin/python /usr/bin/python-backup && ln -s /usr/bin/python3 python
# COPY FedML FedML
# since the config and run script for actions are not allowed to be run by root,
# set the user to "docker" so all subsequent commands are run as the docker user
#USER docker
# RUN cd FedML/python && pip install -i https://pypi.tuna.tsinghua.edu.cn/simple -e ./ --use-deprecated=legacy-resolver

ENV REPO=Qigemingziba/FedML ACCESS_TOKEN=AGMK3P54EHEPHNRPWRQ3IJLGNARAS
# set the entrypoint to the start.sh script
CMD ./start.sh ${REPO} ${ACCESS_TOKEN}

7 changes: 7 additions & 0 deletions devops/dockerfile/github-action-runner/build_wx_test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# --exclude='path/to/excluded/dir'
# git clone https://github.com/Qigemingziba/FedML.git
# git checkout dev/v0.7.0

docker build -t fedml/github-action-runner_wx:test2 -f ./DockerfileWx .

docker run --rm fedml/github-action-runner_wx:test2

0 comments on commit 008266f

Please sign in to comment.