Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/uclouvain/osis-docker
Docker compose to get started with osis and osis portal
https://github.com/uclouvain/osis-docker
Last synced: 2 months ago
JSON representation
Docker compose to get started with osis and osis portal
- Host: GitHub
- URL: https://github.com/uclouvain/osis-docker
- Owner: uclouvain
- License: agpl-3.0
- Created: 2017-03-13T08:13:54.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2019-10-25T06:17:23.000Z (about 5 years ago)
- Last Synced: 2024-06-19T00:21:59.270Z (7 months ago)
- Language: Shell
- Size: 22.5 KB
- Stars: 1
- Watchers: 8
- Forks: 5
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Osis docker
All you need to get started with osis and osis portal using docker.## Prerequisites
You need to install docker on your computer. Follow the [docker documentation](https://docs.docker.com/engine/installation/) and look for the installer for your platform.
## Getting started
1. Clone this repository
````
# git clone [email protected]:uclouvain/osis-docker.git
````
2. Initialize submodules
````
# git submodule update --init --remote --recursive
# cp osis/.env.docker osis/.env
# cp osis-portal/.env.docker osis-portal/.env
````
3. Build containers
````
# docker-compose build
````
4. start the database container and execute migrations
````
# docker-compose run osis python manage.py migrate
# docker-compose run osis-portal python manage.py migrate
````
5. Start all containers
````
# docker-compose up -d
````
6. Check that all is workingOpen a browser and go to `http://localhost:8000` and you should see Osis running.
## Pycharm integration
In PyCharm Enterprise Edition, you can use the docker-compose as project interpreter.
[Follow this tutorial in JetBrains.](https://www.jetbrains.com/help/pycharm/using-docker-compose-as-a-remote-interpreter.html)## Appendix
You can create a superuser by using the following command:
````
# docker-compose run osis python manage.py createsuperuser
````You can also load demo data in osis by using:
````
# docker-compose run osis python manage.py loaddata demo_data.json
````