Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -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 }}."
15 changes: 6 additions & 9 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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 && \
Expand Down Expand Up @@ -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* && \
Expand Down