Merge pull request #621 from MyersResearchGroup/LukasBuecherl-docker-image

Create main.yml
This commit is contained in:
JMante1 2022-01-18 13:07:17 -07:00 committed by GitHub
commit b763695c4a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 66 additions and 0 deletions

27
.github/workflows/dockerbuild.yml vendored Normal file
View file

@ -0,0 +1,27 @@
name: Build and push docker images
on:
push:
branches: [master]
jobs:
build-and-push:
name: Build image and push to Docker Hub
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
name: Checkout source code
- name: Build the Docker image
run: |
tag="ibiosim:snapshot"
echo $tag
docker build . --tag $tag
- uses: azure/docker-login@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Push the image to Docker Hub
run: |
tag="ibiosim:snapshot"
echo $tag
docker push $tag

39
Dockerfile Normal file
View file

@ -0,0 +1,39 @@
FROM python:3
LABEL base_image="python:3"
LABEL version="1.0.0"
LABEL software="bioSimAPI"
LABEL software.version="1.0.0"
LABEL about.summary="API for SynBioHub/SBOLCanvas communication with iBioSim"
LABEL about.home="https://github.com/MyersResearchGroup/iBioSim"
LABEL about.documentation="https://github.com/MyersResearchGroup/iBioSim"
LABEL about.license_file="https://github.com/MyersResearchGroup/iBioSim/blob/master/LICENSE.txt"
LABEL about.license="Apache-2.0"
LABEL about.tags="kinetic modeling,dynamical simulation,systems biology,biochemical networks,SBML,SED-ML,COMBINE,OMEX,BioSimulators"
LABEL maintainer="Chris Myers <chris.myers@colorado.edu>"
# Install requirements
RUN apt-get update --fix-missing \
&& DEBIAN_FRONTEND=noninteractive \
&& apt-get install -y maven \
&& apt install openjdk-8-jdk -y \
COPY . .
# Build iBioSim
WORKDIR /iBioSim
RUN mvn package -Dmaven.javadoc.skip=true
WORKDIR /
RUN apt-get -y install build-essential \
&& apt-get -y install dos2unix \
&& apt-get -y install libxml2-dev
# Build reb2sac
WORKDIR /Dependencies
RUN chmod +x newbuild.sh \
&& dos2unix newbuild.sh \
&& sh newbuild.sh
WORKDIR /
ENV LC_ALL=C.UTF-8
ENV LANG=C.UTF-8