Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Carlos Ribas
rnacentral-webcode
Commits
83cd29ce
Commit
83cd29ce
authored
Apr 26, 2021
by
carlosribas
Browse files
Change the path to the static files
parent
c962e4c8
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
8 additions
and
8 deletions
+8
-8
Dockerfile
Dockerfile
+1
-1
docker-compose.yml
docker-compose.yml
+2
-2
kubernetes/helm/templates/nginx.yaml
kubernetes/helm/templates/nginx.yaml
+3
-3
kubernetes/helm/templates/rnacentral.yaml
kubernetes/helm/templates/rnacentral.yaml
+1
-1
nginx/conf.d/local.conf
nginx/conf.d/local.conf
+1
-1
No files found.
Dockerfile
View file @
83cd29ce
...
...
@@ -62,7 +62,7 @@ RUN cd rnacentral/portal/static && npm install --only=production
# Copy and chown all the files to the rnacentral user
COPY
rnacentral/ $RNACENTRAL_HOME/
RUN
chown
-R
rnacentral:rnacentral /srv
/rnacentral
RUN
chown
-R
rnacentral:rnacentral /srv
# Install and configure packages for local development if needed
RUN
\
...
...
docker-compose.yml
View file @
83cd29ce
...
...
@@ -21,7 +21,7 @@ services:
expose
:
-
8000
volumes
:
-
static_volume:/srv/
rnacentral/
static
-
static_volume:/srv/static
-
./openssl/openssl.cnf:/etc/ssl/openssl.cnf
depends_on
:
-
redis
...
...
@@ -47,7 +47,7 @@ services:
-
8000:80
volumes
:
-
./nginx/conf.d:/etc/nginx/conf.d
-
static_volume:/srv/
rnacentral/
static
-
static_volume:/srv/static
depends_on
:
-
rnacentral
networks
:
...
...
kubernetes/helm/templates/nginx.yaml
View file @
83cd29ce
...
...
@@ -28,7 +28,7 @@ data:
location /static/ {
autoindex on;
alias /srv/
rnacentral/
static/;
alias /srv/static/;
}
location / {
...
...
@@ -57,7 +57,7 @@ spec:
rollme
:
{{
randAlphaNum 5 | quote
}}
spec
:
containers
:
-
image
:
nginx:1.
17
-alpine
-
image
:
nginx:1.
20
-alpine
name
:
nginx
resources
:
requests
:
...
...
@@ -73,7 +73,7 @@ spec:
mountPath
:
/etc/nginx/conf.d/local.conf
subPath
:
local.conf
-
name
:
static-volume
mountPath
:
/srv/
rnacentral/
static
mountPath
:
/srv/static
restartPolicy
:
Always
volumes
:
-
name
:
nginx-config
...
...
kubernetes/helm/templates/rnacentral.yaml
View file @
83cd29ce
...
...
@@ -43,7 +43,7 @@ spec:
cpu
:
{{
.Values.rnacentralLimitsCPU
}}
volumeMounts
:
-
name
:
static-volume
mountPath
:
/srv/
rnacentral/
static
mountPath
:
/srv/static
envFrom
:
-
secretRef
:
name
:
{{
.Values.database
}}
...
...
nginx/conf.d/local.conf
View file @
83cd29ce
...
...
@@ -16,6 +16,6 @@ server {
location
/
static
/ {
autoindex
on
;
alias
/
srv
/
rnacentral
/
static
/;
alias
/
srv
/
static
/;
}
}
\ No newline at end of file
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