Skip to content

Commit 773bd07

Browse files
authored
Documentation and Docker updates (#89)
1 parent 6e363a5 commit 773bd07

File tree

4 files changed

+76
-10
lines changed

4 files changed

+76
-10
lines changed

.dockerignore

100644100755
+27-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,29 @@
1-
/shiny/*
21
/vignettes/*
32
/docs/*
3+
4+
# ignore file extensions
5+
*.DS_Store
6+
*.Rmd
7+
*.html
8+
*.md
9+
*.Rhistory
10+
*.gitignore
11+
*.Rbuildignore
12+
*.Rproj
13+
DESCRIPTION
14+
15+
# ignore folders
16+
**.git
17+
**.github
18+
**.Rproj.user
19+
*docs
20+
*vignettes
21+
*man
22+
*inst
23+
*pkgdown
24+
25+
# ignore specific files
26+
docker-compose.yml
27+
docker-compose-*.yml
28+
_pkgdown.yml
29+
NAMESPACE

docker-compose.yaml

+10-5
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,19 @@ version: "3.9"
33
x-data-volumes:
44
&data-volume
55
type: bind
6-
source: $HOME/Github/Testings/seqsender
6+
source: $HOME
77
target: /data
88

99
services:
10-
seqsender:
10+
seqsender:
1111
container_name: seqsender
12-
image: cdcgov/seqsender:latest
12+
image: seqsender:latest
13+
build:
14+
context: .
15+
dockerfile: Dockerfile
16+
args:
17+
- micromamba_version=1.5.3
1318
restart: always
14-
volumes:
19+
volumes:
1520
- *data-volume
16-
command: tail -f /dev/null
21+
command: tail -f /dev/null

docs/app.json

+1-1
Large diffs are not rendered by default.

shiny/app.py

+38-3
Original file line numberDiff line numberDiff line change
@@ -163,20 +163,55 @@
163163
),
164164
],
165165
),
166-
ui.nav_panel("Docker-Compose", "Panel A content"),
166+
ui.nav_panel("Docker-Compose",
167+
ui.h2("Update docker-compose.yaml for your local storage"),
168+
ui.p(ui.strong("Note: "), ui.code("source"), " is the storage location of your local machine. This location will be mapped to ", ui.code("/data"), " directory inside of the container. Here we are mounting the local variable ", ui.code("$HOME"), " directory to ", ui.code("/data"), " inside of the container. Change the value ", ui.code("$HOME"), " to reflect your local storage system."),
169+
ui.card(ui.HTML(
170+
"""
171+
<code>version: "3.9"<br>
172+
x-data-volumes:<br>
173+
&nbsp;&nbsp;&data-volume<br>
174+
&nbsp;&nbsp;type: bind<br>
175+
&nbsp;&nbsp;source: $HOME<br>
176+
&nbsp;&nbsp;target: /data<br>
177+
<br>
178+
services:<br>
179+
&nbsp;&nbsp;seqsender:<br>
180+
&nbsp;&nbsp;&nbsp;&nbsp;container_name: seqsender<br>
181+
&nbsp;&nbsp;&nbsp;&nbsp;image: seqsender:latest<br>
182+
&nbsp;&nbsp;&nbsp;&nbsp;build:<br>
183+
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;context: .<br>
184+
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;dockerfile: Dockerfile<br>
185+
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;args:<br>
186+
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;- micromamba_version=1.5.3<br>
187+
&nbsp;&nbsp;&nbsp;&nbsp;restart: always<br>
188+
&nbsp;&nbsp;&nbsp;&nbsp;volumes:<br>
189+
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;- *data-volume<br>
190+
&nbsp;&nbsp;&nbsp;&nbsp;command: tail -f /dev/null<br>
191+
</code>"""
192+
),
193+
style=terminal_css,
194+
),
195+
ui.h2("Start ", ui.code("seqsender"), " container"),
196+
ui.card(
197+
ui.p(ui.code("docker-compose up -d")),
198+
style=terminal_css,
199+
),
200+
ui.p("Running docker-compose with the flag ", ui.code("-d"), " runs the container in detached mode, allowing the container to continue to run in the background. For more information refer to ", ui.a("docker-compose documentation", href="https://docs.docker.com/reference/cli/docker/compose/up/"), "."),
201+
),
167202
id="docker_options",
168203
),
169204
ui.HTML(
170205
"""
171-
<h2>check if the container is created successfully</h2>
206+
<h2>Check if the container is created successfully</h2>
172207
<pre><code>docker container ps</code></pre>
173208
"""
174209
),
175210
ui.card(
176211
ui.HTML(
177212
"""
178213
docker container ps<br>
179-
CONTAINER ID&nbsp;|&nbsp;&nbsp;|&nbsp;IMAGE&nbsp;|&nbsp;&nbsp;|&nbsp;&nbsp;COMMAND&nbsp;|&nbsp;&nbsp;|&nbsp;CREATED&nbsp;|&nbsp;&nbsp;STATUS&nbsp;|&nbsp;PORTS&nbsp;|&nbsp;NAMES
214+
CONTAINER ID&nbsp;|&nbsp;&nbsp;|&nbsp;IMAGE&nbsp;|&nbsp;&nbsp;|&nbsp;&nbsp;COMMAND&nbsp;|&nbsp;&nbsp;|&nbsp;CREATED&nbsp;|&nbsp;&nbsp;STATUS&nbsp;|&nbsp;PORTS&nbsp;|&nbsp;NAMES<br>
180215
b37b6b19c4e8&nbsp;seqsender:latest&nbsp;&quot;/bin/bash&quot;&nbsp;5 hours ago&nbsp;Up 5 hours&nbsp;|&nbsp;&nbsp;|&nbsp;seqsender
181216
"""
182217
),

0 commit comments

Comments
 (0)