Commit graph

314 commits

Author SHA1 Message Date
Lars Eggert 743484fb4c
fix: Suppress useradd/groupadd errors (#4408) 2022-09-06 12:04:30 -05:00
Robert Sparks 4bcf896fef
fix: manage initial container migration more carefully. (#4396) 2022-08-31 16:22:24 -03:00
Robert Sparks f7f0ca99d3
fix: don't migrate dumpinfo. automate migrations and setting USE_TZ. (#4389)
* fix: don't migrate dumpinfo - it's already in UTC.

* chore: leave mode bits alone

* fix: migrate the container db, automating setting USE_TZ.
2022-08-31 12:38:48 -03:00
Nicolas Giard 41ae0cfac1
ci: update baseline coverage on build + new file URL (#4365) 2022-08-25 09:58:16 -05:00
Jennifer Richards 3705bedfcd
feat: Celery support and asynchronous draft submission API (#4037)
* ci: add Dockerfile and action to build celery worker image

* ci: build celery worker on push to jennifer/celery branch

* ci: also build celery worker for main branch

* ci: Add comment to celery Dockerfile

* chore: first stab at a celery/rabbitmq docker-compose

* feat: add celery configuration and test task / endpoint

* chore: run mq/celery containers for dev work

* chore: point to ghcr.io image for celery worker

* refactor: move XML parsing duties into XMLDraft

Move some PlaintextDraft methods into the Draft base class and
implement for the XMLDraft class. Use xml2rfc code from ietf.submit
as a model for the parsing.

This leaves some mismatch between the PlaintextDraft and the Draft
class spec for the get_author_list() method to be resolved.

* feat: add api_upload endpoint and beginnings of async processing

This adds an api_upload() that behaves analogously to the api_submit()
endpoint. Celery tasks to handle asynchronous processing are added but
are not yet functional enough to be useful.

* perf: index Submission table on submission_date

This substantially speeds up submission rate threshold checks.

* feat: remove existing files when accepting a new submission

After checking that a submission is not in progress, remove any files
in staging that have the same name/rev with any extension. This should
guard against stale files confusing the submission process if the
usual cleanup fails or is skipped for some reason.

* refactor: make clear that deduce_group() uses only the draft name

* refactor: extract only draft name/revision in clean() method

Minimizing the amount of validation done when accepting a file. The
data extraction will be moved to asynchronous processing.

* refactor: minimize checks and data extraction in api_upload() view

* ci: fix dockerfiles to match sandbox testing

* ci: tweak celery container docker-compose settings

* refactor: clean up Draft parsing API and usage

  * remove get_draftname() from Draft api; set filename during init
  * further XMLDraft work
    - remember xml_version after parsing
    - extract filename/revision during init
    - comment out long broken get_abstract() method
  * adjust form clean() method to use changed API

* feat: flesh out async submission processing

First basically working pass!

* feat: add state name for submission being validated asynchronously

* feat: cancel submissions that async processing can't handle

* refactor: simplify/consolidate async tasks and improve error handling

* feat: add api_submission_status endpoint

* refactor: return JSON from submission api endpoints

* refactor: reuse cancel_submission method

* refactor: clean up error reporting a bit

* feat: guard against cancellation of a submission while validating

Not bulletproof but should prevent

* feat: indicate that a submission is still being validated

* fix: do not delete submission files after creating them

* chore: remove debug statement

* test: add tests of the api_upload and api_submission_status endpoints

* test: add tests and stubs for async side of submission handling

* fix: gracefully handle (ignore) invalid IDs in async submit task

* test: test process_uploaded_submission method

* fix: fix failures of new tests

* refactor: fix type checker complaints

* test: test submission_status view of submission in "validating" state

* fix: fix up migrations

* fix: use the streamlined SubmissionBaseUploadForm for api_upload

* feat: show submission history event timestamp as mouse-over text

* fix: remove 'manual' as next state for 'validating' submission state

* refactor: share SubmissionBaseUploadForm code with Deprecated version

* fix: validate text submission title, update a couple comments

* chore: disable requirements updating when celery dev container starts

* feat: log traceback on unexpected error during submission processing

* feat: allow secretariat to cancel "validating" submission

* feat: indicate time since submission on the status page

* perf: check submission rate thresholds earlier when possible

No sense parsing details of a draft that is going to be dropped regardless
of those details!

* fix: create Submission before saving to reduce race condition window

* fix: call deduce_group() with filename

* refactor: remove code lint

* refactor: change the api_upload URL to api/submission

* docs: update submission API documentation

* test: add tests of api_submission's text draft consistency checks

* refactor: rename api_upload to api_submission to agree with new URL

* test: test API documentation and submission thresholds

* fix: fix a couple api_submission view renames missed in templates

* chore: use base image + add arm64 support

* ci: try to fix workflow_dispatch for celery worker

* ci: another attempt to fix workflow_dispatch

* ci: build celery image for submit-async branch

* ci: fix typo

* ci: publish celery worker to ghcr.io/painless-security

* ci: install python requirements in celery image

* ci: fix up requirements install on celery image

* chore: remove XML_LIBRARY references that crept back in

* feat: accept 'replaces' field in api_submission

* docs: update api_submission documentation

* fix: remove unused import

* test: test "replaces" validation for submission API

* test: test that "replaces" is set by api_submission

* feat: trap TERM to gracefully stop celery container

* chore: tweak celery/mq settings

* docs: update installation instructions

* ci: adjust paths that trigger celery worker image  build

* ci: fix branches/repo names left over from dev

* ci: run manage.py check when initializing celery container

Driver here is applying the patches. Starting the celery workers
also invokes the check task, but this should cause a clearer failure
if something fails.

* docs: revise INSTALL instructions

* ci: pass filename to pip update in celery container

* docs: update INSTALL to include freezing pip versions

Will be used to coordinate package versions with the celery
container in production.

* docs: add explanation of frozen-requirements.txt

* ci: build image for sandbox deployment

* ci: add additional build trigger path

* docs: tweak INSTALL

* fix: change INSTALL process to stop datatracker before running migrations

* chore: use ietf.settings for manage.py check in celery container

* chore: set uid/gid for celery worker

* chore: create user/group in celery container if needed

* chore: tweak docker compose/init so celery container works in dev

* ci: build mq docker image

* fix: move rabbitmq.pid to writeable location

* fix: clear password when CELERY_PASSWORD is empty

Setting to an empty password is really not a good plan!

* chore: add shutdown debugging option to celery image

* chore: add django-celery-beat package

* chore: run "celery beat" in datatracker-celery image

* chore: fix docker image name

* feat: add task to cancel stale submissions

* test: test the cancel_stale_submissions task

* chore: make f-string with no interpolation a plain string

Co-authored-by: Nicolas Giard <github@ngpixel.com>
Co-authored-by: Robert Sparks <rjsparks@nostrum.com>
2022-08-22 13:29:31 -05:00
Nicolas Giard 35106c10a4
ci: fix db import file permission 2022-07-28 17:38:56 -04:00
Nicolas Giard 52b51e4962
ci: fix db container 2022-07-28 17:35:26 -04:00
Nicolas Giard 8ea4ad4de2
ci: fix mariadb service start command in db container 2022-07-28 16:56:23 -04:00
Nicolas Giard c8ce8cab90
ci: remove mariadb service stop from import stage in db container 2022-07-28 16:52:25 -04:00
Nicolas Giard aa4af6d9e5
ci: use ubuntu:focal for db build 2022-07-28 14:54:48 -04:00
Nicolas Giard ecd0edb0e2
ci: fix nightly db workflow to use ubuntu jammy 2022-07-26 17:39:58 -04:00
Nicolas Giard 9e55ec1fd4
chore: improve devcontainer build (#4241) 2022-07-23 10:33:41 -04:00
Nicolas Giard 4b50cfb912
docs: update DOCKER readme 2022-07-23 09:39:20 -04:00
Lars Eggert e465f1f0f0
feat: Replace graphviz with d3 (#4067)
* feat: Use d3 for doc dependencies

* Interim commit

* Progress

* Progress

* Auto pan and zoom

* Arrows

* Remove graphviz and the code that uses it

* More graphviz-related changes

* Interim commit

* Move things into place

* Add test

* Final touches

* Make SVG work in Chrome

* Get the docs more similarly to how the group doc page does it

* Reindent

* Add ability to download the SVG, and use bs fonts.

* Follow @rjsparks' advice on how to compute the reference list

* Interim commit

* Add legend

* Speed up simulation

* Fix tooltips

* fix: escape a period in a new url regex

Co-authored-by: Robert Sparks <rjsparks@nostrum.com>
2022-07-21 12:14:45 -05:00
Nicolas Giard 8bdbf7cb9a
chore: disable git info in zsh prompt in dev environment 2022-07-20 20:35:11 -04:00
Nicolas Giard dde5ed4650
chore: create separate run config for vite dev (#4221) 2022-07-18 08:40:32 -05:00
Robert Sparks 10e251fab8
Update README.md 2022-07-15 12:51:42 -05:00
Nicolas Giard 14527b0ec2
docs: update dev docker instructions for generic editors 2022-07-15 13:46:58 -04:00
Lars Eggert 9b1669c93d
fix: Expose port 3000 to host (for yarn dev) (#4215) 2022-07-15 12:39:40 -05:00
Nicolas Giard aa9490faf6
feat(ui): new dynamic agenda view (#4086)
* feat: agenda page in vue (wip)

* feat: scroll to agenda day

* fix: vue 3 composition api + eslint settings

* fix: agenda day scroll match indicator

* fix: convert vite deps to yarn

* fix: missing lodash + legacy build step

* fix: agenda - move calendar into drawer

* fix: improve agenda filter UI

* fix: download ics + move agenda into own component

* feat: use fullcalendar for agenda calendar view (wip)

* feat: add events to agenda calendar

* feat: agenda filter UI improvements

* feat: agenda add to calendar dropdown

* feat: agenda calendar filter + timezone + event coloring

* feat: agenda calendar color improvements

* chore: exclude dist-neue from git

* feat: agenda calendar event modal

* fix: rebuild yarn deps

* chore: add run migration task to vscode

* fix: agenda buttons display flag

* feat: agenda event modal component

* feat: show calendar event quick info on hover

* fix: clear calendar quick info on timezone change

* feat: agenda list view improvements

* feat: agenda list row coloring

* feat: agenda list note

* feat: agenda list icons for office hours + hackathon

* fix: agenda top links

* refactor: use pinia as store for agenda components

* feat: agenda jump to now

* fix: agenda mobile improvements

* feat: agenda search

* feat: agenda search improvements

* feat: agenda event recordings buttons for post-meeting

* fix: agenda switch to meeting timezone on load

* feat: agenda pre & live session buttons

* fix: remove agenda utc + personalize links in top menu

* feat: add pre-vue loading state on page load

* feat: filter from agenda picker mode

* fix: agenda UI improvements

* fix: django-vite non-dev mode

* chore: update yarn dependencies for vue + vite

* feat: agenda settings panel + UI improvements

* feat: agenda settings colors + import/export feature

* feat: agenda color assignments + responsive UI improvements

* feat: agenda realtime red line + debug datetime offset

* feat: agenda add aria labels for settings

* feat: add new agenda path + pages/menu

* fix: bring base/menu.html up to main

* fix: agenda various fixes

* test: add new agenda item to meetings menu for item count

* chore: restore devcontainer extensions list

* fix: agenda UI improvements + montserrat default font

* feat: agenda bolder text + hide event icons options

* feat: agenda warning badge

* fix: agenda various UI improvements + intersectionObserver fix

* feat: agenda floorplan page + various UI improvements

* feat: agenda floor plan pin

* feat: view floor plan room from agenda

* feat: agenda floor plan mobile optimization

* feat: adjust calendar options + default calendar view in settings

* feat: agenda persist picked events + change base font only on new agenda page

* feat: agenda mobile view optimizations

* fix: add .vite to cached volumes

* fix: mobile view for filters, calendar, settings panels

* test: upgrade cypress existing tests to work on bs5 + update dependencies

* fix: use named url patterns to avoid hardcoded URLs. Add rudimentary test coverage for the neue views.

Co-authored-by: Robert Sparks <rjsparks@nostrum.com>
2022-07-13 16:20:23 -05:00
Lars Eggert 21c89e6dcc
chore: stop rsyncing old proceedings (#4099)
* chore: stop rsyncing old proceedings

* Even fewer things
2022-06-20 09:41:13 -05:00
Lars Eggert 8c769521f0
fix: rsync fewer files (#4089)
It's still super slow, however.
2022-06-16 11:45:04 -05:00
Nicolas Giard ef21caf7bf
chore: remove full.Dockerfile poc 2022-06-15 16:02:47 -04:00
Nicolas Giard 083732557d
fix: skip assets volume in cleandb script + add confirm prompt to cleanall (#4038)
* fix: skip assets volume in cleandb script + add confirm prompt to cleanall

* fix: remove purge dangling images from cleanall script
2022-06-13 12:13:16 -05:00
Nicolas Giard 25c7c4801a
chore: fix rsync-extras script options + add quiet mode 2022-06-04 18:37:45 -04:00
Nicolas Giard d825a59e67
ci: build app image with full assets 2022-06-04 17:59:31 -04:00
Nicolas Giard 5d5fc75958
chore: fix missing devcontainer dependencies (#4024) 2022-05-31 16:47:06 -05:00
Nicolas Giard e02ce05612
chore: make /assets a named volume for dev container (#4018)
* chore: make /assets a static volume for dev container

* chore: fix create-dirs script to point to /assets
2022-05-31 16:43:29 -05:00
Nicolas Giard 4457263599
ci: remove watchman to resolve invalid clockspec error 2022-05-24 20:51:50 -04:00
Nicolas Giard f02a7e1797
chore: fix /dev/shm permissions on docker init script 2022-05-24 19:52:32 -04:00
Nicolas Giard 742ce5a08e
chore: make dev container use base image 2022-05-24 16:49:37 -04:00
Lars Eggert 53c1377717
ci: Add watchman to image (#4014)
This speeds up repeated runs of `parcel`, but unfortunately not the initial one.
2022-05-24 15:42:20 -05:00
Nicolas Giard 8e0ff71709
ci: remove pip install from base docker image 2022-05-24 16:17:08 -04:00
Nicolas Giard a7d080b4df
ci: build app base docker image 2022-05-24 15:50:01 -04:00
Nicolas Giard 9316429e0e
chore: remove workspace chown from dev init script + add warning when using root 2022-05-21 00:18:24 -04:00
Nicolas Giard b6186f1fab
chore(dev): fix uid/gid mapping for non-vscode devs (#3981)
* chore: fix uid/gid mapping for non-vscode devs

* chore: fix volume ownership in devcontainer

* chore: use zsh in init script + remove temp mounted folders

* chore: ignore group mapping error during devcontainer build

* chore: fix ownership when running as root on host

* chore: use new docker compose command format + fix root check

* chore: improve uid/gid mapping message output

* chore: include chromedriver permission fix

* chore: skip parent dev image and install node directly instead of nvm

* chore: reapply gitignore changes + better dev help message
2022-05-20 09:10:41 -05:00
Nicolas Giard 8a7f67d4d1
test: make tests run without root access (#3968) 2022-05-14 08:11:44 -05:00
Nicolas Giard f1472ffcac
chore: run devcontainer as user vscode instead of root (#3948) 2022-05-13 14:13:50 -05:00
Lars Eggert 5598762608
fix: add more HTML validation & fixes (#3891)
* Update vnu.jar

* Fix py2 -> py3 issue

* Run pyupgrade

* test: Add default-jdk to images

* test: Add option to also validate HTML with vnu.jar

Since it's already installed in bin. Don't do this by default, since it
increases the time needed for tests by ~50%.

* fix: Stop the urlizer from urlizing in linkified mailto: text

* More HTML fixes

* More HTML validation fixes

* And more HTML fixes

* Fix floating badge

* Ignore unicode errors

* Only URLize docs that are existing

* Final fixes

* Don't URLize everything during test-crawl

* Feed HTML into vnu using python rather than Java to speed things up

* Allow test-crawl to start vnu on a different port

* Increase retry count to vnu. Restore batch size to 30.

* More HTML validation fixes

* Use urllib3 to make requests to vnu, since overriding requests_mock is tricky

* Undo commit of unmodified file

* Also urlize ftp links

* Fix matching of file name

* More HTML fixes

* Add `is_valid_url` filter

* weekday -> data-weekday

* urlencode URLs

* Add and use vnu_fmt_message. Bump vnu max buffer.

* Simplify doc_exists

* Don't add tab link to mail archive if the URL is invalid

* Run urlize_ietf_docs before linkify

Reduces the possibility of generating incorrect HTML

* Undo superfluous change

* Runner fixes

* Consolidate vnu message filtering into vnu_filter_message

* Correctly handle multiple persons with same name

* Minimze diff

* Fix HTML nits

* Print source snippet in vnu_fmt_message

* Only escape if there is something to escape

* Fix snippet

* Skip crufty old IPR declarations

* Only include modal when needed. Add handles.

* Fix wordwrap+linkification

* Update ietf/doc/templatetags/ietf_filters.py

* Update ietf/doc/templatetags/tests_ietf_filters.py

* Don't right-align second column
2022-05-03 13:55:48 -05:00
Lars Eggert 84d6118d9f
test: Also rsync bofreq (#3902) 2022-04-28 11:09:11 -05:00
Nicolas Giard 8ea883cb7e
chore: switch to Yarn 3 (#3819)
* refactor: switch to yarn 3

* chore: add other os+cpu to yarn supported architectures

* chore: add gitattributes

* chore: add missing yarn native modules rebuild step

* chore: replace npx with yarn in test_runner + update readme

* chore: remove bootstrap-datepicker github dependency, use local instead
2022-04-25 15:54:05 -05:00
Lars Eggert f8c06fa5cf
fix: Use unique data-sort attributes (#3836)
* fix: Use unique `data-sort` attributes

So list.js properly sorts columns.

* Address @rjsparks' comments
2022-04-19 10:16:32 -05:00
Nicolas Giard b44fc55b79
docs: add command to disable git info in zsh prompt 2022-04-18 19:23:03 -04:00
Nicolas Giard 05f19daed8
docs: update docker dev instructions 2022-04-07 17:28:57 -04:00
Nicolas Giard 92f0ff6861
chore: add fix-missing to apt update in docker (#3796) 2022-04-07 16:16:39 -05:00
Lars Eggert 3234f1a121
test: Validate HTML rendered during tests (#3782) 2022-04-07 13:30:38 -03:00
Nicolas Giard b65182150f
chore: remove legacy / deprecated files (#3781)
* chore: remove changelog files

* chore: remove data dir from source

* chore: exclude /data completely in gitignore
2022-04-05 15:45:01 -04:00
Nicolas Giard 82cbf05c3f
chore: add release-coverage.json fetch on tests + dev 2022-04-04 16:11:35 -04:00
Jennifer Richards fb41207227
ci: chown npm-related paths to owner of /workspace in app container (#3768) 2022-03-30 18:38:05 -03:00
Nicolas Giard 9a4505dc74
chore: remove svn/trac infrastructure (#3649) (#3739)
* chore: Remove svn/trac related infrastructure

* chore: Remove more svn/trac infrastructure

* fix: remove commented out Trac requirement
2022-03-24 12:24:35 -05:00
Nicolas Giard 54b498fd6a
chore: allow custom port for dev docker run (#3722) 2022-03-23 18:11:09 -04:00
Lars Eggert f516f86a17
ci: Add vnu to dev + test docker image (#3724)
* ci: Add vnu to dev docker image

* Use default-jdk from apt, and just download the vnu JAR blob
2022-03-22 13:13:28 -04:00
Lars Eggert eb5423d084
ci: Also check generated HTML with the "vnu" validator (#3682)
* ci: Also check generated HTML with the "vnu" validator

Because HTML Tidy apparently misses a bunch of errors.

* thead -> tbody

* More fixes

* More fixes

* Start checker in test runner
2022-03-21 12:50:23 -05:00
Nicolas Giard 562742d653
chore: add memcached + docker-cli to dev container (#3691) 2022-03-19 13:05:59 -04:00
Lars Eggert 05c643964b
ci: Run the test suite for PRs and pushes (#3658)
Co-authored-by: Nicolas Giard <github@ngpixel.com>
2022-03-19 07:09:15 -04:00
Nicolas Giard dc51587596
ci: fix app-create-dirs.sh 2022-03-17 00:23:20 -04:00
Nicolas Giard f8c0a95802
ci: extract dev/tests dir creation script 2022-03-17 00:17:05 -04:00
NGPixel 1771d6ea77
chore: improve dev docker for offline + other fixes 2022-03-15 22:22:30 -04:00
Nicolas Giard e6584bb717
chore: bring docker-compose to root level (#3642) 2022-03-14 17:02:53 -05:00
NGPixel 9ae07e44e6
chore: fix node_modules volume for docker dev 2022-03-10 13:03:45 -05:00
NGPixel ee92d8658d
chore: fix docker dev boot for parcel build 2022-03-09 18:04:18 -05:00
Jennifer Richards 3906bbdc4f Merge remote-tracking branch 'origin/main' into personal/jennifer/7.45.1.dev0.bootstrap-merge
# Conflicts:
#	bootstrap/package.json
#	ietf/templates/meeting/session_buttons_include.html
2022-03-07 16:24:30 -04:00
Nicolas Giard dc7e3b9fac
docs: update docker README 2022-03-04 16:50:20 -05:00
Nicolas Giard 0286af342a
chore: point datatracker dev db image to nightly github package
[skip ci]
2022-03-04 15:18:27 -05:00
Jennifer Richards 6c260a5b7e Merge 7.45.1.dev0 into Bootstrap 5 update branch. Made a first pass at reconciling differences.
- Legacy-Id: 19945
2022-02-17 20:09:49 +00:00
Lars Eggert 67ebadeadd A bunch more cosmetic fixes.
- Legacy-Id: 19913
2022-02-09 10:11:03 +00:00
Lars Eggert bbf088e18b Hopefully the final check-ins.
- Legacy-Id: 19909
2022-02-08 17:29:15 +00:00
Lars Eggert 64d2ba2558 Run tidy as part of tests, and fix HTML issues it finds.
- Legacy-Id: 19904
2022-02-01 16:11:34 +00:00
Robert Sparks 877d8800ce Add de-gfm to the docker setup. Fixes #3494. Commit ready for merge.
- Legacy-Id: 19863
2022-01-19 19:44:28 +00:00
Robert Sparks 2a0d54afcd Merged in [19811] from lars@eggert.org:
When using Docker, the runserver isn't being accessed over loopback, so we need
to initialize INTERNAL_IPS based on the current interface configuration.
 - Legacy-Id: 19814
Note: SVN reference [19811] has been migrated to Git commit 46ca676736
2022-01-06 20:54:53 +00:00
Lars Eggert 46ca676736 When using Docker, the runserver isn't being accessed over loopback, so we need
to initialize INTERNAL_IPS based on the current interface configuration.

Commit ready for merge.
 - Legacy-Id: 19811
2022-01-06 11:20:49 +00:00
nick 9e89f33869 fix: missing dependencies in dockerfile from changeset #19767
Commit ready for merge.
 - Legacy-Id: 19801
2022-01-04 18:44:27 +00:00
nick a9fd21ef2a misc: new README.md + docker dir cleanup
Commit ready for merge.
 - Legacy-Id: 19793
2021-12-21 01:55:31 +00:00
Robert Sparks 47aadd0066 Merged in [19761] from nick@staff.ietf.org:
fix: skip chromedriver install if arch is not supported in docker build
 - Legacy-Id: 19764
Note: SVN reference [19761] has been migrated to Git commit 516877d2db
2021-12-09 17:26:38 +00:00
nick 516877d2db fix: skip chromedriver install if arch is not supported in docker build
Commit ready for merge.
 - Legacy-Id: 19761
2021-12-08 20:13:44 +00:00
Robert Sparks c0df2cd300 Merged in [19741] from lars@eggert.org:
Add ghostscript to app image, which is used by some tests.
 - Legacy-Id: 19745
Note: SVN reference [19741] has been migrated to Git commit e3b430d2ec
2021-12-02 20:47:07 +00:00
Lars Eggert e3b430d2ec Add ghostscript to app image, which is used by some tests.
Commit ready for merge.
 - Legacy-Id: 19741
2021-12-02 08:09:08 +00:00
nick db34d83feb feat: cypress JS testing for agenda meetings + weekview swimlane (WIP)
- Legacy-Id: 19693
2021-11-18 23:48:23 +00:00
Lars Eggert 273feec52d No need for bower anymore.
- Legacy-Id: 19650
2021-11-12 12:01:35 +00:00
Robert Sparks 36bf80e9a5 Add a command to clean all datatracker related docker resources (from nick@staff.ietf.org)
- Legacy-Id: 19644
2021-11-11 18:53:36 +00:00
Robert Sparks d7d28a56ad revert docker project name. Will make a more comprehensive change later
- Legacy-Id: 19643
2021-11-11 18:52:34 +00:00
Robert Sparks 536d787ab5 Explicitly specify a docker project for compose
- Legacy-Id: 19641
2021-11-11 18:25:09 +00:00
Robert Sparks 164ee7792c Adjust docker volume mounting strategy.
- Legacy-Id: 19638
2021-11-11 17:20:20 +00:00
Robert Sparks 13d4e636bc Docker related changes: Mark cleandb executable. Clean settings_local and settings_local_sqlitetest of flakes and types issues.
- Legacy-Id: 19637
2021-11-11 16:35:30 +00:00
nick d52ad4fbc2 misc: import docker improvements from 7.39.1.dev2
- Legacy-Id: 19629
2021-11-10 21:51:55 +00:00
Robert Sparks 017da873ce Merged in [19581] from nick@staff.ietf.org:
fix: docker build - cannot change locale warnings
 - Legacy-Id: 19601
Note: SVN reference [19581] has been migrated to Git commit 4b1918b79d
2021-11-09 20:57:08 +00:00
nick 4b1918b79d fix: docker build - cannot change locale warnings
- Legacy-Id: 19581
2021-11-09 12:45:09 +00:00
Robert Sparks 8c830e10e1 Update docker/README.md to reflect the merge of Lars' branch. Commit ready for merge.
- Legacy-Id: 19579
2021-11-09 11:52:50 +00:00
Robert Sparks 7dc1ec1761 Merged in [19541] from lars@eggert.org:
Print a line than can actually be copied & pasted to start the datatracker.
 - Legacy-Id: 19559
Note: SVN reference [19541] has been migrated to Git commit 32e2b18b31729ee0161f40dc3d7e894a47ebc616
2021-11-08 17:55:12 +00:00
nick e1c7ed4c2c fix: downgrade docker/Dockerfile to Python 3.6 and selenium 3.141.0
- Legacy-Id: 19546
2021-11-03 21:52:14 +00:00
Lars Eggert b0d642dce0 Add svn to image. Grab idnits from GitHub. Try to speed up database import.
Commit ready for merge.
 - Legacy-Id: 19476
2021-10-27 15:57:39 +00:00
Lars Eggert 2b80cf7e1d Add some more explanatory/diagnostic text.
Branch ready for merge.
 - Legacy-Id: 19465
2021-10-27 07:57:10 +00:00
Lars Eggert 3b3e662719 Ship a database snapshot with the docker image, to speed up first use
- Legacy-Id: 19451
2021-10-25 13:21:52 +00:00
Lars Eggert 76ee4bd0e2 Set locale; minor other changes
- Legacy-Id: 19448
2021-10-21 07:42:10 +00:00
Lars Eggert 5f2fe1fd1d Make Cygwin tests work again
- Legacy-Id: 19446
2021-10-20 18:14:52 +00:00
Lars Eggert 4d650bbba2 Install chromedriver in a way that works
- Legacy-Id: 19431
2021-10-18 08:04:40 +00:00
Lars Eggert 2239ca2f3c MacOS X fix from Mark Donnelly
- Legacy-Id: 19426
2021-10-15 13:56:44 +00:00
Lars Eggert c46b0497b4 More fixes from Valery
- Legacy-Id: 19425
2021-10-14 18:56:18 +00:00
Lars Eggert e0a739199c Various fixes from and inspired by Valery Smylov's testing
- Legacy-Id: 19423
2021-10-14 10:54:53 +00:00
Lars Eggert a3f0b1533f Install some other packages that are not dependencies but make life easier
- Legacy-Id: 19420
2021-10-13 14:22:19 +00:00
Lars Eggert d746348ea6 More explanations
- Legacy-Id: 19419
2021-10-13 14:21:42 +00:00
Lars Eggert c4ba1ea75f Rip out more unused stuff, and update copyright based on TLP
- Legacy-Id: 19418
2021-10-13 13:09:32 +00:00
Lars Eggert 6fb64998ce Version of the new docker setup emailed out for testing on 2021-10-12
- Legacy-Id: 19417
2021-10-13 11:33:37 +00:00
Jennifer Richards 2060173f3a Improve proceedings display with new title block, configurable host logos, and additional PDF or URL materials. Fixes #3147. Commit ready for merge.
- Legacy-Id: 19306
2021-08-30 17:02:49 +00:00
Robert Sparks 0463ef8aa4 Created bofreq directory for docker container.
- Legacy-Id: 19246
2021-07-21 17:31:59 +00:00
Robert Sparks acefcb298c Tweaks to dockerfile to avoid rust compiler issues. Commit ready for merge.
- Legacy-Id: 18900
2021-03-04 21:47:55 +00:00
Henrik Levkowetz e9e2ef7bdf Added propagation of the docker-init environment to the su'd user in order to set LANG to a UTF-8 locale, and did some slight refactoring.
- Legacy-Id: 18692
2020-11-14 05:16:08 +00:00
Henrik Levkowetz d8052e2b9e Removed the psychopg2 installation (for now) and changed a library name (libyang -> libyang1)
- Legacy-Id: 18691
2020-11-14 05:12:44 +00:00
Henrik Levkowetz a485a68777 Removed an outdated check for docker-machine
- Legacy-Id: 18690
2020-11-14 05:10:22 +00:00
Henrik Levkowetz eaf9546d0e Fixed a bug in the charset handling of individual parts in multipart email messages in ietf.nomcom.get_body()
- Legacy-Id: 18615
2020-10-13 10:57:23 +00:00
Henrik Levkowetz 8f48854142 Tweaked the copydb script to handle symlinked data directories.
- Legacy-Id: 18585
2020-10-09 13:17:09 +00:00
Henrik Levkowetz 1332c0aa5c Added a UTF-8 language locale to docker-init.sh, in order to be able some python packages that would fail to install under the default locale.
- Legacy-Id: 18584
2020-10-09 13:14:59 +00:00
Henrik Levkowetz d30c5c7a26 Added a few extra modules (in particular enscript and ghostscript, which is needed for the agenda pdf materials) to the docker/install-extras script
- Legacy-Id: 18283
2020-07-27 14:12:51 +00:00
Henrik Levkowetz c737e329d0 Merged in [18271] from valery@smyslov.net:
Support of CygWin environment
 - Legacy-Id: 18281
Note: SVN reference [18271] has been migrated to Git commit b0650c765e
2020-07-26 15:20:49 +00:00
Valery Smyslov b0650c765e Support of CygWin environment
- Legacy-Id: 18271
2020-07-25 17:26:37 +00:00
Henrik Levkowetz a5565ac212 Made the docker container syslog start less noisy. Refined the virtualenv requirements installation to test for an existing django properly, and use the repository requirements file if available.
- Legacy-Id: 18258
2020-07-24 19:52:19 +00:00
Henrik Levkowetz 6bfea68a74 Removed pip install into old virtualenv location from Dockerfile, and fixed an rsyslog config issue.
- Legacy-Id: 18257
2020-07-24 19:49:11 +00:00
Henrik Levkowetz 9810e7035a Updated Dockerfile to use latest Devuan release (beowulf) as base image. Added syslog support.
- Legacy-Id: 18253
2020-07-24 13:36:05 +00:00
Henrik Levkowetz 28e5e03e5a Added download progress information (where available) to docker/setupdb.
- Legacy-Id: 18252
2020-07-24 13:33:44 +00:00
Henrik Levkowetz 9cdd9adbc6 Fixed a problem with writing to /dev/stderr in some environments, in docker/updatedb.
- Legacy-Id: 18251
2020-07-24 13:27:53 +00:00
Henrik Levkowetz ea7b2e7b7f Added yang/catalogmod to the yang module directories created by docker-init.sh.
- Legacy-Id: 18245
2020-07-23 19:10:58 +00:00
Henrik Levkowetz e73eb358f0 Reformulated a filter step in docker/updatedb to use a more commonly available command.
- Legacy-Id: 18244
2020-07-23 19:09:57 +00:00
Henrik Levkowetz 9f8bdfd40a Updated the yanglint command settings in settings.py and docker/settings_local.py
- Legacy-Id: 18176
2020-07-15 14:51:17 +00:00
Henrik Levkowetz 73a0627bf1 Changed the settings_local.py for the docker image to use the database type enforced in docker/updatedb
- Legacy-Id: 17952
2020-06-09 18:55:59 +00:00
Henrik Levkowetz a3bc062952 Added cleanout of local tables missing from db dump (assuming they have been created by migrations) and added new switches --no-load and --no-zap to docker/updatedb
- Legacy-Id: 17924
2020-06-07 11:45:47 +00:00
Henrik Levkowetz 4e79500df8 Added a download-only switch to docker/updatedb
- Legacy-Id: 17909
2020-06-05 11:54:51 +00:00
Henrik Levkowetz 8d5d61c13c Utility script to populate a dev instance with drafts, rfcs, slides, etc.
- Legacy-Id: 17862
2020-05-21 11:58:11 +00:00
Henrik Levkowetz afdfd8f0d6 Merged in a patch from mark@painless-security.com to add caching options to docker/run
- Legacy-Id: 17860
2020-05-20 21:38:53 +00:00
Henrik Levkowetz 42995fadea Merged in ^/branch/iola/meeting-improvement-r17214@17617, which provides a new meeting schedule editor.
- Legacy-Id: 17701
2020-04-28 14:34:34 +00:00
Henrik Levkowetz 2e1e2b7ad1 Fixed an issue with error reporting of bad script switches for docker/updatedb.
- Legacy-Id: 17681
2020-04-23 18:53:07 +00:00
Henrik Levkowetz 9a3f1059e1 Gave docker/updatedb a --quiet flag for use with buildbot.
- Legacy-Id: 17676
2020-04-23 04:14:18 +00:00
Henrik Levkowetz e01d41169a Changed the use of requirements3.txt in docker files back to requirements.txt
- Legacy-Id: 17634
2020-04-15 12:08:27 +00:00
Ole Laursen e5943f814d Add support for displaying constraint hints when scheduling a task and
for displaying violated constraints in the new schedule editor, with
the old of a new field, ConstraintName.editor_label.

Add support for displaying room capacity violations.

Add support for selecting a session and displaying information about
it similar to the existing scheduling editor.

Add support for sorting unassigned sessions.

Clean up markup and styles a bit, and fix some bugs.

Expand HTML-based test and add JS test that exercises the
Javascript-based functionality.

Switch to using Chrome driver instead of PhantomJS since the HTML
engine in PhantomJS is apparently too old to support the constructs in
the new schema editor.

Add a workaround for LiveServerTestCase clashing with IetfTestRunner
fixture loading.
 - Legacy-Id: 17519
2020-03-23 17:55:36 +00:00
Henrik Levkowetz ff7571f6e8 Merged in [17486] from valery@smyslov.net:
Add docker/run modifications to support Cygwin.
 - Legacy-Id: 17506
Note: SVN reference [17486] has been migrated to Git commit f89dd2da7b
2020-03-22 16:29:11 +00:00
Valery Smyslov f89dd2da7b Add modifications to support Cygwin.
I don't know while FILEDIR includes "..", so I removed it...
Otherwise the changes should not affect Linux users, but please review.
 - Legacy-Id: 17486
2020-03-21 17:41:20 +00:00
Henrik Levkowetz 71883dae63 Added an OPTIONS settings to the DATABASES setting in docker/settings_local.py, to make some migration operations work under docker.
- Legacy-Id: 17141
2019-12-08 19:20:56 +00:00
Henrik Levkowetz 91606bd733 Tweaked the docker-init script.
- Legacy-Id: 17054
2019-11-19 09:16:15 +00:00
Henrik Levkowetz 873494b2d7 Tweaked docker-init.sh to create a needed GID entry before using it when creating a new user.
- Legacy-Id: 17030
2019-11-16 06:26:40 +00:00
Henrik Levkowetz f18be77bb8 Various docker environment fixes.
- Legacy-Id: 17026
2019-11-16 05:08:34 +00:00
Henrik Levkowetz 6e31552b7c Updated docker files to build and run an image based on devuan:ascii instead of debian:jessie.
- Legacy-Id: 16784
2019-09-30 20:25:40 +00:00
Henrik Levkowetz e03784132d Merged changes from current trunk to Py3 branch.
- Legacy-Id: 16468
2019-07-16 15:36:16 +00:00
Henrik Levkowetz ea8c84d2f6 Python2/3 compatibility: used @python_2_unicode_compatible to provide __unicode__() versions of __str__() methods.
- Legacy-Id: 16455
2019-07-15 18:01:26 +00:00
Robert Sparks c70ee277c4 Only look for ietf/datatracker-env images when extracting the most recent build to tag as latest. Commit ready for merge.
- Legacy-Id: 16404
2019-07-05 18:10:58 +00:00
Henrik Levkowetz 82a5c83a5d Added creation of a group with the user's GID inside the docker container, if it's missing.
- Legacy-Id: 16098
2019-03-24 15:27:15 +00:00
Henrik Levkowetz 34d6fa41d1 Changed docker/updatedb to use https:// as cloudflare doesn't do the right thing for our http:// any more.
- Legacy-Id: 16084
2019-03-23 09:20:56 +00:00
Henrik Levkowetz a99ca1584a Merged in [15688] from mahoney@nostrum.com:
Fixed bad variable in title of requests.html. Fixes issue #2608.
 - Legacy-Id: 15707
Note: SVN reference [15688] has been migrated to Git commit 47e3ba8ba4
2018-11-03 11:46:40 +00:00
Henrik Levkowetz 13ff7229ba Fixed a problem with fetching the mysql release signing key from a gpg keyserver.
- Legacy-Id: 15439
2018-08-16 16:04:30 +00:00
Henrik Levkowetz 9e71882e81 Rewrote docker/run to work around a missing switch in BSD xargs.
- Legacy-Id: 15437
2018-08-16 16:02:16 +00:00
Henrik Levkowetz 7bb8ce55a6 Fixed an issue with the image cleanup at the end of docker/run
- Legacy-Id: 14992
2018-04-02 09:25:14 +00:00
Henrik Levkowetz eaea7d4324 Updated docker build and config files.
- Legacy-Id: 14503
2018-01-10 16:52:36 +00:00