Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
shiny-k8s-example
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Container registry
Model registry
Operate
Environments
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
hub
shiny-k8s-example
Commits
8f9862a8
Commit
8f9862a8
authored
2 years ago
by
Bryan BRANCOTTE
Browse files
Options
Downloads
Patches
Plain Diff
move shiny run --reload into a docker-compose
update base image as project has been renamed
parent
8b607313
Branches
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#106776
passed
2 years ago
Stage: build
Stage: deploy
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
Dockerfile
+4
-9
4 additions, 9 deletions
Dockerfile
docker-compose.yaml
+21
-0
21 additions, 0 deletions
docker-compose.yaml
with
25 additions
and
9 deletions
Dockerfile
+
4
−
9
View file @
8f9862a8
FROM
registry-gitlab.pasteur.fr/hub/rshiny-k8s/python:3.9-slim-bullseye
FROM
registry-gitlab.pasteur.fr/hub/shiny-k8s/python:3.9-slim-bullseye
# Add workdir information
WORKDIR
/srv/shiny-server/
# install additional dependencies, comment the block if you don't have one
RUN
apt-get update
\
...
...
@@ -20,11 +23,3 @@ COPY ./example_proj /srv/shiny-server
# grant shiny to use www folder
RUN
chown
shiny:shiny /srv/shiny-server/www
# Add workdir information
WORKDIR
/srv/shiny-server/
# allow autoreload on development step
# When deployed must be override in prod to `shiny-server`,
# which is done by the helm chart starting 0.4.0
CMD
["shiny","run","--host","0.0.0.0","--port","3838","--reload","./app.py"]
This diff is collapsed.
Click to expand it.
docker-compose.yaml
0 → 100644
+
21
−
0
View file @
8f9862a8
version
:
'
3.4'
services
:
shiny-server
:
build
:
context
:
.
command
:
[
'
shiny'
,
'
run'
,
'
--host'
,
'
0.0.0.0'
,
'
--port'
,
'
3838'
,
'
--reload'
,
'
./app.py'
]
user
:
'
shiny:shiny'
volumes
:
-
./example_proj:/srv/shiny-server/
-
./logs:/var/log/shiny-server
ports
:
-
'
3838:3838'
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment