Setup a local development environment for iSkyLIMS.
With a few adjustments this can easily be adopted to a multiuser production ready solution, but I haven't had the time.
- Linux workstation
- Docker installed
- Docker compose installed
- Standard tools like git and vim
From your command line:
$ cd
$ git clone [email protected]:iohenkies/iskylims_docker.git
$ cd iskylims
$ ls -al
In the conf
folder, you can edit what you need. What you need to change always is:
- INSERTDJANGOPASS at
./conf/settings.py
- INSERTROOTPASS and INSERTDJANGOPASS at
./docker-compose.yml
- INSERTROOTPASS and INSERTDJANGOPASS at
./scripts/migrations
Then, still from the iskylims
folder:
$ sudo docker build -t iskylimsapp .
$ sudo docker-compose up -d
$ sudo docker exec -it iskylimsapp /srv/iSkyLIMS/migrations
$ sudo docker-compose restart
On you workstation navigate to http://localhost:8000 with your browser.
Be sure to run the migrations script only once.
We have to setup a super user. With this user we can manage users, groups and settings.
Use these commands, we're temporary enter the iSkyLIMS container to set this up:
$ sudo docker exec -it iskylimsapp bash
# cd /srv/iSkyLIMS
# ./manage.py createsuperuser
<follow the prompts>
# exit
You can now login at the admin page at http://localhost:8000/admin.
More information here.
iohenkies