Skip to content

Commit

Permalink
Add fedora30 container
Browse files Browse the repository at this point in the history
Signed-off-by: Roman Gershman <[email protected]>
  • Loading branch information
romange committed Aug 29, 2023
1 parent 870bab7 commit 4716518
Show file tree
Hide file tree
Showing 3 changed files with 63 additions and 26 deletions.
41 changes: 15 additions & 26 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,19 @@ jobs:
# Building Dev Image
# ===============================================================
build_dev:

runs-on: ubuntu-latest
strategy:
matrix:
# Test of these containers
include:
- container: "alpine-dev:latest"
file: alpine-dev.Dockerfile
- container: "ubuntu-dev:20"
file: u20.04-dev.Dockerfile
- container: "ubuntu-dev:22"
file: u22.04-dev.Dockerfile
- container: "fedora:30"
file: "fedora30-dev.Dockerfile"
steps:
- name: checkout
uses: actions/checkout@v3
Expand All @@ -41,34 +52,12 @@ jobs:
password: ${{ secrets.GITHUB_TOKEN }}

-
name: Build ubuntu-dev:20
uses: docker/build-push-action@v4
with:
context: .
platforms: linux/amd64,linux/arm64
push: ${{ github.event_name != 'pull_request' }}
tags: |
ghcr.io/${{ github.actor }}/ubuntu-dev:20
file: u20.04-dev.Dockerfile

-
name: Build ubuntu-dev:22
uses: docker/build-push-action@v4
with:
context: .
platforms: linux/amd64,linux/arm64
push: ${{ github.event_name != 'pull_request' }}
tags: |
ghcr.io/${{ github.actor }}/ubuntu-dev:22
file: u22.04-dev.Dockerfile

-
name: Build alpine-dev
name: Build
uses: docker/build-push-action@v4
with:
context: .
platforms: linux/amd64,linux/arm64
push: ${{ github.event_name != 'pull_request' }}
tags: |
ghcr.io/${{ github.actor }}/alpine-dev:latest
file: alpine-dev.Dockerfile
ghcr.io/${{ github.actor }}/${{ matrix.container }}
file: ${{ matrix.file }}
11 changes: 11 additions & 0 deletions fedora30-dev.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# syntax=docker/dockerfile:1
FROM fedora:30

COPY ./install_boost.sh /tmp/

RUN dnf install -y automake gcc-c++ git cmake libtool make ninja-build \
openssl-devel libunwind-devel autoconf-archive patch libxml2-devel wget bzip2 \
&& dnf clean all \
&& rm -rf /var/cache/yum

RUN /tmp/install_boost.sh
37 changes: 37 additions & 0 deletions install_boost.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
#!/bin/bash
set -ex

BVER=1.74.0
BOOST=boost_${BVER//./_} # replace all . with _

# For sake of boost install we always use g++.
export CXX=g++

install_boost() {
mkdir -p /tmp/boost && pushd /tmp/boost
if ! [ -d $BOOST ]; then
url="https://boostorg.jfrog.io/artifactory/main/release/${BVER}/source/$BOOST.tar.bz2"
echo "Downloading from $url"
if ! [ -e $BOOST.tar.bz2 ]; then wget -nv ${url} -O $BOOST.tar.bz2; fi

tar -xjf $BOOST.tar.bz2
fi

booststap_arg="--without-libraries=graph_parallel,graph,wave,test,mpi,python,fiber,filesystem"
cd $BOOST
boostrap_cmd=`readlink -f bootstrap.sh`

echo "CXX compiler ${CXX}"
echo "Running ${boostrap_cmd} ${booststap_arg}"
${boostrap_cmd} ${booststap_arg} || { cat bootstrap.log; return 1; }
b2_args=(define=BOOST_COROUTINES_NO_DEPRECATION_WARNING=1 link=static variant=release
threading=multi --without-test --without-math --without-log --without-locale --without-graph --without-wave --without-mpi --without-python --without-fiber --without-filesystem --without-iostreams --without-serialization --without-chrono --without-timer --without-regex -j4)

echo "Building targets with ${b2_args[@]}"
./b2 "${b2_args[@]}" cxxflags='-std=c++14 -Wno-deprecated-declarations'
./b2 install "${b2_args[@]}" -d0
popd
rm -rf /tmp/boost
}

install_boost

0 comments on commit 4716518

Please sign in to comment.