Commit d57e4393 authored by Nelson, Gavin (Contractor) Scott's avatar Nelson, Gavin (Contractor) Scott
Browse files

Merge branch 'CISetup' into 'main'

Ci setup

See merge request astrogeology/autocnet!648
parents 74799fdc 760b5f73
Loading
Loading
Loading
Loading

.gitlab-ci.yml

0 → 100644
+14 −0
Original line number Diff line number Diff line
image: condaforge/mambaforge:latest
stages:
  - test
unit-test-job: 
  stage: test
  script:
    - apt-get --allow-releaseinfo-change update -y
    - apt-get -y upgrade
    - apt-get install -y libgomp1
    - apt-get install -y libgl1-mesa-glx
    - mamba env create -f environment.yml --prefix /autocnet
    - /autocnet/bin/pytest .
  rules:
  - if: $CI_PIPELINE_SOURCE == 'merge_request_event'
 No newline at end of file
+14 −0
Original line number Diff line number Diff line
FROM continuumio/miniconda3

FROM usgsastro/miniconda3
WORKDIR /root

# OpenCV deps
RUN apt-get update
RUN apt-get --allow-releaseinfo-change update -y
RUN apt-get -y upgrade
RUN apt-get install -y libgomp1
RUN apt-get install -y libgl1-mesa-glx

# Anaconda environment
ADD environment.yml /root
RUN conda env update -f environment.yml
RUN conda install -c conda-forge mamba
RUN mamba env update -f environment.yml

# Clone source
RUN git clone https://github.com/USGS-Astrogeology/autocnet.git
WORKDIR /root/autocnet
ADD . /root
cmd pytest
 No newline at end of file

docker/README.md

deleted100644 → 0
+0 −8
Original line number Diff line number Diff line
To Download:
    docker pull evindunn/autocnet

To Build (From directory with Dockerfile and environment.yml):
    docker build -t autocnet .

To Run:
    docker run -it --name [container_name] autocnet

docker/environment.yml

deleted100644 → 0
+0 −34
Original line number Diff line number Diff line
name: root
prefix: /opt/conda
channels:
  - conda-forge
  - usgs-astrogeology
  - menpo
dependencies:
  - python=3
  - cython
  - cyvlfeat
  - matplotlib
  - dill
  - gdal
  - geopandas
  - jupyter
  - networkx
  - numexpr
  - numpy
  - opencv
  - pandas
  - plio
  - pyyaml
  - runipy
  - scipy
  - shapely
  - sqlalchemy
  - vlfeat
  - pip:
    - pillow
    - protobuf
    - pvl
    - pysal
    - pytest
    - pytest-coverage
+20 −9
Original line number Diff line number Diff line
name: root
prefix: /opt/conda
channels:
  - conda-forge
  - usgs-astrogeology
@@ -7,8 +9,11 @@ dependencies:
  - python>=3
  - coveralls
  - csmapi
  - cython
  - cyvlfeat
  - matplotlib
  - dill
  - gdal
  - fakeredis
  - geoalchemy2
  - geopandas
@@ -19,29 +24,35 @@ dependencies:
  - ipykernel
  - jupyter
  - kalasiris
  - knoten>= 0.2.0,<1.0
  - knoten=0.2.0
  - ncurses
  - networkx >=2, <3
  - networkx=2
  - numexpr
  - numpy
  - opencv <= 3.5
  - pillow
  - pip
  - plio>=1.3
  - pandas
  - pyyaml
  - plurmy
  - psycopg2
  - proj>=7.0.0,<8
  - pvl>=1.0
  - proj=7.0.0
  - pvl = 1.0
  - pyproj
  - pytest
  - pytest-cov
  - pytest-mock
  - runipy
  - richdem
  - scikit-image>=0.17
  - scikit-image=0.17
  - scikit-learn
  - scipy<=1.2.1
  - scipy=1.2.1
  - shapely
  - sqlalchemy>=1.4,<1.5
  - sqlalchemy-utils>=0.37.0
  - sqlalchemy=1.4
  - sqlalchemy-utils=0.37.0
  - redis-py
  - usgscsm
  - vlfeat
  - pip
  - protobuf
  - pysal
 No newline at end of file
Loading