Skip to content

Commit

Permalink
Update to include CentoS 8
Browse files Browse the repository at this point in the history
Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
  • Loading branch information
yongtang committed Feb 15, 2020
1 parent 9cb6725 commit 95054a8
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 1 deletion.
12 changes: 12 additions & 0 deletions .github/workflows/build.yml
Expand Up @@ -39,6 +39,18 @@ jobs:
docker run -i --rm -v $PWD:/v -w /v --net=host ubuntu:18.04 \
bash -x -e source.sh
centos-8:
name: CentOS 8
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- run: |
set -x -e
python3 .github/workflows/build.develop.py README.md "##### CentOS 8" > source.sh
cat source.sh
docker run -i --rm -v $PWD:/v -w /v --net=host centos:8 \
bash -x -e source.sh
centos-7:
name: CentOS 7
runs-on: ubuntu-latest
Expand Down
30 changes: 29 additions & 1 deletion README.md
Expand Up @@ -163,7 +163,35 @@ sudo bash -x -e bazel-2.0.0-installer-linux-x86_64.sh
# Upgrade pip
sudo python3 -m pip install -U pip

# Install tensorflow and configure bazel with rh-python36
# Install tensorflow and configure bazel
./configure.sh

# Build shared libraries
bazel build -s --verbose_failures //tensorflow_io/...

# Once build is complete, shared libraries will be available in
# `bazel-bin/tensorflow_io/core/python/ops/` and it is possible
# to run tests with `pytest`, e.g.:
sudo python3 -m pip install pytest
TFIO_DATAPATH=bazel-bin python3 -m pytest -s -v tests/test_serialization_eager.py
```

##### CentOS 8

CentOS 8 requires gcc/g++, git, and python 3. The following will install dependencies and build
the shared libraries on Ubuntu 18.04:
```sh
# Install gcc/g++, git, unzip/which (for bazel), and python3
sudo yum install -y python3 gcc gcc-c++ git unzip which

# Install Bazel 2.0.0
curl -sSOL https://github.com/bazelbuild/bazel/releases/download/2.0.0/bazel-2.0.0-installer-linux-x86_64.sh
sudo bash -x -e bazel-2.0.0-installer-linux-x86_64.sh

# Upgrade pip
sudo python3 -m pip install -U pip

# Install tensorflow and configure bazel
./configure.sh

# Build shared libraries
Expand Down

0 comments on commit 95054a8

Please sign in to comment.