Skip to content

Commit

Permalink
Removed unneeded documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
johannwagner committed Jun 30, 2021
1 parent 0707c56 commit eb1f30a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 62 deletions.
2 changes: 0 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ RUN apt-get update && \
postgresql-plpython3-9.6 postgresql-plpython-9.6 \
&& rm -rf /var/lib/apt/lists/*

COPY * /

COPY init.sh /docker-entrypoint-initdb.d/init.sh

ENV POSTGRES_USER postgres
Expand Down
15 changes: 6 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,10 @@

## Usage

In this folder:
`docker build -t oep_postgres .`
`docker run -p "5432:5432" oep_postgres`

In your project folder:
`OEP_DB_USER=postgres OEP_DB_PASSWORD=postgres LOCAL_DB_USER=postgres LOCAL_DB_PASSWORD=postgres python manage.py runserver`
`OEP_DB_USER=postgres OEP_DB_PASSWORD=postgres LOCAL_DB_USER=postgres LOCAL_DB_PASSWORD=postgres python manage.py alembic `
```
docker run -v "$(pwd)/oeplatform_data:/var/lib/postgresql/data" -p "5432:5432" ghcr.io/openenergyplatform/oeplatform-postgres:latest
```
It starts a already built docker container, exposes port 5432 to your local machine and creates a data directory in a `oeplatform_data` folder at your current path.

## What does this?

Expand All @@ -21,8 +18,8 @@ Before you can get started, we need to migrate the oedb migrations.
All relevant settings are stored in `/oeplatform/securitysettings.py`, which is normally created by using the `securitysettings.py.default`.
We included the usage of environment variables to archieve configuration options. You need to set the following configuration options:

+ `OEP_DB_USER=postgres`
+ `OEP_DB_PASSWORD=postgres`
+ `OEP_DJANGO_USER=postgres`
+ `OEP_DB_PW=postgres`
+ `LOCAL_DB_USER=postgres`
+ `LOCAL_DB_PASSWORD=postgres`

Expand Down
51 changes: 0 additions & 51 deletions docs/installation.md

This file was deleted.

0 comments on commit eb1f30a

Please sign in to comment.