Skip to content
This repository has been archived by the owner on Nov 21, 2019. It is now read-only.

Use Postgres #8

Merged
merged 12 commits into from
May 1, 2019
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 0 additions & 17 deletions .docker/data/article1/1.xml

This file was deleted.

7 changes: 7 additions & 0 deletions .env.dist
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
#DEFAULT_LOCALE=en
#SERVICE_NAME=articles

###> doctrine/doctrine-bundle ###
# Format described at http://docs.doctrine-project.org/projects/doctrine-dbal/en/latest/reference/configuration.html#connecting-using-a-url
# For an SQLite database, use: "sqlite:///%kernel.project_dir%/var/data.db"
# Configure your db driver and server_version in config/packages/doctrine.yaml
DATABASE_URL=mysql://db_user:db_password@127.0.0.1:3306/db_name
###< doctrine/doctrine-bundle ###

###> symfony/framework-bundle ###
APP_ENV=dev
APP_SECRET=f124d3735069082335cb4c2e18df7bce
Expand Down
18 changes: 15 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,23 @@ WORKDIR /app

ENV APP_ENV=prod

RUN mkdir data var && \
RUN mkdir var && \
chown www-data:www-data var

RUN docker-php-ext-install \
opcache
RUN apk add --no-cache --virtual .build-deps $PHPIZE_DEPS && \
apk add --no-cache \
postgresql-dev \
postgresql-libs \
&& \
docker-php-ext-install \
opcache \
pdo_pgsql \
&& \
apk del \
.build-deps \
postgresql-dev \
&& \
rm -rf /var/cache/apk/

COPY LICENSE .
COPY .docker/php.ini ${PHP_INI_DIR}/conf.d/00-app.ini
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Libero content store

[![Build Status](https://travis-ci.com/libero/content-store.svg?branch=master)](https://travis-ci.com/libero/content-store)

Implementation of the Libero content API.
Implementation of the Libero content API using PostgreSQL.

Getting started
---------------
Expand Down
3 changes: 3 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
"php": "^7.3",
"ext-ctype": "*",
"ext-mbstring": "*",
"ext-pdo_pgsql": "*",
"doctrine/doctrine-bundle": "^1.10",
"doctrine/doctrine-migrations-bundle": "^2.0",
"libero/api-problem-bundle": "^0.2",
"libero/content-api-bundle": "^0.1",
"symfony/config": "^4.2",
Expand Down
Loading