-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathDockerfile
executable file
·51 lines (45 loc) · 1.66 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
FROM centos:latest
# ----------------------------------------------
# BASE INSTALLATION
# ----------------------------------------------
COPY ./base /install/base
WORKDIR /install/base
RUN ["./install_dependencies.sh"]
# ----------------------------------------------
# ASTROMETRY INSTALLATION
# ----------------------------------------------
COPY ./astrometry /install/astrometry
WORKDIR /
RUN ["/install/astrometry/compile_astrometry.sh"]
ENV PATH="/usr/local/astrometry/bin:${PATH}"
ENV PYTHONPATH="/astrometry.net"
# ----------------------------------------------
# NOVA INSTALLATION
# ----------------------------------------------
COPY ./nova /install/nova
COPY ./nova/my_fixtures.json /astrometry.net/net/fixtures/
WORKDIR /install/nova
RUN ["./install_nova.sh"]
# ----------------------------------------------
# CLEAN UP
# ----------------------------------------------
WORKDIR /
RUN ["rm","-rf","install/"]
# ----------------------------------------------
# RUNTIME STUFF
# ----------------------------------------------
# startup scripts
COPY ./nova/start_nova.sh /astrometry.net/net/
COPY ./nova/solve_script.sh /astrometry.net/net/
COPY ./docker-entrypoint.sh /
# add any example index files:
COPY ./index/*.fits /usr/local/astrometry/data/
# add utility script for downloading index files to astrometry/bin, which is part of the path:
COPY ./index/download_index_files.sh /usr/local/astrometry/bin/
# ----------------------------------------------
# ENTRYPOINT
# ----------------------------------------------
WORKDIR /
ENTRYPOINT ["./docker-entrypoint.sh"]
# start nova by default
CMD ["nova"]