chore: bring docker dev init script up to date with bs5 branch (#3611)
This commit is contained in:
parent
0f1bd8f486
commit
064432c2dd
|
@ -7,5 +7,6 @@ services:
|
||||||
DJANGO_SETTINGS_MODULE: settings_local_sqlitetest
|
DJANGO_SETTINGS_MODULE: settings_local_sqlitetest
|
||||||
volumes:
|
volumes:
|
||||||
- ..:/root/src
|
- ..:/root/src
|
||||||
|
- /root/src/node_modules
|
||||||
# Runs app on the same network as the database container, allows "forwardPorts" in devcontainer.json function.
|
# Runs app on the same network as the database container, allows "forwardPorts" in devcontainer.json function.
|
||||||
network_mode: service:db
|
network_mode: service:db
|
|
@ -6,6 +6,7 @@ services:
|
||||||
- '8000:8000'
|
- '8000:8000'
|
||||||
volumes:
|
volumes:
|
||||||
- ..:/root/src
|
- ..:/root/src
|
||||||
|
- /root/src/node_modules
|
||||||
db:
|
db:
|
||||||
ports:
|
ports:
|
||||||
- '3306'
|
- '3306'
|
|
@ -4,6 +4,17 @@ WORKSPACEDIR="/root/src"
|
||||||
|
|
||||||
service rsyslog start
|
service rsyslog start
|
||||||
|
|
||||||
|
# Generate static assets
|
||||||
|
|
||||||
|
npm install
|
||||||
|
echo "Building static assets... (this could take a minute or two)"
|
||||||
|
cd bootstrap
|
||||||
|
npm install -g grunt-cli
|
||||||
|
npm install
|
||||||
|
grunt dist
|
||||||
|
cp -r dist/. ../ietf/static/ietf/bootstrap/
|
||||||
|
cd ..
|
||||||
|
|
||||||
# Copy config files if needed
|
# Copy config files if needed
|
||||||
|
|
||||||
if [ ! -f "$WORKSPACEDIR/ietf/settings_local.py" ]; then
|
if [ ! -f "$WORKSPACEDIR/ietf/settings_local.py" ]; then
|
||||||
|
@ -68,6 +79,7 @@ for sub in \
|
||||||
data/developers/www6/ \
|
data/developers/www6/ \
|
||||||
data/developers/www6/iesg \
|
data/developers/www6/iesg \
|
||||||
data/developers/www6/iesg/evaluation \
|
data/developers/www6/iesg/evaluation \
|
||||||
|
data/developers/media/photo \
|
||||||
; do
|
; do
|
||||||
dir="/root/src/$sub"
|
dir="/root/src/$sub"
|
||||||
if [ ! -d "$dir" ]; then
|
if [ ! -d "$dir" ]; then
|
||||||
|
|
2
ietf/.gitignore
vendored
2
ietf/.gitignore
vendored
|
@ -1,3 +1,5 @@
|
||||||
/*.pyc
|
/*.pyc
|
||||||
/settings_local.py
|
/settings_local.py
|
||||||
|
/settings_local_debug.py
|
||||||
|
/settings_local_sqlitetest.py
|
||||||
/ietfdb.sql.gz
|
/ietfdb.sql.gz
|
||||||
|
|
1112
package-lock.json
generated
1112
package-lock.json
generated
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue