Commit cc4cf340 authored by Mikkel Friis-Møller's avatar Mikkel Friis-Møller
Browse files

New docker image

parent b7e748c0
Pipeline #6439 passed with stage
in 19 seconds
image: dtuwindenergy/topfarm2:latest
image: dtuwindenergy/v52:latest
# ===== TEST V52 =====
test_v52: # name the job what we like
stage: # build, test, deploy defined by default [2]
test
script:
- pip install --upgrade wetb
- pip install windrose
- pip install mysql-connector
- python -m pytest --cov-report term-missing:skip-covered --cov=v52 --cov-config .coveragerc
tags: # only runners with this tag can do the job [3]
- python
......
# ==================================================================
# Docker image for V52 testing and docs
# ==================================================================
FROM continuumio/anaconda3:latest
MAINTAINER Mikkel Friis-Møller <mikf@dtu.dk>
RUN apt-get update && \
apt-get install make && \
apt-get install libgl1-mesa-glx -y && \
apt-get install gcc gfortran -y
#RUN apt-get install mysql-server
RUN apt-get install default-libmysqlclient-dev -y
RUN conda update -y conda && \
conda install -y sphinx_rtd_theme && \
conda install -y pytest-cov && \
conda clean -y --all
RUN pip install --upgrade pip && \
pip install mysqlclient && \
pip install --upgrade wetb && \
pip install windrose
# build image
docker build -t dtuwindenergy/v52 ./
# or pull from docker hub
# create container
docker create -it --name v52 dtuwindenergy/v52
# start container
docker start v52
# enter container with bash prompt
docker exec -it v52 bash
# push
docker push dtuwindenergy/v52
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment