Skip to content

Commit

Permalink
Merge pull request #3 from AI-Pranto-1/docker-update
Browse files Browse the repository at this point in the history
yml file to publish (DAGMC+libmesh) image
  • Loading branch information
shimwell authored Oct 11, 2021
2 parents 38a030d + f0cd6fb commit c3d6ac0
Show file tree
Hide file tree
Showing 4 changed files with 79 additions and 3 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/dockerhub-publish-dagmc-libmesh.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: dockerhub-publish-latest-dagmc-libmesh

on:
push:
branches: master

jobs:
main:
runs-on: ubuntu-latest
steps:
-
name: Set up QEMU
uses: docker/setup-qemu-action@v1
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
-
name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Build and push
id: docker_build
uses: docker/build-push-action@v2
with:
push: true
tags: openmc/openmc:latest-libmesh
build-args: |
build_dagmc=on
build_libmesh=on
compile_cores=2
-
name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }}
37 changes: 37 additions & 0 deletions .github/workflows/dockerhub-publish-develop-dagmc-libmesh.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: dockerhub-publish-develop-dagmc-libmesh

on:
push:
branches: develop

jobs:
main:
runs-on: ubuntu-latest
steps:
-
name: Set up QEMU
uses: docker/setup-qemu-action@v1
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
-
name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Build and push
id: docker_build
uses: docker/build-push-action@v2
with:
push: true
tags: openmc/openmc:develop-dagmc
build-args: |
build_dagmc=on
build_libmesh=on
compile_cores=2
openmc_branch=develop
-
name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }}
7 changes: 5 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,12 @@
# To build with OpenMC and DAGMC enabled
# docker build -t openmc_dagmc --build-arg build_dagmc=on --build-arg compile_cores=4 .

# To build with OpenMC and Libmesh support
# To build with OpenMC and Libmesh enabled
# docker build -t openmc_libmesh --build-arg build_libmesh=on --build-arg compile_cores=4 .

# To build with both DAGMC and Libmesh enabled
# docker build -t openmc_dagmc_libmesh --build-arg build_dagmc=on --build-arg build_libmesh=on --build-arg compile_cores=4 .

# sudo docker run image_name:tag_name or ID with no tag sudo docker run ID number

FROM ubuntu:latest
Expand All @@ -19,7 +22,7 @@ ARG build_dagmc=off
ARG build_libmesh=off

# By default one core is used to compile
ARG compile_cores=4
ARG compile_cores=1

# Set default value of HOME to /root
ENV HOME /root
Expand Down
2 changes: 1 addition & 1 deletion vendor/fmt
Submodule fmt updated 117 files

0 comments on commit c3d6ac0

Please sign in to comment.