Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
Carlos Ribas
rnacentral-webcode
Commits
282070a5
Commit
282070a5
authored
Apr 20, 2021
by
carlosribas
Browse files
Add LOCAL_DEVELOPMENT environment variable
parent
3ec2d1ca
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
0 deletions
+9
-0
Dockerfile
Dockerfile
+8
-0
docker-compose.yml
docker-compose.yml
+1
-0
No files found.
Dockerfile
View file @
282070a5
...
...
@@ -20,6 +20,7 @@ ENV RNACENTRAL_HOME=/srv/rnacentral
ENV
RNACENTRAL_LOCAL=$RNACENTRAL_HOME/local
ENV
SUPERVISOR_CONF_DIR=${SUPERVISOR_CONF_DIR:-"/srv/rnacentral/supervisor"}
ARG
RNACENTRAL_BRANCH
ARG
LOCAL_DEVELOPMENT
# Create folders. Install Infernal and node.js
RUN
\
...
...
@@ -49,6 +50,13 @@ RUN \
cd
$RNACENTRAL_HOME
/rnacentral-webcode/rnacentral/portal/static
&&
npm
install
--only
=
production
&&
\
mkdir
$RNACENTRAL_HOME
/static
# Install packages for local development if needed
RUN
\
LOCAL_DEV
=
"
${
LOCAL_DEVELOPMENT
:-
false
}
"
&&
\
if
[
"
$LOCAL_DEV
"
=
"True"
]
;
then
\
pip3
install
-r
$RNACENTRAL_HOME
/rnacentral-webcode/rnacentral/requirements_dev.txt
\
fi
WORKDIR
$RNACENTRAL_HOME/rnacentral-webcode
COPY
./entrypoint.sh /entrypoint.sh
ENTRYPOINT
[ "/entrypoint.sh" ]
...
...
docker-compose.yml
View file @
282070a5
...
...
@@ -7,6 +7,7 @@ services:
context
:
.
args
:
-
RNACENTRAL_BRANCH=${RNACENTRAL_BRANCH}
-
LOCAL_DEVELOPMENT=${LOCAL_DEVELOPMENT}
environment
:
-
DB_HOST=${DB_HOST}
-
DB_NAME=${DB_NAME}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment