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
|
|
@ -5,7 +5,8 @@ services:
|
||||||
ports:
|
ports:
|
||||||
- '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
|
||||||
|
@ -41,33 +52,34 @@ fi
|
||||||
|
|
||||||
# Create assets directories
|
# Create assets directories
|
||||||
|
|
||||||
for sub in \
|
for sub in \
|
||||||
test/id \
|
test/id \
|
||||||
test/staging \
|
test/staging \
|
||||||
test/archive \
|
test/archive \
|
||||||
test/rfc \
|
test/rfc \
|
||||||
test/media \
|
test/media \
|
||||||
test/wiki/ietf \
|
test/wiki/ietf \
|
||||||
data/nomcom_keys/public_keys \
|
data/nomcom_keys/public_keys \
|
||||||
data/developers/ietf-ftp \
|
data/developers/ietf-ftp \
|
||||||
data/developers/ietf-ftp/bofreq \
|
data/developers/ietf-ftp/bofreq \
|
||||||
data/developers/ietf-ftp/charter \
|
data/developers/ietf-ftp/charter \
|
||||||
data/developers/ietf-ftp/conflict-reviews \
|
data/developers/ietf-ftp/conflict-reviews \
|
||||||
data/developers/ietf-ftp/internet-drafts \
|
data/developers/ietf-ftp/internet-drafts \
|
||||||
data/developers/ietf-ftp/rfc \
|
data/developers/ietf-ftp/rfc \
|
||||||
data/developers/ietf-ftp/status-changes \
|
data/developers/ietf-ftp/status-changes \
|
||||||
data/developers/ietf-ftp/yang/catalogmod \
|
data/developers/ietf-ftp/yang/catalogmod \
|
||||||
data/developers/ietf-ftp/yang/draftmod \
|
data/developers/ietf-ftp/yang/draftmod \
|
||||||
data/developers/ietf-ftp/yang/ianamod \
|
data/developers/ietf-ftp/yang/ianamod \
|
||||||
data/developers/ietf-ftp/yang/invalmod \
|
data/developers/ietf-ftp/yang/invalmod \
|
||||||
data/developers/ietf-ftp/yang/rfcmod \
|
data/developers/ietf-ftp/yang/rfcmod \
|
||||||
data/developers/www6s \
|
data/developers/www6s \
|
||||||
data/developers/www6s/staging \
|
data/developers/www6s/staging \
|
||||||
data/developers/www6s/wg-descriptions \
|
data/developers/www6s/wg-descriptions \
|
||||||
data/developers/www6s/proceedings \
|
data/developers/www6s/proceedings \
|
||||||
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