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
73190885
Commit
73190885
authored
Oct 07, 2020
by
carlosribas
Browse files
Allow to clone a specific branch
parent
0b1f8bc4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
Dockerfile-development
Dockerfile-development
+3
-1
docker-compose.yml
docker-compose.yml
+2
-0
No files found.
Dockerfile-development
View file @
73190885
...
...
@@ -21,6 +21,7 @@ RUN apt-get update && apt-get install -y \
ENV RNACENTRAL_HOME=/srv/rnacentral
ENV RNACENTRAL_LOCAL=$RNACENTRAL_HOME/local
ENV SUPERVISOR_CONF_DIR=${SUPERVISOR_CONF_DIR:-"/srv/rnacentral/supervisor"}
ARG RNACENTRAL_BRANCH
# Create folders. Install Infernal and node.js
RUN \
...
...
@@ -44,7 +45,8 @@ USER rnacentral
# Download RNAcentral, install requirements and node.js dependencies
RUN \
cd $RNACENTRAL_HOME && \
git clone https://github.com/RNAcentral/rnacentral-webcode.git && \
BRANCH="${RNACENTRAL_BRANCH:-master}" && \
git clone -b "$BRANCH" https://github.com/RNAcentral/rnacentral-webcode.git && \
pip install -r $RNACENTRAL_HOME/rnacentral-webcode/rnacentral/requirements.txt && \
pip install gunicorn && \
cd $RNACENTRAL_HOME/rnacentral-webcode/rnacentral/portal/static && npm install --only=production
...
...
docker-compose.yml
View file @
73190885
...
...
@@ -5,6 +5,8 @@ services:
rnacentral
:
build
:
context
:
.
args
:
-
RNACENTRAL_BRANCH=${RNACENTRAL_BRANCH}
dockerfile
:
Dockerfile-development
environment
:
-
DB_HOST=${DB_HOST}
...
...
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