[codesprints] Changes to the dev container behavior

Robert Sparks <rjsparks@nostrum.com> Tue, 06 June 2023 13:56 UTC

Return-Path: <rjsparks@nostrum.com>
X-Original-To: codesprints@ietfa.amsl.com
Delivered-To: codesprints@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id CB6E8C14CF0D for <codesprints@ietfa.amsl.com>; Tue, 6 Jun 2023 06:56:03 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.077
X-Spam-Level:
X-Spam-Status: No, score=-2.077 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, T_SPF_HELO_PERMERROR=0.01, T_SPF_PERMERROR=0.01, URIBL_DBL_BLOCKED_OPENDNS=0.001, URIBL_ZEN_BLOCKED_OPENDNS=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=nostrum.com
Received: from mail.ietf.org ([50.223.129.194]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ZZPfG0pKRh3v for <codesprints@ietfa.amsl.com>; Tue, 6 Jun 2023 06:56:00 -0700 (PDT)
Received: from nostrum.com (raven-v6.nostrum.com [IPv6:2001:470:d:1130::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id F00E1C151540 for <codesprints@ietf.org>; Tue, 6 Jun 2023 06:55:59 -0700 (PDT)
Received: from [192.168.1.102] ([47.186.48.51]) (authenticated bits=0) by nostrum.com (8.17.1/8.17.1) with ESMTPSA id 356DtvB1075760 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO) for <codesprints@ietf.org>; Tue, 6 Jun 2023 08:55:58 -0500 (CDT) (envelope-from rjsparks@nostrum.com)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=nostrum.com; s=default; t=1686059758; bh=RxVi85Zew8C8A3LZActlnWwQlRumnGDCFIOwoobrHNE=; h=Date:To:From:Subject; b=gnnvsM8KjIk+3TIBbDWQ4AXKVXbcTCnwIOHXt6Wu0PAMLMezzdXRLPwF1779zNtfX QPPRunOatmPsCBD3eL1xPxJ8TE2aSsTDkp/mMG1OKMbaHLjnyQn+gvJgWJHLhRHPpw Yes/mBwuSP+DPQmavn1JpjkzPwNbYOyKpDWSCMr4=
X-Authentication-Warning: raven.nostrum.com: Host [47.186.48.51] claimed to be [192.168.1.102]
Message-ID: <514e4bfe-f7af-3207-c0da-7f15b95fcae5@nostrum.com>
Date: Tue, 06 Jun 2023 08:55:52 -0500
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.11.2
Content-Language: en-US
To: IETF Codesprints <codesprints@ietf.org>
From: Robert Sparks <rjsparks@nostrum.com>
Content-Type: text/plain; charset="UTF-8"; format="flowed"
Content-Transfer-Encoding: 8bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/codesprints/pkxbml-RnuvJgxD_6yeCVPaWwhA>
Subject: [codesprints] Changes to the dev container behavior
X-BeenThere: codesprints@ietf.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: "List for coordinating \(and following up on\) codesprint activities" <codesprints.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/codesprints>, <mailto:codesprints-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/codesprints/>
List-Post: <mailto:codesprints@ietf.org>
List-Help: <mailto:codesprints-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/codesprints>, <mailto:codesprints-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 06 Jun 2023 13:56:03 -0000

All -

If you happen to be working with main right now, we have some changes 
that are in-flux that will affect your workflow.

At the moment:

1) When you build containers, if the app container sees a an 
ietf/settings_local.py  it will rename it to ietf/settings_local.py.bak 
and then copy the baseline settings_local out of the /docker directory 
into ietf/settings_local.py. If you are working on things that require 
changes to settings_local, you'll need to copy the .bak file back into 
place after the app container builds. We made this change since _most_ 
developers are never touching settings_local.py and it makes it more 
likely that they'll get a valid build as the dev container needs change.

2) We have put an nginx instance into the app container that dispatches 
requests to statics or to wherever you are running runserver. We're 
playing some port-shuffle games, but right now, nginx will consume port 
8000 (so that systems that automap will try to automap it to 8000 on the 
host) and it reverse-proxies to runserver expecting to find it on 8001. 
That is, when you run runserver, you should give it an argument port of 
8001.

I'll send more as we refine these changes.

RjS