Skip to content

Commit

Permalink
Merge pull request #6 from xgaia/master
Browse files Browse the repository at this point in the history
Askomics 18.10
  • Loading branch information
xgaia authored Dec 10, 2018
2 parents 131299d + a78188c commit 6b8b3a5
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 9 deletions.
15 changes: 8 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,20 +1,21 @@
FROM alpine
MAINTAINER Olivier Filangi "olivier.filangi@inra.fr"
MAINTAINER Xavier Garnier "xavier.garnier@irisa.fr"

# Environment variables
ENV ASKOMICS="https://github.com/askomics/askomics.git" \
ASKOMICS_DIR="/usr/local/askomics"
ASKOMICS_DIR="/usr/local/askomics" \
ASKOMICS_VERSION="18.10"

# Install prerequisites, clone repository and install
RUN apk add --update bash make gcc g++ zlib-dev libzip-dev bzip2-dev xz-dev git python3 python3-dev nodejs nodejs-npm linux-headers && \
git clone ${ASKOMICS} ${ASKOMICS_DIR} && \
git clone -b ${ASKOMICS_VERSION} --single-branch --depth=1 ${ASKOMICS} ${ASKOMICS_DIR} && \
cd ${ASKOMICS_DIR} && \
npm install gulp -g && \
npm install --production && \
chmod +x startAskomics.sh && \
rm -rf /usr/local/askomics/venv && \
bash ./startAskomics.sh -b && \
rm -rf /var/cache/apk/*
rm -rf /var/cache/apk/* && \
rm -rf /root/.cache/* && \
rm -rf /root/.npm/* && \
rm -rf /tmp/*

WORKDIR /usr/local/askomics/

Expand Down
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,15 @@

## Run

docker run --name askomics -p 6543:6543 d askomics/askomics
docker run --name askomics -p 6543:6543 -d askomics/askomics


## .ini configuration
## askomics.ini configuration

All askomics properties defined in section [app:main] of the .ini file can be configured via the environment variables. The environment variable should be prefixed with ASKO_, without the askomics.

For exemple, if ou want to modify `askomics.overview_lines_limit = 200` of the ini file, you must declare a environment variable like `ASKO_overview_lines_limit="1000"`

For the other ini entry, you can use `ASKOCONFIG_section_key=value` environment variables. use `_colon_`, `_hyphen_` and `_dot_` instead of `:`, `-` and `.`.

`ASKOCONFIG_app_colon_main_pyramid_dot_debug_authorization="true"` will write `pyramid.debug_authorization = true`

0 comments on commit 6b8b3a5

Please sign in to comment.