Skip to content

Commit

Permalink
try docker v1
Browse files Browse the repository at this point in the history
  • Loading branch information
katiesevans committed May 11, 2023
1 parent 76c4309 commit 110adc0
Show file tree
Hide file tree
Showing 3 changed files with 73 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/build_docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Build dockerfile on change
name: Build Docker (env/Dockerfile)

on:
push:
paths:
- 'env/Dockerfile'
- 'env/conda.yml'
- '.github/workflows/build_docker.yml'
pull_request:
paths:
- 'env/Dockerfile'
- 'env/conda.yml'
- '.github/workflows/build_docker.yml'

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

# Build Tools
- name: Build and Publish
uses: elgohr/Publish-Docker-Github-Action@master
with:
name: andersenlab/heritability
tag: "${{ steps.current-time.formattedTime }}"
username: ${{ secrets.KSE_DOCKER_USER }}
password: ${{ secrets.KSE_DOCKER_PASS }}
snapshot: true
dockerfile: Dockerfile
workdir: "env"
tags: "latest"
cache: true
14 changes: 14 additions & 0 deletions env/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
FROM continuumio/miniconda
MAINTAINER Katie Evans <katiesevans9@gmail.com>

COPY conda.yml .
RUN \
conda env update -n root -f conda.yml \
&& conda clean -a

RUN Rscript -e "install.packages('valr', dependencies=TRUE, repos='http://cran.us.r-project.org')"

# install other tools not avalible on conda cloud
RUN apt-get --allow-releaseinfo-change update && apt-get install -y procps

RUN conda install -c conda-forge mscorefonts
25 changes: 25 additions & 0 deletions env/conda.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: heritability
channels:
- defaults
- bioconda
- r
- biobuilds
- conda-forge
dependencies:
- bcftools=1.9
- pandoc=2.12
- plink=1.90b6.12
- bedtools=2.29.2
- libiconv
- r=3.6.0
- r-tidyverse=1.3.0
- r-data.table=1.12.2
#- r-DT=0.5
#- r-genetics=1.3.8.1.2
- r-boot
- r-lme4
- r-futile.logger
- r-knitr=1.22
- r-rmarkdown=1.12
- r-sommer=4.0.4
#- r-coop=0.6-2

0 comments on commit 110adc0

Please sign in to comment.