Skip to content

Commit

Permalink
Merge pull request #4 from ska-sa/modernize
Browse files Browse the repository at this point in the history
Modernize
  • Loading branch information
gijzelaerr authored Sep 25, 2018
2 parents ff8402b + 80256a2 commit f4f4c04
Show file tree
Hide file tree
Showing 31 changed files with 6,016 additions and 5,183 deletions.
5 changes: 5 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.git
.gitignore
.idea/
.venv2/
.venv3/
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,7 @@
.idea/
build/
MANIFEST
astro_tigger.egg-info/
*.egg-info/
.venv*/
dist/
test/bla.restored.fits
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ services:
python:
- '2.7'
install:
- docker build . -t tigger-lsm
- docker build . -t ska-sa/tigger-lsm
script:
- true
deploy:
Expand Down
39 changes: 30 additions & 9 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,30 @@
FROM kernsuite/base:2

MAINTAINER [email protected]

ADD . /tmp/tigger-lsm

RUN pip install /tmp/tigger-lsm

CMD /usr/local/bin/tigger-convert
FROM kernsuite/base:4
RUN docker-apt-install \
python-setuptools \
python-numpy \
python-scipy \
python-astropy \
python-astro-kittens \
python-astlib \
python-pip \
python3-setuptools \
python3-numpy \
python3-scipy \
python3-astropy \
python3-astlib \
python3-pip
RUN docker-apt-install git
ADD . /code
RUN pip3 install git+https://github.com/ska-sa/kittens.git@modernize
RUN pip install /code
RUN python2 /usr/local/bin/tigger-convert /code/test/3C147-HI6.refmodel.lsm.html /tmp/output.txt
RUN python2 /usr/local/bin/tigger-make-brick /code/test/3C147-HI6.refmodel.lsm.html /code/test/bla.fits
RUN python2 /usr/local/bin/tigger-tag /code/test/3C147-HI6.refmodel.lsm.html gijs
RUN python2 /usr/local/bin/tigger-restore -f /code/test/bla.fits /code/test/3C147-HI6.refmodel.lsm.html
RUN pip3 install /code
RUN python3 /usr/local/bin/tigger-convert -f /code/test/3C147-HI6.refmodel.lsm.html /tmp/output.txt
RUN python3 /usr/local/bin/tigger-make-brick /code/test/3C147-HI6.refmodel.lsm.html /code/test/bla.fits
RUN python3 /usr/local/bin/tigger-tag /code/test/3C147-HI6.refmodel.lsm.html gijs
RUN python3 /usr/local/bin/tigger-restore -f /code/test/bla.fits /code/test/3C147-HI6.refmodel.lsm.html
RUN echo "the next command should not print 1"
RUN wc -l /tmp/output.txt
14 changes: 0 additions & 14 deletions Makefile

This file was deleted.

Loading

0 comments on commit f4f4c04

Please sign in to comment.