Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
064432c
chore: bring docker dev init script up to date with bs5 branch (#3611)
NGPixel Mar 10, 2022
2493fd0
ci: only run codeql on schedule
NGPixel Mar 10, 2022
bd8638e
feat: shorten long agenda filter button labels (#3602)
jennifer-richards Mar 10, 2022
c251b95
docs: Remove stale and incomplete information from the README (#3612)
rjsparks Mar 10, 2022
ccae601
docs: Suggest cloning a fork rather than ietf-tools repo (#3614)
jimfenton Mar 11, 2022
387b4f4
docs: update README
NGPixel Mar 11, 2022
1efb398
chore: add issue templates
NGPixel Mar 11, 2022
9c605a6
chore: update issue templates config
NGPixel Mar 11, 2022
b636a1e
chore: remove duplicate security issue link
NGPixel Mar 11, 2022
e001bba
docs: point feature requests to discussions
NGPixel Mar 11, 2022
91a341d
chore: add bug report form
NGPixel Mar 11, 2022
ec99aa8
chore: remove bug report issue template
NGPixel Mar 11, 2022
b6d740a
chore: fix bug report form
NGPixel Mar 11, 2022
ee68683
fix: point the api index page into Github instead of trac/svn
rjsparks Mar 11, 2022
007e693
chore: remove os + version + log fields from bug report form
NGPixel Mar 11, 2022
a3e7910
Merge pull request #3627 from rjsparks/api-index
jennifer-richards Mar 11, 2022
7b3ec18
fix: point to GitHub for bug reports (#3625)
rjsparks Mar 11, 2022
9ffb74c
fix: remove stale explanation of status reports (#3628)
rjsparks Mar 11, 2022
85d4ce7
fix: adjust about page to reflect move to GitHub. Normalize informati…
rjsparks Mar 11, 2022
ebc2e1a
fix: remove anchor tag with empty href (#3630)
jennifer-richards Mar 11, 2022
e12ea0c
fix: use same github issue URL on 500 error page as elsewhere (#3631)
jennifer-richards Mar 11, 2022
369a5b9
chore: update report-a-bug.yml form
NGPixel Mar 11, 2022
86a3895
ci: fix __init__.py version quotes
NGPixel Mar 14, 2022
aa718e7
chore: bring docker-compose to root level (#3642) (#3643)
rjsparks Mar 14, 2022
868afd2
chore: improve dev docker for offline + other fixes (#3652)
NGPixel Mar 16, 2022
a60c31e
chore: remove svn/trac infrastructure (#3649)
rjsparks Mar 16, 2022
9e06efe
feat: update the shepherd writeup template (#3650)
rjsparks Mar 16, 2022
a043bd5
chore: move hold-for-merge + ready-for-merge into dev/legacy
NGPixel Mar 16, 2022
efc87dc
test: match changes to release/about
rjsparks Mar 16, 2022
65799c9
ci: build base test docker image
NGPixel Mar 17, 2022
4daeb3c
ci: fix base test docker image
NGPixel Mar 17, 2022
ec9f3ba
ci: add default db commands to dockerfile
NGPixel Mar 17, 2022
cee45d6
ci: fix db docker image start command
NGPixel Mar 17, 2022
3c91773
test: remove unused import that causes test failure (#3667)
jennifer-richards Mar 17, 2022
7fab741
ci: revert db dockerfile
NGPixel Mar 17, 2022
b2febd7
chore: remove django settings module from devcontainer config (#3673)
NGPixel Mar 18, 2022
916a3a0
ci: add docker-cli to base test image
NGPixel Mar 19, 2022
4dc0247
fix: use approver's identity instead of System (#3701)
Spectre17 Mar 20, 2022
d637b90
docs: update README to point to release page
NGPixel Mar 21, 2022
ffb6904
ci: inject release hash + branch during build
NGPixel Mar 21, 2022
a198022
chore: allow custom port for dev docker run (#3722)
NGPixel Mar 22, 2022
902e37d
fix: improve looking into submission request for remote ip. (#3720)
rjsparks Mar 22, 2022
c0c8771
Merge branch 'main' into main-merge
jennifer-richards Mar 25, 2022
7c6fa16
ci: remove bs3-related workflow; do not install grunt
jennifer-richards Mar 25, 2022
4e3330e
fix: remove duplicate lines from merge
jennifer-richards Mar 25, 2022
9590303
Merge remote-tracking branch 'origin/feat/bs5' into main-merge
jennifer-richards Mar 25, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .github/workflows/dev-db-nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,17 @@ name: Nightly Dev DB Image

# Controls when the workflow will run
on:
# Run every night
schedule:
- cron: '0 0 * * *'

# Run on db.Dockerfile changes
push:
branches:
- main
paths:
- 'docker/db.Dockerfile'

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

Expand Down
46 changes: 0 additions & 46 deletions .github/workflows/publish-bs3.yml

This file was deleted.

123 changes: 123 additions & 0 deletions dev/docker-test-base/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,123 @@
FROM python:3.6-bullseye
LABEL maintainer="IETF Tools Team <tools-discuss@ietf.org>"

ENV DEBIAN_FRONTEND=noninteractive


RUN apt-get update
RUN apt-get -qy upgrade

# Add Node.js Source
RUN curl -fsSL https://deb.nodesource.com/setup_16.x | bash -

# Add Docker Source
RUN curl -fsSL https://download.docker.com/linux/debian/gpg | gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
RUN echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/debian \
$(lsb_release -cs) stable" | tee /etc/apt/sources.list.d/docker.list > /dev/null

# Install the packages we need
RUN apt-get update
RUN apt-get install -qy \
apache2-utils \
apt-file \
apt-utils \
bash \
build-essential \
curl \
docker-ce-cli \
enscript \
gawk \
gcc \
ghostscript \
git \
gnupg \
graphviz \
jq \
less \
libcairo2-dev \
libgtk2.0-0 \
libgtk-3-0 \
libnotify-dev \
libgconf-2-4 \
libgbm-dev \
libnss3 \
libxss1 \
libasound2 \
libxtst6 \
libmagic-dev \
libmariadb-dev \
libtidy-dev \
locales \
mariadb-client \
netcat \
nodejs \
pigz \
pv \
python3-ipython \
ripgrep \
rsync \
rsyslog \
ruby \
ruby-rubygems \
unzip \
wget \
xauth \
xvfb \
yang-tools

# Install kramdown-rfc2629 (ruby)
RUN gem install kramdown-rfc2629

# Install chromedriver
COPY docker/scripts/app-install-chromedriver.sh /tmp/app-install-chromedriver.sh
RUN sed -i 's/\r$//' /tmp/app-install-chromedriver.sh && \
chmod +x /tmp/app-install-chromedriver.sh
RUN /tmp/app-install-chromedriver.sh

# Get rid of installation files we don't need in the image, to reduce size
RUN apt-get clean && rm -rf /var/lib/apt/lists/*

# "fake" dbus address to prevent errors
# https://github.com/SeleniumHQ/docker-selenium/issues/87
ENV DBUS_SESSION_BUS_ADDRESS=/dev/null

# avoid million NPM install messages
ENV npm_config_loglevel warn
# allow installing when the main user is root
ENV npm_config_unsafe_perm true
# disable NPM funding messages
ENV npm_config_fund false

# Set locale to en_US.UTF-8
RUN echo "LC_ALL=en_US.UTF-8" >> /etc/environment && \
echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen && \
echo "LANG=en_US.UTF-8" > /etc/locale.conf && \
dpkg-reconfigure locales && \
locale-gen en_US.UTF-8 && \
update-locale LC_ALL en_US.UTF-8
ENV LC_ALL en_US.UTF-8

# Install idnits
ADD https://raw.githubusercontent.com/ietf-tools/idnits-mirror/main/idnits /usr/local/bin/
RUN chmod +rx /usr/local/bin/idnits

# Install current datatracker python dependencies
COPY requirements.txt /tmp/pip-tmp/
RUN pip3 --disable-pip-version-check --no-cache-dir install -r /tmp/pip-tmp/requirements.txt \
&& rm -rf /tmp/pip-tmp

# Turn off rsyslog kernel logging (doesn't work in Docker)
RUN sed -i '/imklog/s/^/#/' /etc/rsyslog.conf

# Fetch wait-for utility
ADD https://raw.githubusercontent.com/eficode/wait-for/v2.1.3/wait-for /usr/local/bin/
RUN chmod +rx /usr/local/bin/wait-for

# Create workspace
RUN mkdir -p /workspace
WORKDIR /workspace

# Install NPM modules
COPY package.json package.json
RUN npm install --no-audit
RUN rm -f package.json package-lock.json
2 changes: 0 additions & 2 deletions ietf/release/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@
from ietf.utils.test_utils import TestCase

class ReleasePagesTest(TestCase):


def test_about(self):
url = reverse('ietf.release.views.release')+"about"
r = self.client.get(url)
Expand Down
4 changes: 2 additions & 2 deletions ietf/submit/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
from ietf.message.models import Message
from ietf.name.models import FormalLanguageName, GroupTypeName
from ietf.submit.models import Submission, Preapproval
from ietf.submit.utils import validate_submission_name, validate_submission_rev, validate_submission_document_date
from ietf.submit.utils import validate_submission_name, validate_submission_rev, validate_submission_document_date, remote_ip
from ietf.submit.parsers.pdf_parser import PDFParser
from ietf.submit.parsers.plain_parser import PlainParser
from ietf.submit.parsers.xml_parser import XMLParser
Expand All @@ -47,7 +47,7 @@ class SubmissionBaseUploadForm(forms.Form):
def __init__(self, request, *args, **kwargs):
super(SubmissionBaseUploadForm, self).__init__(*args, **kwargs)

self.remote_ip = request.META.get('REMOTE_ADDR', None)
self.remote_ip = remote_ip(request)

self.request = request
self.in_first_cut_off = False
Expand Down
9 changes: 9 additions & 0 deletions ietf/submit/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -1030,3 +1030,12 @@ def update_submission_external_resources(submission, new_resources):
for new_res in new_resources:
new_res.submission = submission
new_res.save()

def remote_ip(request):
if 'CF-Connecting-IP' in request.META:
remote_ip = request.META.get('CF-Connecting-IP')
elif 'X-Forwarded-For' in request.META:
remote_ip = request.META.get('X-Forwarded-For').split(',')[0]
else:
remote_ip = request.META.get('REMOTE_ADDR', None)
return remote_ip
4 changes: 2 additions & 2 deletions ietf/submit/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
post_submission, cancel_submission, rename_submission_files, remove_submission_files, get_draft_meta,
get_submission, fill_in_submission, apply_checkers, save_files,
check_submission_revision_consistency, accept_submission, accept_submission_requires_group_approval,
accept_submission_requires_prev_auth_approval, update_submission_external_resources )
accept_submission_requires_prev_auth_approval, update_submission_external_resources, remote_ip )
from ietf.stats.utils import clean_country_name
from ietf.utils.accesstoken import generate_access_token
from ietf.utils.log import log
Expand Down Expand Up @@ -729,7 +729,7 @@ def add_manualpost_email(request, submission_id=None, access_token=None):

submission, submission_email_event = (
add_submission_email(request=request,
remote_ip=request.META.get('REMOTE_ADDR', None),
remote_ip=remote_ip(request),
name = form.draft_name,
rev=form.revision,
submission_pk = submission_pk,
Expand Down
2 changes: 1 addition & 1 deletion ietf/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -152,4 +152,4 @@
});
</script>
</body>
</html>
</html>
2 changes: 1 addition & 1 deletion ietf/templates/base/menu.html
Original file line number Diff line number Diff line change
Expand Up @@ -420,4 +420,4 @@
{% endif %}
{% if flavor == 'top' %}
{% include "base/menu_user.html" %}
{% endif %}
{% endif %}
Loading