diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..94ca18b --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,26 @@ +name: GitHub-Actions-Demo + +on: + push: + branches: + - main +jobs: + Explore-GitHub-Actions: + runs-on: ubuntu-latest + steps: + - run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event." + - run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!" + - run: echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}." + - name: Check out repository code + uses: actions/checkout@v4 + with: + push: true + file: ./Dockerfile + tag: | + "tensorflow_image/gpu" + - run: echo "💡 The ${{ github.repository }} repository has been cloned to the runner." + - run: echo "🖥️ The workflow is now ready to test your code on the runner." + - name: List files in the repository + run: | + ls ${{ github.workspace }} + - run: echo "🍏 This job's status is ${{ job.status }}." diff --git a/Dockerfile b/Dockerfile index 607820f..c916eb5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,10 +1,7 @@ -FROM tensorflow/tensorflow:1.13.1-gpu-py3-jupyter - -MAINTAINER sunnywalden@gmail.com - +FROM tensorflow/tensorflow:2.6.2-gpu-py3-jupyter USER root -ENV PYTHON_VERSION 3.7.5 +ENV PYTHON_VERSION 3.8.2 RUN apt-get -y update && \ apt-get -y upgrade && \ @@ -35,10 +32,10 @@ RUN apt-get -y update && \ make && make install && \ sed -i 's/\/usr\/bin\/python/\/usr\/bin\/python2.7/g' /usr/bin/lsb_release && \ rm -rf /usr/bin/python3 && rm -rf /usr/bin/python && rm -rf /usr/bin/pip3 && rm -rf /usr/bin/pip && \ - ln -s /usr/local/python3/bin/python3.7 /usr/bin/python3 && \ - ln -s /usr/local/python3/bin/python3.7 /usr/bin/python && \ - ln -s /usr/local/python3/bin/pip3.7 /usr/bin/pip3 && \ - ln -s /usr/local/python3/bin/pip3.7 /usr/bin/pip && \ + ln -s /usr/local/python3/bin/python3.8 /usr/bin/python3 && \ + ln -s /usr/local/python3/bin/python3.8 /usr/bin/python && \ + ln -s /usr/local/python3/bin/pip3.8 /usr/bin/pip3 && \ + ln -s /usr/local/python3/bin/pip3.8 /usr/bin/pip && \ export PATH=/usr/local/python3/bin:$PATH && \ pip3 install --upgrade pip && \ cd .. && rm -rf Python-$PYTHON_VERSION* && \