Skip to content

Commit 4233bc5

Browse files
committed
0.2.0 - update docker configs
Update the `docker` configurations.
1 parent 465b820 commit 4233bc5

File tree

4 files changed

+17
-6
lines changed

4 files changed

+17
-6
lines changed

Changelog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
1. Drop the legacy `components.downloader` module because it has been replaced by `components.PlainDownloader` now.
2424
2. Update the `examples/download_file` to match the usage of the new `Downloader` component.
2525
3. Update the `.flake8` configurations.
26+
4. Update the `docker` configurations.
2627

2728
### 0.1.2 @ 10/13/2024
2829

Dockerfile.dockerignore

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -133,11 +133,14 @@ jspm_packages/
133133

134134
# Created by builder
135135
# /dash_file_cache/_imports_.py
136-
/dash_file_cache/*.js
137-
/dash_file_cache/*.js.map
138-
/dash_file_cache/*.LICENSE.txt
139-
/dash_file_cache/metadata.json
140-
/dash_file_cache/package-info.json
136+
/dash_file_cache/components/*.py
137+
/dash_file_cache/components/*.js
138+
/dash_file_cache/components/*.LICENSE.txt
139+
/dash_file_cache/components/*.js.map
140+
/dash_file_cache/components/metadata.json
141+
/dash_file_cache/components/package-info.json
142+
!/dash_file_cache/components/__init__.py
143+
!/dash_file_cache/components/__main__.py
141144
/deps
142145
/inst
143146
/man

docker/entrypoint.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ do
4747
case "$KEY" in
4848
--bash) BASH=true ;;
4949
--python) RUN_PYTHON=true ;;
50-
--react) RUN_REACT=true ;;
5150
--demo) RUN_DEMO=true ;;
5251
--with-dash) WITH_DASH=true ;;
5352
demo) DEMO_NAME="${VALUE}" ;;
@@ -79,6 +78,13 @@ else
7978
fi
8079
fi
8180

81+
# Compile the module if it has not been compiled yet.
82+
# This step ensures dash-json-grid to be available when entering the following modes.
83+
if [ ! -s "dash_file_cache/components/Downloader.py" ]; then
84+
msg "Compile the dash component from the React codes."
85+
yarn install || fail
86+
yarn build || fail
87+
fi
8288

8389
if $RUN_PYTHON
8490
then

docker/install.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ fi
9999

100100
# Install Node.js and Yarn.
101101
mcd /app || fail
102+
wget -O- https://gist.githubusercontent.com/cainmagi/f028e8ac4b06c3deefaf8ec38d5a7d8f/raw/install-nodejs.sh | bash -s -- --all || fail
102103
${PYTHON} -m pip install --compile --no-cache-dir pip wheel setuptools --upgrade || fail
103104
${PYTHON} -m pip install --compile --no-cache-dir -r ./requirements-docker.txt || fail
104105

0 commit comments

Comments
 (0)