Fix docker image
Create a proper docker image again. This is necessary for
- testing the database #210
- creating reproducable figures
- binder
- general ease of installation
First a proper conda package needs to be created #181 .
We can also add development packages to the docker container, e.g. in conda
-
tmux -
jupyter -
ripgrep -
anaconda-client -
vim (for git) -
man (for git) -
coverage (or ensure it works) -
new black #250 (closed)
Not conda
-
meld (not the conda package) -
docker, to build the docker image -
less
Also perhaps do
-
predownload files (by running tests) -
put project in /opt/project (to be rebound by user or PyCharm) -
/opt/project# conda develop src/
or add/opt/project/src
to Python path, in particular for docker-compose -
bash build.sh
-
make compatible with mybinder: https://mybinder.readthedocs.io/en/latest/tutorials/dockerfile.html -
ensure docker-compose notebook starts with database
Also add gitprompt:
curl https://raw.githubusercontent.com/git/git/master/contrib/completion/git-prompt.sh -o /root/git-prompt.sh
echo "source ~/git-prompt.sh" >> /root/.bashrc
echo "export PS1='[\u@\h \W\$(__git_ps1 \" (%s)\")]\$ '" >> /root/.bashrc
echo "conda activate base" >> /root/.bashrc
Perhaps force caching of scopesim packages?
$ cat .scopesim_rc.yaml
alias: SIM
properties:
file:
use_cached_downloads: True
And then perhaps download them once at the start of the test run?
Also update dependencies:
- astroconda is not necessary anymore, use conda-forge, see !78 (merged)
See !287 (merged)